net/mlx4: use dedicated list iterator
Dumb unconditional iteration on flow rules should be performed using the dedicated macro. Signed-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com> Acked-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
This commit is contained in:
parent
762be1b25b
commit
ed4724c80d
@ -1460,9 +1460,7 @@ mlx4_flow_sync(struct priv *priv, struct rte_flow_error *error)
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
/* Toggle the remaining flow rules . */
|
/* Toggle the remaining flow rules . */
|
||||||
for (flow = LIST_FIRST(&priv->flows);
|
LIST_FOREACH(flow, &priv->flows, next) {
|
||||||
flow;
|
|
||||||
flow = LIST_NEXT(flow, next)) {
|
|
||||||
ret = mlx4_flow_toggle(priv, flow, priv->started, error);
|
ret = mlx4_flow_toggle(priv, flow, priv->started, error);
|
||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
|
Loading…
Reference in New Issue
Block a user