diff options
| author | Haiyang Zhang <haiyangz@microsoft.com> | 2019-12-19 18:28:10 -0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-01-12 12:21:45 +0100 |
| commit | f08f00f1ca3b912d64902c8cfea5e7059242602e (patch) | |
| tree | 18951dfa5010f9a2797a58dc9991fd4ead647da3 /kernel/trace/ring_buffer.c | |
| parent | 5485d62cf5fd2bfc1a4820d9432f7ba4b44e50fe (diff) | |
hv_netvsc: Fix unwanted rx_table reset
[ Upstream commit b0689faa8efc5a3391402d7ae93bd373b7248e51 ]
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: ff4a44199012 ("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>
Diffstat (limited to 'kernel/trace/ring_buffer.c')
0 files changed, 0 insertions, 0 deletions
