* Destroy user-configured flow rules. * * This function skips internal flows rules. * * @see rte_flow_flush() * @see rte_flow_ops */
| 1228 | * @see rte_flow_ops |
| 1229 | */ |
| 1230 | static int |
| 1231 | mlx4_flow_flush(struct rte_eth_dev *dev, |
| 1232 | struct rte_flow_error *error) |
| 1233 | { |
| 1234 | struct mlx4_priv *priv = dev->data->dev_private; |
| 1235 | struct rte_flow *flow = LIST_FIRST(&priv->flows); |
| 1236 | |
| 1237 | while (flow) { |
| 1238 | struct rte_flow *next = LIST_NEXT(flow, next); |
| 1239 | |
| 1240 | if (!flow->internal) |
| 1241 | mlx4_flow_destroy(dev, flow, error); |
| 1242 | flow = next; |
| 1243 | } |
| 1244 | return 0; |
| 1245 | } |
| 1246 | |
| 1247 | /** |
| 1248 | * Helper function to determine the next configured VLAN filter. |
nothing calls this directly
no test coverage detected