Re: [PATCH net] net: pktgen: keep device lookup under RCU protection

From: Chengfeng Ye

Date: Tue Aug 25 2026 - 14:56:50 EST


On Tue, Aug 25, 2026 at 6:45 PM Paolo Abeni <pabeni@xxxxxxxxxx> wrote:
> Side note: returning the RCU protected ptr outside the RCU read lock
> safe, as the caller never deference it, but quite confusing.
>
> It would be nice to follow-up on net-next replacing the return type here
> with a bool.
>
> /P
>

No problem, the follow-up patch is just sent.

Best Regards,
Chengfeng