diff options
author | stephen hemminger <stephen@networkplumber.org> | 2017-08-07 11:30:00 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-08-08 18:09:52 -0700 |
commit | 7b83f52047e8a3d551a9495b0267df5d0754c5bf (patch) | |
tree | 06de5d3c75b36b18e501c148a5067833304ca3c0 /drivers/net/hyperv/netvsc.c | |
parent | c99c287254e1d2816e2f4b01df9049b88b205bc5 (diff) | |
download | talos-op-linux-7b83f52047e8a3d551a9495b0267df5d0754c5bf.tar.gz talos-op-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.c | 2 |
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) |