Commit a7e9da4d authored by Jiri Pirko's avatar Jiri Pirko Committed by Greg Kroah-Hartman
Browse files

net/mlx5: Use devlink port pointer to get the pointer of container SF struct



[ Upstream commit 9caeb147 ]

Benefit from the fact that struct devlink_port is eventually embedded
in struct mlx5_sf and use container_of() macro to get it instead of the
xarray lookup in every devlink port op.

Signed-off-by: default avatarJiri Pirko <jiri@nvidia.com>
Reviewed-by: default avatarShay Drory <shayd@nvidia.com>
Signed-off-by: default avatarSaeed Mahameed <saeedm@nvidia.com>
Stable-dep-of: 26e42ec7 ("net/mlx5: Nack sync reset when SFs are present")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 25659835
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment