Joe Damato
8f7ff18a5e
e1000: Link NAPI instances to queues and IRQs
Add support for netdev-genl, allowing users to query IRQ, NAPI, and queue
information.
After this patch is applied, note the IRQ assigned to my NIC:
$ cat /proc/interrupts | grep enp0s8 | cut -f1 --delimiter=':'
18
Note the output from the cli:
$ ./tools/net/ynl/cli.py --spec Documentation/netlink/specs/netdev.yaml \
--dump napi-get --json='{"ifindex": 2}'
[{'id': 513, 'ifindex': 2, 'irq': 18}]
This device supports only 1 rx and 1 tx queue, so querying that:
$ ./tools/net/ynl/cli.py --spec Documentation/netlink/specs/netdev.yaml \
--dump queue-get --json='{"ifindex": 2}'
[{'id': 0, 'ifindex': 2, 'napi-id': 513, 'type': 'rx'},
{'id': 0, 'ifindex': 2, 'napi-id': 513, 'type': 'tx'}]
Signed-off-by: Joe Damato <jdamato@fastly.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
2024-10-08 15:22:32 -07:00
..
2024-09-19 11:12:49 +02:00
2024-10-02 17:23:23 -04:00
2024-09-11 16:02:45 +02:00
2024-10-02 17:23:23 -04:00
2024-10-02 17:23:23 -04:00
2024-10-02 17:23:23 -04:00
2024-09-10 19:52:30 -05:00
2024-10-02 17:23:23 -04:00
2024-10-03 09:44:00 -07:00
2024-09-27 08:48:37 -07:00
2024-10-02 17:23:23 -04:00
2024-10-02 17:23:23 -04:00
2024-09-17 15:27:01 +02:00
2024-10-02 17:23:23 -04:00
2024-10-02 17:23:23 -04:00
2024-10-02 17:23:23 -04:00
2024-09-18 10:49:45 +02:00
2024-10-02 17:23:23 -04:00
2024-10-02 17:23:23 -04:00
2024-09-26 12:00:25 -07:00
2024-09-19 10:18:15 +02:00
2024-09-16 06:36:37 +02:00
2024-09-26 10:13:08 -07:00
2024-10-02 17:23:23 -04:00
2024-10-02 17:23:23 -04:00
2024-10-02 17:23:23 -04:00
2024-10-02 17:23:23 -04:00
2024-09-27 08:18:43 -07:00
2024-09-27 08:18:43 -07:00
2024-10-02 17:23:23 -04:00
2024-10-02 17:23:23 -04:00
2024-10-02 16:42:28 -07:00
2024-09-19 10:18:15 +02:00
2024-10-02 17:23:23 -04:00
2024-09-27 08:18:43 -07:00
2024-10-02 17:23:23 -04:00
2024-09-17 16:51:45 +02:00
2024-09-25 22:30:33 +02:00
2024-10-02 17:23:23 -04:00
2024-09-27 08:18:43 -07:00
2024-10-02 16:42:28 -07:00
2024-09-27 08:18:43 -07:00
2024-09-17 22:20:12 +08:00
2024-10-02 17:23:23 -04:00
2024-10-02 17:23:23 -04:00
2024-10-02 17:23:23 -04:00
2024-09-27 09:11:05 -05:00
2024-10-02 16:42:28 -07:00
2024-10-02 17:23:23 -04:00
2024-10-02 17:23:23 -04:00
2024-09-29 09:22:34 -07:00
2024-10-02 17:23:23 -04:00
2024-10-02 17:23:23 -04:00
2024-10-02 17:23:23 -04:00
2024-10-02 17:23:23 -04:00
2024-10-08 15:22:32 -07:00
2024-10-02 17:23:23 -04:00
2024-09-20 10:51:25 -04:00
2024-09-26 08:43:17 -07:00
2024-10-02 17:23:23 -04:00
2024-09-26 10:13:08 -07:00
2024-09-24 13:02:06 -07:00
2024-09-11 19:02:23 +02:00
2024-09-09 08:53:17 +02:00
2024-10-02 17:23:23 -04:00
2024-10-02 17:23:23 -04:00
2024-10-02 17:23:23 -04:00
2024-09-24 10:59:17 -07:00
2024-09-23 14:05:10 -07:00
2024-09-26 12:00:25 -07:00
2024-10-02 17:23:23 -04:00
2024-09-13 13:41:33 +02:00
2024-10-02 17:23:23 -04:00
2024-09-27 08:18:43 -07:00
2024-10-02 17:23:23 -04:00
2024-09-26 12:00:25 -07:00
2024-09-13 19:08:14 +01:00
2024-09-29 09:53:04 -07:00
2024-09-13 14:09:47 -07:00
2024-10-02 17:23:23 -04:00
2024-09-28 09:11:46 -07:00
2024-09-27 08:18:43 -07:00
2024-10-02 17:23:23 -04:00
2024-09-26 17:25:29 +02:00
2024-10-02 17:23:23 -04:00
2024-09-23 14:00:46 -07:00
2024-10-02 17:23:23 -04:00
2024-10-02 17:23:23 -04:00
2024-10-02 17:23:23 -04:00
2024-09-09 12:22:06 +02:00
2024-10-02 17:23:23 -04:00
2024-09-11 15:17:43 +02:00
2024-10-02 17:23:23 -04:00
2024-10-02 17:23:23 -04:00
2024-09-11 16:02:54 +02:00
2024-10-02 17:23:23 -04:00
2024-09-26 08:43:17 -07:00
2024-09-27 08:18:43 -07:00
2024-10-02 17:23:23 -04:00
2024-10-02 17:23:23 -04:00
2024-09-27 08:18:43 -07:00
2024-09-26 08:43:17 -07:00
2024-09-06 19:18:32 +02:00
2024-10-02 17:23:23 -04:00
2024-09-27 09:55:30 -07:00