Commit 9f2597f
committed
igb: Link queues to NAPI instances
Author: Kurt Kanzenbach <kurt@linutronix.de>
Link queues to NAPI instances via netdev-genl API. This is required to use
XDP/ZC busy polling. See commit 5ef44b3 ("xsk: Bring back busy polling
support") for details.
This also allows users to query the info with netlink:
|$ ./tools/net/ynl/pyynl/cli.py --spec Documentation/netlink/specs/netdev.yaml \
| --dump queue-get --json='{"ifindex": 2}'
|[{'id': 0, 'ifindex': 2, 'napi-id': 8201, 'type': 'rx'},
| {'id': 1, 'ifindex': 2, 'napi-id': 8202, 'type': 'rx'},
| {'id': 2, 'ifindex': 2, 'napi-id': 8203, 'type': 'rx'},
| {'id': 3, 'ifindex': 2, 'napi-id': 8204, 'type': 'rx'},
| {'id': 0, 'ifindex': 2, 'napi-id': 8201, 'type': 'tx'},
| {'id': 1, 'ifindex': 2, 'napi-id': 8202, 'type': 'tx'},
| {'id': 2, 'ifindex': 2, 'napi-id': 8203, 'type': 'tx'},
| {'id': 3, 'ifindex': 2, 'napi-id': 8204, 'type': 'tx'}]
Add rtnl locking to PCI error handlers, because netif_queue_set_napi()
requires the lock held.
While at __igb_open() use RCT coding style.
Signed-off-by: Kurt Kanzenbach <kurt@linutronix.de>
Reviewed-by: Joe Damato <jdamato@fastly.com>
Tested-by: Sweta Kumari <sweta.kumari@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
(cherry picked from commit b75a1de)
JIRA: https://issues.redhat.com/browse/RHEL-83574
Signed-off-by: Corinna Vinschen <vinschen@redhat.com>1 parent 09a5fde commit 9f2597f
2 files changed
+40
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
722 | 722 | | |
723 | 723 | | |
724 | 724 | | |
| 725 | + | |
| 726 | + | |
725 | 727 | | |
726 | 728 | | |
727 | 729 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2099 | 2099 | | |
2100 | 2100 | | |
2101 | 2101 | | |
| 2102 | + | |
| 2103 | + | |
| 2104 | + | |
| 2105 | + | |
| 2106 | + | |
| 2107 | + | |
| 2108 | + | |
| 2109 | + | |
| 2110 | + | |
| 2111 | + | |
| 2112 | + | |
| 2113 | + | |
| 2114 | + | |
| 2115 | + | |
| 2116 | + | |
| 2117 | + | |
2102 | 2118 | | |
2103 | 2119 | | |
2104 | 2120 | | |
2105 | 2121 | | |
2106 | 2122 | | |
2107 | 2123 | | |
2108 | 2124 | | |
| 2125 | + | |
2109 | 2126 | | |
2110 | 2127 | | |
2111 | 2128 | | |
2112 | 2129 | | |
2113 | 2130 | | |
2114 | 2131 | | |
2115 | 2132 | | |
2116 | | - | |
2117 | | - | |
| 2133 | + | |
| 2134 | + | |
| 2135 | + | |
| 2136 | + | |
| 2137 | + | |
2118 | 2138 | | |
2119 | 2139 | | |
2120 | 2140 | | |
| |||
2184 | 2204 | | |
2185 | 2205 | | |
2186 | 2206 | | |
| 2207 | + | |
2187 | 2208 | | |
2188 | 2209 | | |
2189 | 2210 | | |
| |||
4116 | 4137 | | |
4117 | 4138 | | |
4118 | 4139 | | |
4119 | | - | |
4120 | 4140 | | |
| 4141 | + | |
| 4142 | + | |
4121 | 4143 | | |
4122 | 4144 | | |
4123 | 4145 | | |
| |||
4169 | 4191 | | |
4170 | 4192 | | |
4171 | 4193 | | |
4172 | | - | |
4173 | | - | |
| 4194 | + | |
| 4195 | + | |
| 4196 | + | |
| 4197 | + | |
| 4198 | + | |
4174 | 4199 | | |
4175 | 4200 | | |
4176 | 4201 | | |
| |||
9677 | 9702 | | |
9678 | 9703 | | |
9679 | 9704 | | |
| 9705 | + | |
9680 | 9706 | | |
9681 | 9707 | | |
| 9708 | + | |
| 9709 | + | |
9682 | 9710 | | |
9683 | 9711 | | |
9684 | 9712 | | |
| |||
9737 | 9765 | | |
9738 | 9766 | | |
9739 | 9767 | | |
| 9768 | + | |
9740 | 9769 | | |
9741 | 9770 | | |
9742 | 9771 | | |
| 9772 | + | |
9743 | 9773 | | |
9744 | 9774 | | |
| 9775 | + | |
9745 | 9776 | | |
9746 | 9777 | | |
| 9778 | + | |
9747 | 9779 | | |
9748 | 9780 | | |
9749 | 9781 | | |
| 9782 | + | |
9750 | 9783 | | |
9751 | 9784 | | |
9752 | 9785 | | |
| |||
0 commit comments