]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net/mlx5e: TC: Reserved bit 31 of REG_C1 for IPsec offload
authorHuy Nguyen <huyn@nvidia.com>
Mon, 23 Nov 2020 20:48:22 +0000 (14:48 -0600)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 27 May 2021 18:54:36 +0000 (11:54 -0700)
commitb973cf32453f78d8661a640d0a0167d1d41ea331
tree254277b4ccdcb621cd144832656dfd1685a3d325
parented2fe7ba7b9f550ec03e89e3f423bdd97de248d6
net/mlx5e: TC: Reserved bit 31 of REG_C1 for IPsec offload

Currently ASAP features fully utilize all the bits of the CQE's flow tag
and ft_metadata field. The flow tag field cannot be used because the
flow table tagging in FTE does not allow partial write.

We agree to reserve bit 31 of CQE's ft_metadata for IPsec to avoid
ASAP CT from dropping IPsec offloaded packet

Here is the new bit layout of REG_C1. Tunnel option id is reduced to
11 bits:
< IPSEC MARKER (1) | ESW_TUN_ID(12) | ESW_TUN_OPTS(11) | ESW_ZONE_ID(8) >

Signed-off-by: Huy Nguyen <huyn@nvidia.com>
Signed-off-by: Raed Salem <raeds@nvidia.com>
Reviewed-by: Paul Blakey <paulb@nvidia.com>
Reviewed-by: Roi Dayan <roid@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Paul Blakey <paulb@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en/rep/tc.c
drivers/net/ethernet/mellanox/mlx5/core/en_tc.h
include/linux/mlx5/eswitch.h