Re: [PATCH net-next 1/4] igb: prepare for AF_XDP zero-copy support

Kurt Kanzenbach
2024-08-09T13:05:22Z

[-- Attachment #1: Type: text/plain, Size: 617 bytes --]

On Thu Aug 08 2024, Maciej Fijalkowski wrote:
> On Thu, Aug 08, 2024 at 11:35:51AM -0700, Tony Nguyen wrote:
>> From: Sriram Yagnaraman <sriram.yagnaraman@est.tech>
>>
>> Always call igb_xdp_ring_update_tail under __netif_tx_lock, add a
>> comment to indicate that. This is needed to share the same TX ring
>> between XDP, XSK and slow paths.
>
> standalone commit

Ok.

>> +static inline bool igb_xdp_is_enabled(struct igb_adapter *adapter)
>> +{
>> + return !!adapter->xdp_prog;
>
> READ_ONCE() plus use this everywhere else where prog is read.

Sure. I'll send v6 to iwl then.

Thanks,
Kurt

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 861 bytes --]