Skip to content

Commit 220043b

Browse files
PatrisiousHaddadrleon
authored andcommitted
RDMA/mlx5: Fix link status down event for MPV
The commit below prevented MPV from unloading correctly due to blocking the netdev down event, allow sending the event for MPV mode to maintain proper unload flow. Fixes: 3790137 ("RDMA/mlx5: Handle link status event only for LAG device") Signed-off-by: Patrisious Haddad <phaddad@nvidia.com> Reviewed-by: Maor Gottlieb <maorg@nvidia.com> Link: https://patch.msgid.link/d7731478e456f61255af798a7fd4e64b006ddebb.1735567976.git.leonro@nvidia.com Signed-off-by: Leon Romanovsky <leon@kernel.org>
1 parent a6c3467 commit 220043b

File tree

1 file changed

+2
-1
lines changed
  • drivers/infiniband/hw/mlx5

1 file changed

+2
-1
lines changed

drivers/infiniband/hw/mlx5/main.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,8 @@ static int mlx5_netdev_event(struct notifier_block *this,
242242
case NETDEV_DOWN: {
243243
struct net_device *upper = NULL;
244244

245-
if (!netif_is_lag_master(ndev) && !netif_is_lag_port(ndev))
245+
if (!netif_is_lag_master(ndev) && !netif_is_lag_port(ndev) &&
246+
!mlx5_core_mp_enabled(mdev))
246247
return NOTIFY_DONE;
247248

248249
if (mlx5_lag_is_roce(mdev) || mlx5_lag_is_sriov(mdev)) {

0 commit comments

Comments
 (0)