net/mlx5: fix flow pattern validation
authorNélio Laranjeiro <nelio.laranjeiro@6wind.com>
Fri, 27 Jan 2017 15:35:20 +0000 (16:35 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 30 Jan 2017 21:18:27 +0000 (22:18 +0100)
commit3aa7d88451ea698e60744bdb8c868e0fb35031b5
tree6d5b00fc4293ef7b7a5cfb8be071cc4fb99ef3f4
parente74ac669847982129a555834217c2a412eac32e6
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>
drivers/net/mlx5/mlx5_flow.c