mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 18:09:56 +00:00
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>
This commit is contained in:
committed by
Saeed Mahameed
parent
d1a8b2c3e4
commit
ed29705e4e
@@ -59,10 +59,11 @@ struct mlx5_sd;
|
|||||||
|
|
||||||
static inline struct mlx5_sd *mlx5_get_sd(struct mlx5_core_dev *dev)
|
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)
|
static inline void mlx5_set_sd(struct mlx5_core_dev *dev, struct mlx5_sd *sd)
|
||||||
{
|
{
|
||||||
|
dev->sd = sd;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -823,6 +823,7 @@ struct mlx5_core_dev {
|
|||||||
struct blocking_notifier_head macsec_nh;
|
struct blocking_notifier_head macsec_nh;
|
||||||
#endif
|
#endif
|
||||||
u64 num_ipsec_offloads;
|
u64 num_ipsec_offloads;
|
||||||
|
struct mlx5_sd *sd;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct mlx5_db {
|
struct mlx5_db {
|
||||||
|
|||||||
Reference in New Issue
Block a user