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

Function mlx4_drop_put

dpdk/drivers/net/mlx4/mlx4_flow.c:1002–1012  ·  view source on GitHub ↗

* Give back a drop flow rule resources instance. * * @param drop * Pointer to drop flow rule resources. */

Source from the content-addressed store, hash-verified

1000 * Pointer to drop flow rule resources.
1001 */
1002static void
1003mlx4_drop_put(struct mlx4_drop *drop)
1004{
1005 MLX4_ASSERT(drop->refcnt);
1006 if (--drop->refcnt)
1007 return;
1008 drop->priv->drop = NULL;
1009 claim_zero(mlx4_glue->destroy_qp(drop->qp));
1010 claim_zero(mlx4_glue->destroy_cq(drop->cq));
1011 rte_free(drop);
1012}
1013
1014/**
1015 * Toggle a configured flow rule.

Callers 1

mlx4_flow_toggleFunction · 0.85

Calls 1

rte_freeFunction · 0.85

Tested by

no test coverage detected