net/mlx5: fix flow validation
authorNélio Laranjeiro <nelio.laranjeiro@6wind.com>
Thu, 3 May 2018 09:31:38 +0000 (11:31 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 14 May 2018 21:31:48 +0000 (22:31 +0100)
commitb7a7c97a40cf8c513ca4526c4734d7401907692c
tree5e8b7d70b6554e597f3cb8ad3e91575d7ef0d543
parent012ad9944dfc470c17d8f555c89dadd5473e25d4
net/mlx5: fix flow validation

Item spec and last are wrongly compared to the NIC capability causing a
validation failure when the mask is null.
This validation function should only verify the user is not configuring
unsupported matching fields.

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