aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/igc
diff options
context:
space:
mode:
authorKurt Kanzenbach <[email protected]>2025-03-19 10:26:40 +0000
committerTony Nguyen <[email protected]>2025-04-29 22:13:43 +0000
commitb75a1dea500f4397a46e971cd41e613b7f18e317 (patch)
tree7f1c0732a8d1492555b7f0f8af77d825966593bc /drivers/net/ethernet/intel/igc
parentigb: Link IRQs to NAPI instances (diff)
downloadkernel-b75a1dea500f4397a46e971cd41e613b7f18e317.tar.gz
kernel-b75a1dea500f4397a46e971cd41e613b7f18e317.zip
igb: Link queues to NAPI instances
Link queues to NAPI instances via netdev-genl API. This is required to use XDP/ZC busy polling. See commit 5ef44b3cb43b ("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 <[email protected]> Reviewed-by: Joe Damato <[email protected]> Tested-by: Sweta Kumari <[email protected]> Signed-off-by: Tony Nguyen <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/igc')
0 files changed, 0 insertions, 0 deletions