* Clean up all flow rules. * * Unlike mlx4_flow_flush(), this function takes care of all remaining flow * rules regardless of whether they are internal or user-configured. * * @param priv * Pointer to private structure. */
| 1574 | * Pointer to private structure. |
| 1575 | */ |
| 1576 | void |
| 1577 | mlx4_flow_clean(struct mlx4_priv *priv) |
| 1578 | { |
| 1579 | struct rte_flow *flow; |
| 1580 | |
| 1581 | while ((flow = LIST_FIRST(&priv->flows))) |
| 1582 | mlx4_flow_destroy(ETH_DEV(priv), flow, NULL); |
| 1583 | MLX4_ASSERT(LIST_EMPTY(&priv->rss)); |
| 1584 | } |
| 1585 | |
| 1586 | static const struct rte_flow_ops mlx4_flow_ops = { |
| 1587 | .validate = mlx4_flow_validate, |
no test coverage detected