From: Adrien Mazarguil Date: Thu, 19 Oct 2017 16:11:02 +0000 (+0200) Subject: net/mlx4: use dedicated list iterator X-Git-Tag: spdx-start~1150 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=ed4724c80d97be9695d393cd8b1e8ec3b0154609;p=dpdk.git net/mlx4: use dedicated list iterator Dumb unconditional iteration on flow rules should be performed using the dedicated macro. Signed-off-by: Adrien Mazarguil Acked-by: Nelio Laranjeiro --- diff --git a/drivers/net/mlx4/mlx4_flow.c b/drivers/net/mlx4/mlx4_flow.c index 5c4bf8e191..5af6efb081 100644 --- a/drivers/net/mlx4/mlx4_flow.c +++ b/drivers/net/mlx4/mlx4_flow.c @@ -1460,9 +1460,7 @@ mlx4_flow_sync(struct priv *priv, struct rte_flow_error *error) return ret; } /* Toggle the remaining flow rules . */ - for (flow = LIST_FIRST(&priv->flows); - flow; - flow = LIST_NEXT(flow, next)) { + LIST_FOREACH(flow, &priv->flows, next) { ret = mlx4_flow_toggle(priv, flow, priv->started, error); if (ret) return ret;