net/mlx5: Set reformat action when needed for termination rules
authorJianbo Liu <jianbol@nvidia.com>
Fri, 30 Apr 2021 06:58:29 +0000 (06:58 +0000)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 19 May 2021 06:01:24 +0000 (23:01 -0700)
commit442b3d7b671bcb779ebdad46edd08051eb8b28d9
treed46b49a00733c55c026f63048a203a8d04dec42f
parentdca59f4a791960ec73fa15803faa0abe0f92ece2
net/mlx5: Set reformat action when needed for termination rules

For remote mirroring, after the tunnel packets are received, they are
decapsulated and sent to representor, then re-encapsulated and sent
out over another tunnel. So reformat action is set only when the
destination is required to do encapsulation.

Fixes: 249ccc3c95bd ("net/mlx5e: Add support for offloading traffic from uplink to uplink")
Signed-off-by: Jianbo Liu <jianbol@nvidia.com>
Reviewed-by: Ariel Levkovich <lariel@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads_termtbl.c