For header modify actions after decapsulation action, the header modify actions should be applied to the inner layers.
Currently, it always treats the outermost layers as the corresponding layer even though with decapsulation action. Add the layer validation with decapsulation for the header modify action and fix the incorrect layers chosen in header modify action with decapsulation action. Suanming Mou (2): net/mlx5: fix wrong layer validation with decapsulation net/mlx5: fix header modifiy choose wrong layer type drivers/net/mlx5/mlx5_flow_dv.c | 104 +++++++++++++++++++++++++++++++++------- 1 file changed, 87 insertions(+), 17 deletions(-) -- 1.8.3.1