Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1412446
| From | Haiyang Zhang <haiyangz@microsoft.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH net-next] hv_netvsc: Fix VF register on vlan devices |
| Date | 2016-06-02 19:30 +0200 |
| Message-ID | <rFEBr-wH-1@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
Added a condition to avoid vlan devices with same MAC registering
as VF.
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Reviewed-by: K. Y. Srinivasan <kys@microsoft.com>
---
drivers/net/hyperv/netvsc_drv.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/drivers/net/hyperv/netvsc_drv.c b/drivers/net/hyperv/netvsc_drv.c
index 6a69b5c..5ac1267 100644
--- 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);
--
1.7.4.1
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH net-next] hv_netvsc: Fix VF register on vlan devices Haiyang Zhang <haiyangz@microsoft.com> - 2016-06-02 19:30 +0200 Re: [PATCH net-next] hv_netvsc: Fix VF register on vlan devices David Miller <davem@davemloft.net> - 2016-06-04 01:50 +0200
csiph-web