diff options
author | Juhee Kang <claudiajkang@gmail.com> | 2021-10-10 06:03:28 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-10-10 12:18:48 +0200 |
commit | c60882a4566a0a62dc3a40c85131103aad83dcb3 (patch) | |
tree | bcc8a2474ada8c1ded5407c7cce69680bd1bcbea /drivers/net | |
parent | bnxt: use netif_is_rxfh_configured instead of open code (diff) | |
download | linux-c60882a4566a0a62dc3a40c85131103aad83dcb3.tar.xz linux-c60882a4566a0a62dc3a40c85131103aad83dcb3.zip |
hv_netvsc: use netif_is_bond_master() instead of open code
Use netif_is_bond_master() function instead of open code, which is
((event_dev->priv_flags & IFF_BONDING) && (event_dev->flags & IFF_MASTER)).
This patch doesn't change logic.
Signed-off-by: Juhee Kang <claudiajkang@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r-- | drivers/net/hyperv/netvsc_drv.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/hyperv/netvsc_drv.c b/drivers/net/hyperv/netvsc_drv.c index 479d2835a220..65850ea8a924 100644 --- a/drivers/net/hyperv/netvsc_drv.c +++ b/drivers/net/hyperv/netvsc_drv.c @@ -2742,8 +2742,7 @@ static int netvsc_netdev_event(struct notifier_block *this, return NOTIFY_DONE; /* Avoid Bonding master dev with same MAC registering as VF */ - if ((event_dev->priv_flags & IFF_BONDING) && - (event_dev->flags & IFF_MASTER)) + if (netif_is_bond_master(event_dev)) return NOTIFY_DONE; switch (event) { |