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

Function validate_ops

dpdk/drivers/regex/mlx5/mlx5_regex_fastpath.c:60–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58
59#ifdef MLX5_REGEX_DEBUG
60static inline uint16_t
61validate_ops(struct rte_regex_ops **ops, uint16_t nb_ops)
62{
63 uint16_t nb_left = nb_ops;
64 struct rte_mbuf *mbuf;
65
66 while (nb_left--) {
67 mbuf = ops[nb_left]->mbuf;
68 if ((mbuf->pkt_len > MLX5_RXP_MAX_JOB_LENGTH) ||
69 (mbuf->nb_segs > max_nb_segs)) {
70 DRV_LOG(ERR, "Failed to validate regex ops");
71 return 1;
72 }
73 }
74 return 0;
75}
76#endif
77
78static inline uint32_t

Callers 2

mlx5_regexdev_enqueueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected