hyperv: Link queues to NAPIs
Status from this message: This patch was applied to netdev/net-next.git (main)
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest1 patch 0 repliesApplied 1/1
- v1 RFC1 patch 11 repliesSuperseded
Changes in v2 from the cover letter
- Added Haiyang Zhang's Reviewed-by
- Added Shradha Gupta's Tested-by
- Commit message updated to include test output from Shradha
- Wrapped lines to 80 characters, as suggested by Simon Horman (no functional changes introduced)
Patches in v2 All 1 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/1 | hv_netvsc: Link queues to NAPIsdrivers/ drivers/ | +19 | 0 replies | Applied |
Reviews trailers per patch
The patch has a Reviewed-by or Acked-by.
| Patch | Haiyang Zhang | Shradha Gupta |
|---|---|---|
| 1/1 | R-b | T-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [net-next v2 0/1] hyperv: Link queues to NAPIs
Greetings:
Welcome to v2.
This was previously an RFC [1], see changelog below.
I've only compile tested this series; I don't have the software for testing this so I am hoping some one from Microsoft can review and test this following the instructions below :)
This change allows users to query the mapping of queues to NAPIs using the netdev-genl interface.
Once this patch has been applied, this can be tested using the cli included in the kernel tree like this:
$ ./tools/net/ynl/cli.py --spec Documentation/netlink/specs/netdev.yaml \
--dump queue-get --json='{"ifindex": 2}'Substituting the ifindex above for the correct ifindex on your system (which is, presumably, a hyper-V VM).
A sample of expected output would look like:
[{'id': 0, 'ifindex': 2, 'napi-id': 145, 'type': 'rx'},
{'id': 0, 'ifindex': 2, 'napi-id': 145, 'type': 'tx'}]
Which shows a mapping of queue ID (0) to NAPI ID (145) for both RX and TX queues. Having this mapping is extremely useful for user apps for a variety of use cases, including epoll-based busy poll which relies on the NAPI ID.
It would be really great to add support for this API to hyper-V so that applications (including CI and automated testing facilities) could make use of this API in VMs.
Sorry, I don't know much at all about hyper-V, but please let me know if there is anything I can do to help.
Thanks,
Joe
[1]: https://lore.kernel.org/netdev/[email protected]/
v2:
- Added Haiyang Zhang's Reviewed-by
- Added Shradha Gupta's Tested-by
- Commit message updated to include test output from Shradha
- Wrapped lines to 80 characters, as suggested by Simon Horman (no functional changes introduced)
Joe Damato (1):
hv_netvsc: Link queues to NAPIs
drivers/net/hyperv/netvsc.c | 13 ++++++++++++- drivers/net/hyperv/rndis_filter.c | 9 +++++++-- 2 files changed, 19 insertions(+), 3 deletions(-)
Signature · 1 line
2.34.1