hv_netvsc: change GPAD teardown order on older versions
authorStephen Hemminger <stephen@networkplumber.org>
Tue, 20 Mar 2018 22:03:04 +0000 (15:03 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Mar 2018 16:45:09 +0000 (12:45 -0400)
commit0ef58b0a05c127762f975c3dfe8b922e4aa87a29
tree2a4f98ccc66796cca6e6467d6889f3c33424711b
parent02400fcee2542ee334a2394e0d9f6efd969fe782
hv_netvsc: change GPAD teardown order on older versions

On older versions of Windows, the host ignores messages after
vmbus channel is closed.

Workaround this by doing what Windows does and send the teardown
before close on older versions of NVSP protocol.

Reported-by: Mohammed Gamal <mgamal@redhat.com>
Fixes: 0cf737808ae7 ("hv_netvsc: netvsc_teardown_gpadl() split")
Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/hyperv/netvsc.c