linux/drivers/net/hyperv
Aditya Garg 4cd55c609e net: hv_netvsc: reject RSS hash key programming without RX indirection table
[ Upstream commit d235649558 ]

RSS configuration requires a valid RX indirection table. When the device
reports a single receive queue, rndis_filter_device_add() does not
allocate an indirection table, accepting RSS hash key updates in this
state leads to a hang.

Fix this by gating netvsc_set_rxfh() on ndc->rx_table_sz and return
-EOPNOTSUPP when the table is absent. This aligns set_rxfh with the device
capabilities and prevents incorrect behavior.

Fixes: 962f3fee83 ("netvsc: add ethtool ops to get/set RSS key")
Signed-off-by: Aditya Garg <gargaditya@linux.microsoft.com>
Reviewed-by: Dipayaan Roy <dipayanroy@linux.microsoft.com>
Reviewed-by: Haiyang Zhang <haiyangz@microsoft.com>
Link: https://patch.msgid.link/1768212093-1594-1-git-send-email-gargaditya@linux.microsoft.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2026-01-23 11:18:39 +01:00
..
hyperv_net.h hv_netvsc: Fix panic during namespace deletion with VF 2025-08-20 18:30:55 +02:00
Kconfig hv_netvsc: rndis_filter needs to select NLS 2023-12-01 20:12:24 -08:00
Makefile hv_netvsc: Add XDP support 2020-01-25 10:43:19 +01:00
netvsc.c net: hv_netvsc: fix loss of early receive events from host during channel open. 2025-09-04 15:31:51 +02:00
netvsc_bpf.c net: refactor ->ndo_bpf calls into dev_xdp_propagate 2024-08-24 15:27:22 +01:00
netvsc_drv.c net: hv_netvsc: reject RSS hash key programming without RX indirection table 2026-01-23 11:18:39 +01:00
netvsc_trace.c hv_netvsc: add trace points 2018-03-17 20:10:27 -04:00
netvsc_trace.h tracing/treewide: Remove second parameter of __assign_str() 2024-05-22 20:14:47 -04:00
rndis_filter.c net: hv_netvsc: fix loss of early receive events from host during channel open. 2025-09-04 15:31:51 +02:00