hv_netvsc: Use Windows version instead of NVSP version on GPAD teardown
authorMohammed Gamal <mgamal@redhat.com>
Mon, 14 May 2018 22:32:19 +0000 (15:32 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 May 2018 14:17:30 +0000 (16:17 +0200)
commitd8c3e04d39132d2aa72bb62df1b14b95f0af90d8
tree3b443a02b87f0b9cf72af59c8f1bd0c5295a7273
parentbe9c798d0d13ae609a91177323ac816545c39d28
hv_netvsc: Use Windows version instead of NVSP version on GPAD teardown

commit 2afc5d61a7197de25a61f54ea4ecfb4cb62b1d42A upstram

When changing network interface settings, Windows guests
older than WS2016 can no longer shutdown. This was addressed
by commit 0ef58b0a05c12 ("hv_netvsc: change GPAD teardown order
on older versions"), however the issue also occurs on WS2012
guests that share NVSP protocol versions with WS2016 guests.
Hence we use Windows version directly to differentiate them.

Fixes: 0ef58b0a05c12 ("hv_netvsc: change GPAD teardown order on older versions")
Signed-off-by: Mohammed Gamal <mgamal@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/hyperv/netvsc.c