net/mlx5: fix layer type in header modify action
authorSuanming Mou <suanmingm@mellanox.com>
Wed, 19 Feb 2020 14:26:20 +0000 (16:26 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 21 Feb 2020 10:41:21 +0000 (11:41 +0100)
commit04233f36c712ea35fe0f1d02c5c6f323a28ec588
tree5677224e22ef09b0b8e185d41e438643f02b501e
parente505ac7f91b59e1165c143f14b208885658d2f94
net/mlx5: fix layer type in header modify action

Currently, for header modify actions after tunnel decapsulation, the
header modify actions will still select the old outermost layer type.
It will cause header modify actions get the wrong layer type.

Add the tunnel decap flag to indicate the layer type to get for header
modify actions.

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