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

Fijalkowski, Maciej
2024-08-09T13:14:39Z

>
> 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.

I'm in the middle of going through rest of the set, will finish today.

>
> Thanks,
> Kurt