* 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
| 137 | * RSS context to release. |
| 138 | */ |
| 139 | void |
| 140 | mlx4_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. |
no test coverage detected