summaryrefslogtreecommitdiffstats
path: root/drivers/net/hyperv/netvsc_drv.c
diff options
context:
space:
mode:
authorJuhee Kang <claudiajkang@gmail.com>2021-10-10 06:03:28 +0200
committerDavid S. Miller <davem@davemloft.net>2021-10-10 12:18:48 +0200
commitc60882a4566a0a62dc3a40c85131103aad83dcb3 (patch)
treebcc8a2474ada8c1ded5407c7cce69680bd1bcbea /drivers/net/hyperv/netvsc_drv.c
parentbnxt: use netif_is_rxfh_configured instead of open code (diff)
downloadlinux-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.c3
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) {