[PATCH v2 0/2] net/netvsc: runtime queue reconfiguration and fixes
Long Li
longli at microsoft.com
Thu Feb 26 05:24:12 CET 2026
This series adds support for runtime queue count reconfiguration in the
netvsc PMD, along with a prerequisite bug fix.
Patch 1 fixes a pre-existing subchannel resource leak in
eth_hn_dev_uninit() where subchannels are never closed before the
primary channel.
Patch 2 adds runtime queue count reconfiguration via port
stop/configure/start, with full NVS/RNDIS session teardown and reinit
when the queue count changes.
v2:
- Split subchannel leak fix into separate patch with Fixes tag (patch 1)
- Fix reinit_failed recovery: re-map device before chan_open when device
is unmapped to prevent undefined behavior on unmapped ring buffers
- Move hn_rndis_conf_offload() to after reinit block so offload config
targets the final RNDIS session instead of being lost on teardown
- Use write lock in hn_vf_tx/rx_queue_release() to prevent race with
concurrent fast-path readers holding read lock
- Reset RSS indirection table to queue 0 in subchan_cleanup error path
- Fix multi-line comment style to follow DPDK convention
Long Li (2):
net/netvsc: fix subchannel leak on device removal
net/netvsc: support runtime queue count reconfiguration
drivers/net/netvsc/hn_ethdev.c | 181 +++++++++++++++++++++++++++++++--
drivers/net/netvsc/hn_vf.c | 16 +--
2 files changed, 181 insertions(+), 16 deletions(-)
--
2.43.0
More information about the stable
mailing list