summaryrefslogtreecommitdiffstats
path: root/drivers/net/hyperv/netvsc.c
diff options
context:
space:
mode:
authorstephen hemminger2017-08-07 20:30:00 +0200
committerDavid S. Miller2017-08-09 03:09:52 +0200
commit7b83f52047e8a3d551a9495b0267df5d0754c5bf (patch)
tree06de5d3c75b36b18e501c148a5067833304ca3c0 /drivers/net/hyperv/netvsc.c
parentliquidio: fix wrong info about vf rx/tx ring parameters reported to ethtool (diff)
downloadkernel-qcow2-linux-7b83f52047e8a3d551a9495b0267df5d0754c5bf.tar.gz
kernel-qcow2-linux-7b83f52047e8a3d551a9495b0267df5d0754c5bf.tar.xz
kernel-qcow2-linux-7b83f52047e8a3d551a9495b0267df5d0754c5bf.zip
netvsc: make sure and unregister datapath
Go back to switching datapath directly in the notifier callback. Otherwise datapath might not get switched on unregister. No need for calling the NOTIFY_PEERS notifier since that is only for a gratitious ARP/ND packet; but that is not required with Hyper-V because both VF and synthetic NIC have the same MAC address. Reported-by: Vitaly Kuznetsov <vkuznets@redhat.com> Fixes: 0c195567a8f6 ("netvsc: transparent VF management") Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/hyperv/netvsc.c')
-rw-r--r--drivers/net/hyperv/netvsc.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/hyperv/netvsc.c b/drivers/net/hyperv/netvsc.c
index 9598220b3bcc..208f03aa83de 100644
--- a/drivers/net/hyperv/netvsc.c
+++ b/drivers/net/hyperv/netvsc.c
@@ -60,8 +60,6 @@ void netvsc_switch_datapath(struct net_device *ndev, bool vf)
sizeof(struct nvsp_message),
(unsigned long)init_pkt,
VM_PKT_DATA_INBAND, 0);
-
- net_device_ctx->datapath = vf;
}
static struct netvsc_device *alloc_net_device(void)