netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Question] Generic way to retrieve IRQ number of Tx/Rx queue
@ 2025-01-10  9:07 Daniel Sedlak
  2025-01-10 17:38 ` Stephen Hemminger
  2025-01-13 21:15 ` Jakub Kicinski
  0 siblings, 2 replies; 5+ messages in thread
From: Daniel Sedlak @ 2025-01-10  9:07 UTC (permalink / raw)
  To: linux-kernel, netdev

Hello,
I am writing an affinity scheduler in the userspace for network cards's 
Tx/Rx queues. Is there a generic way to retrieve all IRQ numbers for 
those queues for each interface?

My goal is to get all Tx/Rx queues for a given interface, get the IRQ 
number of the individual queues, and set an affinity hint for each 
queue. I have tried to loop over /proc/interrupts to retrieve all queues 
for an interface in a hope that the last column would contain the 
interface name however this does not work since the naming is not 
unified across drivers. My second attempt was to retrieve all registered 
interrupts by network interface from 
/sys/class/net/{interface_name}/device/msi_irqs/, but this attempt was 
also without luck because some drivers request more IRQs than the number 
of queues (for example i40e driver).

Thank you for any help or advice

Daniel

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

end of thread, other threads:[~2025-01-14 23:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-10  9:07 [Question] Generic way to retrieve IRQ number of Tx/Rx queue Daniel Sedlak
2025-01-10 17:38 ` Stephen Hemminger
2025-01-13 21:15 ` Jakub Kicinski
2025-01-14  8:32   ` Daniel Sedlak
2025-01-14 23:26     ` Joe Damato

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).