hv_netvsc: Fix hash key value reset after other ops
authorHaiyang Zhang <haiyangz@microsoft.com>
Tue, 15 Jan 2019 00:51:44 +0000 (00:51 +0000)
committerSasha Levin <sashal@kernel.org>
Wed, 23 Jan 2019 18:21:28 +0000 (13:21 -0500)
commit17d91256898402daf4425cc541ac9cbf64574d9a
treeed1285f9f9db091aa31045cf84bd4062671cc443
parent7c9f335a3ff20557a92584199f3d35c7e992bbe5
hv_netvsc: Fix hash key value reset after other ops

Changing mtu, channels, or buffer sizes ops call to netvsc_attach(),
rndis_set_subchannel(), which always reset the hash key to default
value. That will override hash key changed previously. This patch
fixes the problem by save the hash key, then restore it when we re-
add the netvsc device.

Fixes: ff4a44199012 ("netvsc: allow get/set of RSS indirection table")
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Reviewed-by: Michael Kelley <mikelley@microsoft.com>
[sl: fix up subject line]
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/hyperv/hyperv_net.h
drivers/net/hyperv/netvsc.c
drivers/net/hyperv/netvsc_drv.c
drivers/net/hyperv/rndis_filter.c