net/mlx5: fix VLAN pop with decap action validation
authorDekel Peled <dekelp@mellanox.com>
Wed, 15 Jul 2020 07:30:33 +0000 (10:30 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 21 Jul 2020 13:46:30 +0000 (15:46 +0200)
commitdd6745da6dea7c3e954ed4e93ba161416ccd3a80
tree8519ca4817401124659219ffc663d918ec38aac2
parent038e7fc085746167f8a50c1612acada5a78fc7da
net/mlx5: fix VLAN pop with decap action validation

The combination of decap action followed by pop VLAN action is not
fully validated in existing code.

This patch updates the validation function of pop vlan action.
Pop VLAN with preceding Decap requires inner header with VLAN.
Pop VLAN without preceding Decap requires outer header with VLAN.

Fixes: b41e47da2592 ("net/mlx5: support pop flow action on VLAN header")
Cc: stable@dpdk.org
Signed-off-by: Dekel Peled <dekelp@mellanox.com>
Acked-by: Matan Azrad <matan@mellanox.com>
drivers/net/mlx5/mlx5_flow_dv.c