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

Function get_free

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

Source from the content-addressed store, hash-verified

222}
223
224static inline int
225get_free(struct mlx5_regex_hw_qp *qp, uint8_t has_umr) {
226 return (qp_size_get(qp) - ((qp->pi - qp->ci) &
227 (has_umr ? (MLX5_REGEX_MAX_WQE_INDEX >> 2) :
228 MLX5_REGEX_MAX_WQE_INDEX)));
229}
230
231static inline uint32_t
232job_id_get(uint32_t qid, size_t qp_size, size_t index) {

Callers 2

mlx5_regexdev_enqueueFunction · 0.85

Calls 1

qp_size_getFunction · 0.85

Tested by

no test coverage detected