Re: [PATCH net-next] ppp: enable TX scatter-gather

From: Qingfang Deng

Date: Wed Sep 17 2025 - 07:00:47 EST


On Tue, Sep 16, 2025 at 10:57 PM Jakub Kicinski <kuba@xxxxxxxxxx> wrote:
>
> On Tue, 16 Sep 2025 10:57:49 +0800 Qingfang Deng wrote:
> > Can I modify dev->features directly under the spin lock (without
> > .ndo_fix_features) ?
>
> Hm, I'm not aware of a reason not to. You definitely need to hold
> rtnl_lock, and call netdev_update_features() after.

Will the modification race against __netdev_update_features(), where
dev->features is assigned a new value?