Re: [PATCH net-next 10/11] net: protect NAPI config fields with netdev_lock()
From: Eric Dumazet <edumazet@google.com> Date: 2025-01-14 13:23:46
On Tue, Jan 14, 2025 at 4:51 AM Jakub Kicinski [off-list ref] wrote:
Protect the following members of netdev and napi by netdev_lock:
- defer_hard_irqs,
- gro_flush_timeout,
- irq_suspend_timeout.
The first two are written via sysfs (which this patch switches
to new lock), and netdev genl which holds both netdev and rtnl locks.
irq_suspend_timeout is only written by netdev genl.
Signed-off-by: Jakub Kicinski <kuba@kernel.org>