git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
762be1b
)
net/mlx4: use dedicated list iterator
author
Adrien Mazarguil
<adrien.mazarguil@6wind.com>
Thu, 19 Oct 2017 16:11:02 +0000
(18:11 +0200)
committer
Ferruh Yigit
<ferruh.yigit@intel.com>
Thu, 26 Oct 2017 00:33:00 +0000
(
02:33
+0200)
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>
drivers/net/mlx4/mlx4_flow.c
patch
|
blob
|
history
diff --git
a/drivers/net/mlx4/mlx4_flow.c
b/drivers/net/mlx4/mlx4_flow.c
index
5c4bf8e
..
5af6efb
100644
(file)
--- 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;