netvsc: make sure and unregister datapath
authorstephen hemminger <stephen@networkplumber.org>
Mon, 7 Aug 2017 18:30:00 +0000 (11:30 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Aug 2017 01:09:52 +0000 (18:09 -0700)
commit7b83f52047e8a3d551a9495b0267df5d0754c5bf
tree06de5d3c75b36b18e501c148a5067833304ca3c0
parentc99c287254e1d2816e2f4b01df9049b88b205bc5
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>
drivers/net/hyperv/hyperv_net.h
drivers/net/hyperv/netvsc.c
drivers/net/hyperv/netvsc_drv.c