Skip to content
Commit a7e7b40c authored by Saeed Mahameed's avatar Saeed Mahameed
Browse files

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: b25bd37c ("net/mlx5: Move TISes from priv to mdev HW resources")
Signed-off-by: default avatarSaeed Mahameed <saeedm@nvidia.com>
parent bee9705c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment