aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/net/ethernet/mellanox/mlx5
diff options
context:
space:
mode:
authorTariq Toukan <tariqt@nvidia.com>2024-02-14 19:08:13 -0800
committerSaeed Mahameed <saeedm@nvidia.com>2024-03-07 00:40:40 -0800
commited29705e4ed1d5c1b2184fecc4684bd56c5d24ee (patch)
treed077f5b5e31d5eb387a6655b042cddd0538b68aa /drivers/net/ethernet/mellanox/mlx5
parentnet/mlx5e: Block TLS device offload on combined SD netdev (diff)
downloadwireguard-linux-ed29705e4ed1d5c1b2184fecc4684bd56c5d24ee.tar.xz
wireguard-linux-ed29705e4ed1d5c1b2184fecc4684bd56c5d24ee.zip
net/mlx5: Enable SD feature
Have an actual mlx5_sd instance in the core device, and fix the getter accordingly. This allows SD stuff to flow, the feature becomes supported only here. Signed-off-by: Tariq Toukan <tariqt@nvidia.com> Reviewed-by: Gal Pressman <gal@nvidia.com> Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5')
-rw-r--r--drivers/net/ethernet/mellanox/mlx5/core/lib/mlx5.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/lib/mlx5.h b/drivers/net/ethernet/mellanox/mlx5/core/lib/mlx5.h
index 0810b92b48d0..37d5f445598c 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/lib/mlx5.h
+++ b/drivers/net/ethernet/mellanox/mlx5/core/lib/mlx5.h
@@ -59,10 +59,11 @@ struct mlx5_sd;
static inline struct mlx5_sd *mlx5_get_sd(struct mlx5_core_dev *dev)
{
- return NULL;
+ return dev->sd;
}
static inline void mlx5_set_sd(struct mlx5_core_dev *dev, struct mlx5_sd *sd)
{
+ dev->sd = sd;
}
#endif