1
0
Fork 0
alistair23-linux/drivers/net/hyperv
Haiyang Zhang f08f00f1ca hv_netvsc: Fix unwanted rx_table reset
[ Upstream commit b0689faa8e ]

In existing code, the receive indirection table, rx_table, is in
struct rndis_device, which will be reset when changing MTU, ringparam,
etc. User configured receive indirection table values will be lost.

To fix this, move rx_table to struct net_device_context, and check
netif_is_rxfh_configured(), so rx_table will be set to default only
if no user configured value.

Fixes: ff4a441990 ("netvsc: allow get/set of RSS indirection table")
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-01-12 12:21:45 +01:00
..
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
hyperv_net.h hv_netvsc: Fix unwanted rx_table reset 2020-01-12 12:21:45 +01:00
netvsc.c hv_netvsc: Fix send_table offset in case of a host bug 2019-11-21 19:32:23 -08:00
netvsc_drv.c hv_netvsc: Fix unwanted rx_table reset 2020-01-12 12:21:45 +01:00
netvsc_trace.c hv_netvsc: add trace points 2018-03-17 20:10:27 -04:00
netvsc_trace.h hv_netvsc: add trace points 2018-03-17 20:10:27 -04:00
rndis_filter.c hv_netvsc: Fix unwanted rx_table reset 2020-01-12 12:21:45 +01:00