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:
f8cb4b5
)
net/mlx5: fix flow director flow add
author
Nélio Laranjeiro
<nelio.laranjeiro@6wind.com>
Tue, 24 Oct 2017 15:18:18 +0000
(17:18 +0200)
committer
Ferruh Yigit
<ferruh.yigit@intel.com>
Thu, 26 Oct 2017 00:33:01 +0000
(
02:33
+0200)
Flows are added by priv_flow_create() in the associated list, adding them a
second time corrupts the list causing an infinite loop when parsing it.
Fixes:
4c3e9bcdd52e
("net/mlx5: support flow director")
Signed-off-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
Acked-by: Yongseok Koh <yskoh@mellanox.com>
drivers/net/mlx5/mlx5_flow.c
patch
|
blob
|
history
diff --git
a/drivers/net/mlx5/mlx5_flow.c
b/drivers/net/mlx5/mlx5_flow.c
index
13b78ce
..
26cf593
100644
(file)
--- a/
drivers/net/mlx5/mlx5_flow.c
+++ b/
drivers/net/mlx5/mlx5_flow.c
@@
-2792,7
+2792,6
@@
priv_fdir_filter_add(struct priv *priv,
attributes.actions,
&error);
if (flow) {
- TAILQ_INSERT_TAIL(&priv->flows, flow, next);
DEBUG("FDIR created %p", (void *)flow);
return 0;
}