diff options
author | Saeed Mahameed <saeedm@nvidia.com> | 2023-12-15 19:31:14 -0800 |
---|---|---|
committer | Saeed Mahameed <saeedm@nvidia.com> | 2023-12-20 16:54:24 -0800 |
commit | a7e7b40c4bc115dbf2a2bb453d7bbb2e0ea99703 (patch) | |
tree | b98370a8b8967d992dd781b6fe6ed2f8c66b3e9b /drivers/net/ethernet/mellanox/mlx5/core/en.h | |
parent | bee9705c679d0df8ee099e3c5312ac76f447848a (diff) | |
download | linux-stable-a7e7b40c4bc115dbf2a2bb453d7bbb2e0ea99703.tar.gz linux-stable-a7e7b40c4bc115dbf2a2bb453d7bbb2e0ea99703.tar.bz2 linux-stable-a7e7b40c4bc115dbf2a2bb453d7bbb2e0ea99703.zip |
net/mlx5e: Use the correct lag ports number when creating TISes
The cited commit moved the code of mlx5e_create_tises() and changed the
loop to create TISes over MLX5_MAX_PORTS constant value, instead of
getting the correct lag ports supported by the device, which can cause
FW errors on devices with less than MLX5_MAX_PORTS ports.
Change that back to mlx5e_get_num_lag_ports(mdev).
Also IPoIB interfaces create there own TISes, they don't use the eth
TISes, pass a flag to indicate that.
Fixes: b25bd37c859f ("net/mlx5: Move TISes from priv to mdev HW resources")
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/en.h')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/en.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en.h b/drivers/net/ethernet/mellanox/mlx5/core/en.h index 0bfe1ca8a364..55c6ace0acd5 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en.h +++ b/drivers/net/ethernet/mellanox/mlx5/core/en.h @@ -1124,7 +1124,7 @@ static inline bool mlx5_tx_swp_supported(struct mlx5_core_dev *mdev) extern const struct ethtool_ops mlx5e_ethtool_ops; int mlx5e_create_mkey(struct mlx5_core_dev *mdev, u32 pdn, u32 *mkey); -int mlx5e_create_mdev_resources(struct mlx5_core_dev *mdev); +int mlx5e_create_mdev_resources(struct mlx5_core_dev *mdev, bool create_tises); void mlx5e_destroy_mdev_resources(struct mlx5_core_dev *mdev); int mlx5e_refresh_tirs(struct mlx5e_priv *priv, bool enable_uc_lb, bool enable_mc_lb); |