mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-25 10:59:05 +00:00
hv_netvsc: Fix VF register on bonding devices
Added a condition to avoid bonding devices with same MAC registering as VF. Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com> Reviewed-by: K. Y. Srinivasan <kys@microsoft.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
0a58f47492
commit
e2b9f1f7af
@ -1494,8 +1494,8 @@ static int netvsc_netdev_event(struct notifier_block *this,
|
||||
{
|
||||
struct net_device *event_dev = netdev_notifier_info_to_dev(ptr);
|
||||
|
||||
/* Avoid Vlan dev with same MAC registering as VF */
|
||||
if (event_dev->priv_flags & IFF_802_1Q_VLAN)
|
||||
/* Avoid Vlan, Bonding dev with same MAC registering as VF */
|
||||
if (event_dev->priv_flags & (IFF_802_1Q_VLAN | IFF_BONDING))
|
||||
return NOTIFY_DONE;
|
||||
|
||||
switch (event) {
|
||||
|
Loading…
Reference in New Issue
Block a user