linux-hyperv.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC net-next 0/1] hyperv: Link queues to NAPIs
@ 2024-09-24 23:48 Joe Damato
  2024-09-24 23:48 ` [RFC net-next 1/1] hv_netvsc: " Joe Damato
  0 siblings, 1 reply; 13+ messages in thread
From: Joe Damato @ 2024-09-24 23:48 UTC (permalink / raw)
  To: netdev
  Cc: Joe Damato, David S. Miller, K. Y. Srinivasan, Dexuan Cui,
	Eric Dumazet, Haiyang Zhang, Jakub Kicinski, Paolo Abeni, Wei Liu,
	open list:Hyper-V/Azure CORE AND DRIVERS, open list

Greetings:

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}'

Substituing 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

Joe Damato (1):
  hv_netvsc: Link queues to NAPIs

 drivers/net/hyperv/netvsc.c       | 11 ++++++++++-
 drivers/net/hyperv/rndis_filter.c |  9 +++++++--
 2 files changed, 17 insertions(+), 3 deletions(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2024-09-26 16:46 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-24 23:48 [RFC net-next 0/1] hyperv: Link queues to NAPIs Joe Damato
2024-09-24 23:48 ` [RFC net-next 1/1] hv_netvsc: " Joe Damato
2024-09-25 19:39   ` Haiyang Zhang
2024-09-26  4:06     ` Shradha Gupta
2024-09-26 10:34     ` Shradha Gupta
2024-09-26 14:29       ` Haiyang Zhang
2024-09-26 15:41       ` Joe Damato
2024-09-26 15:53     ` Joe Damato
2024-09-26 16:45       ` Haiyang Zhang
2024-09-26 15:10   ` Simon Horman
2024-09-26 15:42     ` Joe Damato
2024-09-26 15:50       ` Joe Damato
2024-09-26 15:56       ` Simon Horman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).