diff options
author | Joe Damato <[email protected]> | 2024-09-30 17:12:32 +0000 |
---|---|---|
committer | Tony Nguyen <[email protected]> | 2024-10-08 15:22:32 -0700 |
commit | 8f7ff18a5ec7d8ce47ff84a9d1b024bfb6039dd8 (patch) | |
tree | 369306f9cbc6c425d2ad4fa640b56abdb0c146f8 /tools/perf/scripts/python/parallel-perf.py | |
parent | c6b8cd69912847a292c242a272efd6e9d09e9088 (diff) |
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 <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Signed-off-by: Tony Nguyen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/parallel-perf.py')
0 files changed, 0 insertions, 0 deletions