Re: [PATCH net-next 6/8] netdev: depend on netdev->lock for xdp features

Joe Damato
2025-04-08T02:31:19Z

On Mon, Apr 07, 2025 at 12:01:15PM -0700, Jakub Kicinski wrote:
> Writes to XDP features are now protected by netdev->lock.
> Other things we report are based on ops which don't change
> once device has been registered. It is safe to stop taking
> rtnl_lock, and depend on netdev->lock instead.
>
> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
> ---
> net/core/netdev-genl.c | 26 ++++++++++++--------------
> 1 file changed, 12 insertions(+), 14 deletions(-)

Reviewed-by: Joe Damato <jdamato@fastly.com>