net/mlx5e: Block TLS device offload on combined SD netdev
authorTariq Toukan <tariqt@nvidia.com>
Wed, 13 Dec 2023 11:11:47 +0000 (13:11 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 21 Dec 2023 00:54:27 +0000 (16:54 -0800)
commit83a59ce0057b7753d7fbece194b89622c663b2a6
tree3d3889b00eccbb42ff90825e2ce9ad3d6bc6ee93
parentd72baceb92539a178d2610b0e9ceb75706a75b55
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