net/mlx5: fix flow item validation
authorNélio Laranjeiro <nelio.laranjeiro@6wind.com>
Tue, 23 Jan 2018 08:05:09 +0000 (09:05 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 29 Jan 2018 09:04:28 +0000 (10:04 +0100)
commit537e168450ce5e191c8d3ee89fa7fa9901e8e27f
tree2a8de96d2194cbb5158196a9439065f2c7a72b7a
parentd10f422fd59a7a6d01da1b2a79975e9776fba840
net/mlx5: fix flow item validation

Two masks were compared instead of verifying the spec was included in the
supported mask.

Fixes: 2097d0d1e2cc ("net/mlx5: support basic flow items and actions")
Cc: stable@dpdk.org
Signed-off-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
Acked-by: Yongseok Koh <yskoh@mellanox.com>
drivers/net/mlx5/mlx5_flow.c