diff options
author | Yuyu Li <liyuyu6@huawei.com> | 2024-11-22 13:53:07 +0300 |
---|---|---|
committer | Leon Romanovsky <leon@kernel.org> | 2024-12-26 07:39:11 +0300 |
commit | 379013776222e296645f39a689c57edc5f13b5be (patch) | |
tree | 5a161157eb4a04aa5d047e8cd3ad4cf1e2c69539 | |
parent | e89fd16278fda644fc7e3a6870d814d294be05b9 (diff) | |
download | linux-379013776222e296645f39a689c57edc5f13b5be.tar.xz |
RDMA/mlx5: Handle link status event only for LAG device
The link status events of non-LAG devices are now handled in ib_core,
so only LAG device events need to be handled in driver.
Signed-off-by: Yuyu Li <liyuyu6@huawei.com>
Signed-off-by: Junxian Huang <huangjunxian6@hisilicon.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
-rw-r--r-- | drivers/infiniband/hw/mlx5/main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/mlx5/main.c b/drivers/infiniband/hw/mlx5/main.c index bc7930d0c564..e4010f871865 100644 --- a/drivers/infiniband/hw/mlx5/main.c +++ b/drivers/infiniband/hw/mlx5/main.c @@ -242,6 +242,9 @@ 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)) + return NOTIFY_DONE; + if (mlx5_lag_is_roce(mdev) || mlx5_lag_is_sriov(mdev)) { struct net_device *lag_ndev; |