MCPcopy Create free account
hub / github.com/F-Stack/f-stack / pattern_fill

Function pattern_fill

dpdk/app/test/test_cryptodev_crosscheck.c:112–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110}
111
112static void
113pattern_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
126static struct crosscheck_test_profile
127profile_create(const struct rte_cryptodev_symmetric_capability *capa,

Callers 2

crosscheck_initFunction · 0.85
operation_createFunction · 0.85

Calls 1

rte_memcpyFunction · 0.50

Tested by

no test coverage detected