net/mlx5: fix layer validation with decapsulation
authorSuanming Mou <suanmingm@mellanox.com>
Wed, 19 Feb 2020 14:26:19 +0000 (16:26 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 21 Feb 2020 10:41:20 +0000 (11:41 +0100)
commite505ac7f91b59e1165c143f14b208885658d2f94
tree1cd56f052e96a0c19f7f9defe965835a799fe7f0
parentbdcfb8a10bea8f56f5d89394ed1364735f1e3408
net/mlx5: fix layer validation with decapsulation

Currently, the flow validate function only validate the outermost layer
with the header modify actions. If there is decapsulation action before
the header modify action, the validation should choose the inner layer
for validation.

Add decapsulation check when validate with the header modify actions.
Choose the inner layer once there is decapsulation action.

Fixes: 4bb14c83df95 ("net/mlx5: support modify header using Direct Verbs")
Cc: stable@dpdk.org
Signed-off-by: Suanming Mou <suanmingm@mellanox.com>
Acked-by: Matan Azrad <matan@mellanox.com>
drivers/net/mlx5/mlx5_flow_dv.c