diff mbox series

[rdma-next] RDMA/mlx5: Fix link status down event for MPV

Message ID d7731478e456f61255af798a7fd4e64b006ddebb.1735567976.git.leonro@nvidia.com (mailing list archive)
State Accepted
Headers show
Series [rdma-next] RDMA/mlx5: Fix link status down event for MPV | expand

Commit Message

Leon Romanovsky Dec. 30, 2024, 2:14 p.m. UTC
From: Patrisious Haddad <phaddad@nvidia.com>

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: 379013776222 ("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>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
---
 drivers/infiniband/hw/mlx5/main.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Leon Romanovsky Jan. 2, 2025, 9:48 a.m. UTC | #1
On Mon, 30 Dec 2024 16:14:04 +0200, Leon Romanovsky wrote:
> 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.
> 
> 

Applied, thanks!

[1/1] RDMA/mlx5: Fix link status down event for MPV
      https://git.kernel.org/rdma/rdma/c/220043b06fded9

Best regards,
diff mbox series

Patch

diff --git a/drivers/infiniband/hw/mlx5/main.c b/drivers/infiniband/hw/mlx5/main.c
index 9ea1869f2ab9..81849eb671a1 100644
--- a/drivers/infiniband/hw/mlx5/main.c
+++ b/drivers/infiniband/hw/mlx5/main.c
@@ -242,7 +242,8 @@  static int mlx5_netdev_event(struct notifier_block *this,
 	case NETDEV_DOWN: {
 		struct net_device *upper = NULL;
 
-		if (!netif_is_lag_master(ndev) && !netif_is_lag_port(ndev))
+		if (!netif_is_lag_master(ndev) && !netif_is_lag_port(ndev) &&
+		    !mlx5_core_mp_enabled(mdev))
 			return NOTIFY_DONE;
 
 		if (mlx5_lag_is_roce(mdev) || mlx5_lag_is_sriov(mdev)) {