Skip to content

Commit 3790137

Browse files
Yuyu Lirleon
authored andcommitted
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>
1 parent e89fd16 commit 3790137

File tree

1 file changed

+3
-0
lines changed
  • drivers/infiniband/hw/mlx5

1 file changed

+3
-0
lines changed

drivers/infiniband/hw/mlx5/main.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,9 @@ 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))
246+
return NOTIFY_DONE;
247+
245248
if (mlx5_lag_is_roce(mdev) || mlx5_lag_is_sriov(mdev)) {
246249
struct net_device *lag_ndev;
247250

0 commit comments

Comments
 (0)