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

Function mlx4_flow_clean

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

* 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. */

Source from the content-addressed store, hash-verified

1574 * Pointer to private structure.
1575 */
1576void
1577mlx4_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
1586static const struct rte_flow_ops mlx4_flow_ops = {
1587 .validate = mlx4_flow_validate,

Callers 1

mlx4_dev_closeFunction · 0.85

Calls 1

mlx4_flow_destroyFunction · 0.85

Tested by

no test coverage detected