* 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. */
| 4379 | * Pointer to flow structure. |
| 4380 | */ |
| 4381 | static inline void |
| 4382 | flow_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 |
no outgoing calls
no test coverage detected