projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db54275
)
hv_netvsc: Fix VF register on vlan devices
author
Haiyang Zhang
<
[email protected]
>
Thu, 2 Jun 2016 19:02:04 +0000
(12:02 -0700)
committer
David S. Miller
<
[email protected]
>
Fri, 3 Jun 2016 23:40:05 +0000
(19:40 -0400)
Added a condition to avoid vlan devices with same MAC registering
as VF.
Signed-off-by: Haiyang Zhang <
[email protected]
>
Reviewed-by: K. Y. Srinivasan <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/hyperv/netvsc_drv.c
patch
|
blob
|
history
diff --git
a/drivers/net/hyperv/netvsc_drv.c
b/drivers/net/hyperv/netvsc_drv.c
index 6a69b5cc9fe271c5017408da65b13de9ad533e96..5ac1267b393ffd09bd8f6b9b21cb7c14197a7212 100644
(file)
--- a/
drivers/net/hyperv/netvsc_drv.c
+++ b/
drivers/net/hyperv/netvsc_drv.c
@@
-1500,6
+1500,10
@@
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)
+ return NOTIFY_DONE;
+
switch (event) {
case NETDEV_REGISTER:
return netvsc_register_vf(event_dev);