summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNĂ©lio Laranjeiro <nelio.laranjeiro@6wind.com>2017-01-27 16:35:20 +0100
committerFerruh Yigit <ferruh.yigit@intel.com>2017-01-30 22:18:27 +0100
commit3aa7d88451ea698e60744bdb8c868e0fb35031b5 (patch)
tree6d5b00fc4293ef7b7a5cfb8be071cc4fb99ef3f4
parente74ac669847982129a555834217c2a412eac32e6 (diff)
downloaddpdk-3aa7d88451ea698e60744bdb8c868e0fb35031b5.zip
dpdk-3aa7d88451ea698e60744bdb8c868e0fb35031b5.tar.gz
dpdk-3aa7d88451ea698e60744bdb8c868e0fb35031b5.tar.xz
net/mlx5: fix flow pattern validation
Size of the mask is wrongly computed and make the validation process only verify the first 4 bytes of the layer. Fixes: 2097d0d1e2cc ("net/mlx5: support basic flow items and actions") Signed-off-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
-rw-r--r--drivers/net/mlx5/mlx5_flow.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c
index d805c0a..42a12e8 100644
--- a/drivers/net/mlx5/mlx5_flow.c
+++ b/drivers/net/mlx5/mlx5_flow.c
@@ -424,7 +424,7 @@ priv_flow_validate(struct priv *priv,
cur_item = token;
err = mlx5_flow_item_validate(items,
(const uint8_t *)cur_item->mask,
- sizeof(cur_item->mask_sz));
+ cur_item->mask_sz);
if (err)
goto exit_item_not_supported;
if (flow->ibv_attr && cur_item->convert) {