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

Function flow_dv_mreg_remove_cb

dpdk/drivers/net/mlx5/mlx5_flow.c:5241–5252  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5239}
5240
5241void
5242flow_dv_mreg_remove_cb(void *tool_ctx, struct mlx5_list_entry *entry)
5243{
5244 struct mlx5_flow_mreg_copy_resource *mcp_res =
5245 container_of(entry, typeof(*mcp_res), hlist_ent);
5246 struct rte_eth_dev *dev = tool_ctx;
5247 struct mlx5_priv *priv = dev->data->dev_private;
5248
5249 MLX5_ASSERT(mcp_res->rix_flow);
5250 flow_list_destroy(dev, MLX5_FLOW_TYPE_MCP, mcp_res->rix_flow);
5251 mlx5_ipool_free(priv->sh->ipool[MLX5_IPOOL_MCP], mcp_res->idx);
5252}
5253
5254/**
5255 * Release flow in RX_CP_TBL.

Callers

nothing calls this directly

Calls 2

flow_list_destroyFunction · 0.85
mlx5_ipool_freeFunction · 0.85

Tested by

no test coverage detected