diff options
author | Jianbo Liu <jianbol@nvidia.com> | 2023-07-31 14:28:24 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-08-02 18:37:30 -0700 |
commit | c8e350e62fc51f3fda28f166fc402f4fb539f528 (patch) | |
tree | d14e9d5e9906fd6beb680f70c4507035b80897d6 /include | |
parent | 6e56ab1c90593630d5e8799831e9dea4850128ea (diff) | |
download | linux-stable-c8e350e62fc51f3fda28f166fc402f4fb539f528.tar.gz linux-stable-c8e350e62fc51f3fda28f166fc402f4fb539f528.tar.bz2 linux-stable-c8e350e62fc51f3fda28f166fc402f4fb539f528.zip |
net/mlx5e: Make TC and IPsec offloads mutually exclusive on a netdev
For IPsec packet offload mode, the order of TC offload and IPsec
offload on the same netdevice is not aligned with the order in the
non-offload software. For example, for RX, the software performs TC
first and then IPsec transformation, but the implementation for
offload does that in the opposite way.
To resolve the difference for now, either IPsec offload or TC offload,
not both, is allowed for a specific interface.
Signed-off-by: Jianbo Liu <jianbol@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Link: https://lore.kernel.org/r/8e2e5e3b0984d785066e8663aaf97b3ba1bb873f.1690802064.git.leon@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/mlx5/driver.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mlx5/driver.h b/include/linux/mlx5/driver.h index f21703fb75fd..fa70c25423b2 100644 --- a/include/linux/mlx5/driver.h +++ b/include/linux/mlx5/driver.h @@ -806,6 +806,8 @@ struct mlx5_core_dev { u32 vsc_addr; struct mlx5_hv_vhca *hv_vhca; struct mlx5_thermal *thermal; + u64 num_block_tc; + u64 num_block_ipsec; }; struct mlx5_db { |