| 110 | } |
| 111 | |
| 112 | static void |
| 113 | pattern_fill(uint8_t *input, const char *pattern, uint16_t size) |
| 114 | { |
| 115 | size_t pattern_len = strlen(pattern); |
| 116 | size_t filled_len = 0, to_fill; |
| 117 | |
| 118 | while (filled_len < size) { |
| 119 | to_fill = RTE_MIN(pattern_len, size - filled_len); |
| 120 | rte_memcpy(input, pattern, to_fill); |
| 121 | filled_len += to_fill; |
| 122 | input += to_fill; |
| 123 | } |
| 124 | } |
| 125 | |
| 126 | static struct crosscheck_test_profile |
| 127 | profile_create(const struct rte_cryptodev_symmetric_capability *capa, |
no test coverage detected