net/mlx5: fix VLAN ID check
authorWisam Jaddo <wisamm@mellanox.com>
Thu, 30 Apr 2020 08:31:03 +0000 (08:31 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 5 May 2020 13:54:27 +0000 (15:54 +0200)
commitb756f2980718bf2cb1c8f57762f42c656986998d
treea00adfffdd9ed25d112d54ac8954d34848cfffc7
parentc8fa92f6c16691664a3f8e080233aa3480907497
net/mlx5: fix VLAN ID check

All comparison should be done in CPU endianness, otherwise
it will not give right results.

for example:
255 after converting into RTE_BE16 will be biger than 4096 after
converting into RTE_BE16.

Fixes: a5f2da0b816b ("net/mlx5: support modify VLAN ID on new VLAN header")
Cc: stable@dpdk.org
Signed-off-by: Wisam Jaddo <wisamm@mellanox.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
drivers/net/mlx5/mlx5_flow_dv.c