diff options
author | Mark Bloch <mbloch@nvidia.com> | 2023-12-06 15:01:37 +0100 |
---|---|---|
committer | Leon Romanovsky <leon@kernel.org> | 2023-12-12 08:04:04 +0100 |
commit | eb524d0fd46249b0b9e5d52372dc65d8b32430c3 (patch) | |
tree | 9066b7194e26948c3b7a0f78d60674112349daa5 /drivers/net | |
parent | net/mlx5: Manage ICM type of SW encap (diff) | |
download | linux-eb524d0fd46249b0b9e5d52372dc65d8b32430c3.tar.xz linux-eb524d0fd46249b0b9e5d52372dc65d8b32430c3.zip |
net/mlx5: E-Switch, expose eswitch manager vport
Expose the ability the query the eswitch manager vport number.
Next patch will utilize this capability to reveal the correct
register C0 value to the users.
Signed-off-by: Mark Bloch <mbloch@nvidia.com>
Link: https://lore.kernel.org/r/614fb0e216250e2ce3340471ec141b83ec45c7f4.1701871118.git.leon@kernel.org
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/eswitch.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/eswitch.h b/drivers/net/ethernet/mellanox/mlx5/core/eswitch.h index 37ab66e7b403..60a9a6cba0b1 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/eswitch.h +++ b/drivers/net/ethernet/mellanox/mlx5/core/eswitch.h @@ -616,13 +616,6 @@ static inline bool mlx5_esw_allowed(const struct mlx5_eswitch *esw) return esw && MLX5_ESWITCH_MANAGER(esw->dev); } -/* The returned number is valid only when the dev is eswitch manager. */ -static inline u16 mlx5_eswitch_manager_vport(struct mlx5_core_dev *dev) -{ - return mlx5_core_is_ecpf_esw_manager(dev) ? - MLX5_VPORT_ECPF : MLX5_VPORT_PF; -} - static inline bool mlx5_esw_is_manager_vport(const struct mlx5_eswitch *esw, u16 vport_num) { |