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

Function common_range_set

dpdk/app/test/test_cryptodev_crosscheck.c:214–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

212}
213
214static inline int
215common_range_set(struct rte_crypto_param_range *dst, const struct rte_crypto_param_range *src)
216{
217 /* Check if ranges overlaps */
218 if ((dst->min > src->max) && (dst->max < src->min))
219 return -1;
220 dst->min = RTE_MAX(dst->min, src->min);
221 dst->max = RTE_MIN(dst->max, src->max);
222
223 return 0;
224}
225
226static uint16_t
227nb_sym_capabilities_get(const struct rte_cryptodev_capabilities *cap)

Callers 1

common_capability_setFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected