mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-21 06:50:25 +00:00
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>
This commit is contained in:
parent
e89fd16278
commit
3790137762
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue