net/mlx5: update VLAN and encap actions validation
authorDekel Peled <dekelp@mellanox.com>
Tue, 24 Mar 2020 12:58:11 +0000 (14:58 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 21 Apr 2020 11:57:05 +0000 (13:57 +0200)
commit9c4971e5231d1fb169ca6f74c9af795953500e88
tree9b17cbe3059a98beb23d050d822ef7e3dc0201f7
parent28a4b96321a3376174dad8778c5245708c469ca7
net/mlx5: update VLAN and encap actions validation

Flow rule in NIC table on VF representor should not contain VLAN pop
or push actions, and encap or decap actions. Using these actions in
NIC table on VF representor is not a valid use case.
This patch updates the various validation functions to reject such
rules.

Cc: stable@dpdk.org
Signed-off-by: Dekel Peled <dekelp@mellanox.com>
Acked-by: Jack Min <jackmin@mellanox.com>
drivers/net/mlx5/mlx5_flow_dv.c