net/mlx5e: Block TLS device offload on combined SD netdev
authorTariq Toukan <tariqt@nvidia.com>
Thu, 15 Feb 2024 03:08:12 +0000 (19:08 -0800)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 7 Mar 2024 08:40:40 +0000 (00:40 -0800)
commitd1a8b2c3e43418dd3449a068020f4f32068534cc
treeddb2a17c9046d0802222ce8f50427ee6213d33f0
parent7f525acbccdf7e682d36c196445fb07b8b68dd79
net/mlx5e: Block TLS device offload on combined SD netdev

1) Each TX TLS device offloaded context has its own TIS object.  Extra work
is needed to get it working in a SD environment, where a stream can move
between different SQs (belonging to different mdevs).

2) Each RX TLS device offloaded context needs a DEK object from the DEK
pool.

Extra work is needed to get it working in a SD environment, as the DEK
pool currently falsely depends on TX cap, and is on the primary device
only.

Disallow this combination for now.

Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Reviewed-by: Gal Pressman <gal@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls.c
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls.h