net/mlx5: fix validation of VLAN PCP item
authorDekel Peled <dekelp@mellanox.com>
Mon, 29 Jul 2019 15:14:45 +0000 (18:14 +0300)
committerRaslan Darawsheh <rasland@mellanox.com>
Tue, 6 Aug 2019 15:42:12 +0000 (17:42 +0200)
commita3970d31e6fb0673611a4a0a4891b7109ae419cc
treea379a04bc627e3c39c1dd386ebe3b93b6effa39f
parent164cad78b040122eac581a905a466bd22e7e66b8
net/mlx5: fix validation of VLAN PCP item

Function mlx5_flow_validate_item_vlan() validates the user setting
is supported by NIC, using a mask with TCI mask 0x0fff.
This check will reject a flow rule specifying a vlan pcp item.

This patch updates mlx5_flow_validate_item_vlan() to use mask 0xffff,
so flow rules with vlan pcp item are accepted.

Fixes: 23c1d42c7138 ("net/mlx5: split flow validation to dedicated function")
Cc: stable@dpdk.org
Signed-off-by: Dekel Peled <dekelp@mellanox.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
drivers/net/mlx5/mlx5_flow.c