diff options
author | Haiyang Zhang <haiyangz@microsoft.com> | 2019-01-15 00:51:44 +0000 |
---|---|---|
committer | Sasha Levin <sashal@kernel.org> | 2019-01-23 13:21:28 -0500 |
commit | 17d91256898402daf4425cc541ac9cbf64574d9a (patch) | |
tree | ed1285f9f9db091aa31045cf84bd4062671cc443 /drivers/net/hyperv/netvsc.c | |
parent | 7c9f335a3ff20557a92584199f3d35c7e992bbe5 (diff) | |
download | linux-stable-17d91256898402daf4425cc541ac9cbf64574d9a.tar.gz linux-stable-17d91256898402daf4425cc541ac9cbf64574d9a.tar.bz2 linux-stable-17d91256898402daf4425cc541ac9cbf64574d9a.zip |
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>
Diffstat (limited to 'drivers/net/hyperv/netvsc.c')
-rw-r--r-- | drivers/net/hyperv/netvsc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/hyperv/netvsc.c b/drivers/net/hyperv/netvsc.c index 922054c1d544..1910810e55bd 100644 --- a/drivers/net/hyperv/netvsc.c +++ b/drivers/net/hyperv/netvsc.c @@ -84,7 +84,7 @@ static void netvsc_subchan_work(struct work_struct *w) rdev = nvdev->extension; if (rdev) { - ret = rndis_set_subchannel(rdev->ndev, nvdev); + ret = rndis_set_subchannel(rdev->ndev, nvdev, NULL); if (ret == 0) { netif_device_attach(rdev->ndev); } else { |