Re: [net-next v5 1/9] net: napi: Make napi_defer_hard_irqs per-NAPI

From: Eric Dumazet
Date: Thu Oct 10 2024 - 00:10:48 EST


On Wed, Oct 9, 2024 at 2:55 AM Joe Damato <jdamato@xxxxxxxxxx> wrote:
>
> Add defer_hard_irqs to napi_struct in preparation for per-NAPI
> settings.
>
> The existing sysfs parameter is respected; writes to sysfs will write to
> all NAPI structs for the device and the net_device defer_hard_irq field.
> Reads from sysfs show the net_device field.
>
> The ability to set defer_hard_irqs on specific NAPI instances will be
> added in a later commit, via netdev-genl.
>
> Signed-off-by: Joe Damato <jdamato@xxxxxxxxxx>

Reviewed-by: Eric Dumazet <edumazet@xxxxxxxxxx>