diff options
author | Juhee Kang <claudiajkang@gmail.com> | 2021-10-10 13:03:28 +0900 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-10-10 11:18:48 +0100 |
commit | c60882a4566a0a62dc3a40c85131103aad83dcb3 (patch) | |
tree | bcc8a2474ada8c1ded5407c7cce69680bd1bcbea | |
parent | 4b70dce2c1b93930fe4728a221a8d8e674c271c5 (diff) |
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>
-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) { |