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

Function mlx4_rss_put

dpdk/drivers/net/mlx4/mlx4_rxq.c:139–150  ·  view source on GitHub ↗

* Release a RSS context instance. * * Used when destroying a flow rule targeting one or several Rx queues. * * This function decrements the reference count of the context and destroys * it after reaching 0. The context must have no users at this point; all * prior calls to mlx4_rss_attach() must have been followed by matching * calls to mlx4_rss_detach(). * * @param rss * RSS context t

Source from the content-addressed store, hash-verified

137 * RSS context to release.
138 */
139void
140mlx4_rss_put(struct mlx4_rss *rss)
141{
142 MLX4_ASSERT(rss->refcnt);
143 if (--rss->refcnt)
144 return;
145 MLX4_ASSERT(!rss->usecnt);
146 MLX4_ASSERT(!rss->qp);
147 MLX4_ASSERT(!rss->ind);
148 LIST_REMOVE(rss, next);
149 rte_free(rss);
150}
151
152/**
153 * Attach a user to a RSS context instance.

Callers 3

mlx4_flow_prepareFunction · 0.85
mlx4_flow_createFunction · 0.85
mlx4_flow_destroyFunction · 0.85

Calls 1

rte_freeFunction · 0.85

Tested by

no test coverage detected