]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/mlx5/mlx5_flow.c
net/mlx5: fix flow director deletion
[dpdk.git] / drivers / net / mlx5 / mlx5_flow.c
index 3df8fba4e03a9a4059f25144997394594f7090d8..466d74b5ffa9038878c70194ed690a12d87159e8 100644 (file)
@@ -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. */