]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2fc1971168b7aa4e92ebfb706032be341d04ed3d
treeed1285f9f9db091aa31045cf84bd4062671cc443
parent576b0f02ee15fe32bafd9b89a1cb28a66f58e636
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: 3807eedf7471 ("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