hv_netvsc: Use Windows version instead of NVSP version on GPAD teardown
authorMohammed Gamal <mgamal@redhat.com>
Thu, 5 Apr 2018 19:09:18 +0000 (21:09 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 6 Apr 2018 02:21:00 +0000 (22:21 -0400)
commit2afc5d61a7197de25a61f54ea4ecfb4cb62b1d42
tree5e1e4b8d32057971d2ad1c473e6fe622b201af25
parent3d92f0b582062127026af1fb5e86eda4a3b01783
hv_netvsc: Use Windows version instead of NVSP version on GPAD teardown

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>
drivers/net/hyperv/netvsc.c