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

Function mlx4_flow_flush

dpdk/drivers/net/mlx4/mlx4_flow.c:1230–1245  ·  view source on GitHub ↗

* Destroy user-configured flow rules. * * This function skips internal flows rules. * * @see rte_flow_flush() * @see rte_flow_ops */

Source from the content-addressed store, hash-verified

1228 * @see rte_flow_ops
1229 */
1230static int
1231mlx4_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.

Callers

nothing calls this directly

Calls 1

mlx4_flow_destroyFunction · 0.85

Tested by

no test coverage detected