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

Function flow_drv_destroy

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

* Flow driver destroy API. This abstracts calling driver specific functions. * Parent flow (rte_flow) should have driver type (drv_type). It removes a flow * on device and releases resources of the flow. * * @param[in] dev * Pointer to Ethernet device. * @param[in, out] flow * Pointer to flow structure. */

Source from the content-addressed store, hash-verified

4379 * Pointer to flow structure.
4380 */
4381static inline void
4382flow_drv_destroy(struct rte_eth_dev *dev, struct rte_flow *flow)
4383{
4384 const struct mlx5_flow_driver_ops *fops;
4385 enum mlx5_flow_drv_type type = flow->drv_type;
4386
4387 MLX5_ASSERT(type > MLX5_FLOW_TYPE_MIN && type < MLX5_FLOW_TYPE_MAX);
4388 fops = flow_get_drv_ops(type);
4389 fops->destroy(dev, flow);
4390}
4391
4392/**
4393 * Flow driver find RSS policy tbl API. This abstracts calling driver

Callers 2

flow_list_createFunction · 0.85
flow_list_destroyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected