From: Tony Nguyen <[email protected]>
Date: Thu, 17 Jul 2025 13:25:05 -0700
>
>
> On 7/16/2025 2:12 PM, Samiullah Khawaja wrote:
>> Use netif_queue_set_napi to associate TX/RX queues to the relevant napi.
>> This allows fetching napi for a TX or RX queue using netlink queue-get
>> op.
>>
>> Tested:
>> python3 tools/net/ynl/pyynl/cli.py \
>> --spec Documentation/netlink/specs/netdev.yaml \
>> --do queue-get --json '{"ifindex": 3, "type": "rx", "id": 2}'
>> {'id': 2, 'ifindex': 3, 'napi-id': 515, 'type': 'rx'}
>
> Hi Samiullah,
>
> Thanks for the patch. We do, however, have this functionality already in
> flight [1].
Yes, and it requires handling RTNL locks differently in several reset
and reconfig paths. Just adding netif_napi_set_*() won't work properly.
>
> Thanks,
> Tony
>
> [1] https://lore.kernel.org/intel-wired-lan/20250624164515.2663137-4-
> [email protected]/
Thanks,
Olek