Commit 3cf3c2d
committed
e1000e: Link NAPI instances to queues and IRQs
Author: Joe Damato <jdamato@fastly.com>
Add support for netdev-genl, allowing users to query IRQ, NAPI, and queue
information.
After this patch is applied, note the IRQs assigned to my NIC:
$ cat /proc/interrupts | grep ens | cut -f1 --delimiter=':'
50
51
52
While e1000e allocates 3 IRQs (RX, TX, and other), it looks like e1000e
only has a single NAPI, so I've associated the NAPI with the RX IRQ (50
on my system, seen above).
Note the output from the cli:
$ ./tools/net/ynl/cli.py --spec Documentation/netlink/specs/netdev.yaml \
--dump napi-get --json='{"ifindex": 2}'
[{'id': 145, 'ifindex': 2, 'irq': 50}]
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': 145, 'type': 'rx'},
{'id': 0, 'ifindex': 2, 'napi-id': 145, 'type': 'tx'}]
Signed-off-by: Joe Damato <jdamato@fastly.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Acked-by: Vitaly Lifshits <vitaly.lifshits@intel.com>
Tested-by: Avigail Dahan <avigailx.dahan@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
(cherry picked from commit c6b8cd6)
JIRA: https://issues.redhat.com/browse/RHEL-99400
Signed-off-by: Corinna Vinschen <vinschen@redhat.com>1 parent 9446af6 commit 3cf3c2d
1 file changed
+11
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4607 | 4607 | | |
4608 | 4608 | | |
4609 | 4609 | | |
| 4610 | + | |
4610 | 4611 | | |
4611 | 4612 | | |
4612 | 4613 | | |
| |||
4670 | 4671 | | |
4671 | 4672 | | |
4672 | 4673 | | |
| 4674 | + | |
| 4675 | + | |
| 4676 | + | |
| 4677 | + | |
| 4678 | + | |
| 4679 | + | |
4673 | 4680 | | |
| 4681 | + | |
| 4682 | + | |
4674 | 4683 | | |
4675 | 4684 | | |
4676 | 4685 | | |
| |||
4729 | 4738 | | |
4730 | 4739 | | |
4731 | 4740 | | |
| 4741 | + | |
| 4742 | + | |
4732 | 4743 | | |
4733 | 4744 | | |
4734 | 4745 | | |
| |||
0 commit comments