summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNelio Laranjeiro <nelio.laranjeiro@6wind.com>2017-11-13 11:25:16 +0100
committerThomas Monjalon <thomas@monjalon.net>2017-11-14 06:31:18 +0100
commite49f11365427159317d8c18250c31c2f98bf5dce (patch)
treede95089e9b1a4bbbe606d496ef559891149b40eb
parent4b08726301dcadabb3923602b87932f9c5870664 (diff)
downloaddpdk-draft-cli-e49f11365427159317d8c18250c31c2f98bf5dce.zip
dpdk-draft-cli-e49f11365427159317d8c18250c31c2f98bf5dce.tar.gz
dpdk-draft-cli-e49f11365427159317d8c18250c31c2f98bf5dce.tar.xz
net/mlx5: fix flow director deletion
The specification are wrongly computed causing the rule to not be match correctly for deletion. Fixes: 4c3e9bcdd52e ("net/mlx5: support flow director") Signed-off-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com> Acked-by: Yongseok Koh <yskoh@mellanox.com>
-rw-r--r--drivers/net/mlx5/mlx5_flow.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c
index 3df8fba..466d74b 100644
--- a/drivers/net/mlx5/mlx5_flow.c
+++ b/drivers/net/mlx5/mlx5_flow.c
@@ -2915,8 +2915,8 @@ priv_fdir_filter_delete(struct priv *priv,
if (memcmp(spec, flow_spec,
RTE_MIN(attr_h->size, flow_h->size)))
goto wrong_flow;
- spec = (void *)((uintptr_t)attr + attr_h->size);
- flow_spec = (void *)((uintptr_t)flow_attr +
+ spec = (void *)((uintptr_t)spec + attr_h->size);
+ flow_spec = (void *)((uintptr_t)flow_spec +
flow_h->size);
}
/* At this point, the flow match. */