mbox

[0/2] net/mlx5: fix incorrect layer choose with decap

Message ID 1582122380-54467-1-git-send-email-suanmingm@mellanox.com (mailing list archive)
Headers

Message

Suanming Mou Feb. 19, 2020, 2:26 p.m. UTC
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(-)