net/mlx5: fix flow pattern VLAN validation
authorNélio Laranjeiro <nelio.laranjeiro@6wind.com>
Fri, 27 Jan 2017 15:35:19 +0000 (16:35 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 30 Jan 2017 21:18:27 +0000 (22:18 +0100)
commite74ac669847982129a555834217c2a412eac32e6
tree98e52f00a21f0dcc0551ee3c834b071708e24f9b
parent1d7f076c1cc40a3697560dba37752d35e8f89782
net/mlx5: fix flow pattern VLAN validation

TCI field is read from the wrong place due to an invalid cast. Moreover
there is no need to limit matching to VID since PCP and DEI bits can be
matched as well.

Fixes: 12475fb203ad ("net/mlx5: support VLAN flow item")

Signed-off-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
drivers/net/mlx5/mlx5_flow.c