From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B2C017404E for ; Thu, 28 Aug 2025 21:53:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756418029; cv=none; b=ZGGQEI7p7/XngEKjkP0QB08MHqxZEsFK958DETNjcfJAhUi2heCpdEKsNtYh+XsYBDry5AEAWd8iqIwIQY1D5Vdf98TbPxINHp8cp/pJHVuY2Begnmj0iarXW5WrS789ESS33ftOoxL4QmJPvdxOMPGM2SPRlgtP6uUqtf0UKso= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756418029; c=relaxed/simple; bh=3bNC3RLCFdjWrW7LXg3Ia8zeee0R/LGJCPW5Qz13j2c=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=UYR/WnkQDUDivQtnWZrLxeTcZGQvCamvmiIC8fyj4W/T2ZK4DI7Msj89bmXeBTTFHXnCnjSMYQIaETC1Go7wOd6sLjlUcIka1mIs4IUwdRDjHB+Ui7DptYB254NxajbhbLrSpubl88UhdxuhGMTIJF+SLL+H454+SUyaU5J93qc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=TnU9QyU9; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="TnU9QyU9" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DB074C4CEEB; Thu, 28 Aug 2025 21:53:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1756418029; bh=3bNC3RLCFdjWrW7LXg3Ia8zeee0R/LGJCPW5Qz13j2c=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=TnU9QyU9+aIqClV8VseE9IA7rENhOKuhWoisEjVseinymSFZSsbTQ80OEv67CcINe bfQ1dA2J8n0945s+5vrHX/U1dqnjXBl2pIpefOnKyFdK4SsBikLzRwkuKG/poZNNkB UoSCp3tlVu2n7QA34aLn+b87eRcAwcRqykYsHKqyzguJ2MSkNitBqEMfgFnffkjAUE LcwC1xYX8vVa9dxYl0GE4CMBvFxY1SdnrS9Xhoj4JxG4v+qT/tZSvI+6Io6YQxmZUk vmSMoJ5U1IC+S0nK/SV+E+Uo/Wrc4hq0iXNdArC5fctNVfTpbC0YB41nvGrVUpEk80 HQ4QVpDVTyM+Q== Message-ID: Date: Thu, 28 Aug 2025 15:53:48 -0600 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net-next 1/8] net: dst: introduce dst->dev_rcu Content-Language: en-US To: Eric Dumazet , "David S . Miller" , Jakub Kicinski , Paolo Abeni , Neal Cardwell Cc: Simon Horman , Kuniyuki Iwashima , netdev@vger.kernel.org, eric.dumazet@gmail.com References: <20250828195823.3958522-1-edumazet@google.com> <20250828195823.3958522-2-edumazet@google.com> From: David Ahern In-Reply-To: <20250828195823.3958522-2-edumazet@google.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 8/28/25 1:58 PM, Eric Dumazet wrote: > Followup of commit 88fe14253e18 ("net: dst: add four helpers > to annotate data-races around dst->dev"). > > We want to gradually add explicit RCU protection to dst->dev, > including lockdep support. > > Add an union to alias dst->dev_rcu and dst->dev. > > Add dst_dev_net_rcu() helper. > > Fixes: 4a6ce2b6f2ec ("net: introduce a new function dst_dev_put()") > Signed-off-by: Eric Dumazet > --- > include/net/dst.h | 16 +++++++++++----- > net/core/dst.c | 2 +- > net/ipv4/route.c | 4 ++-- > 3 files changed, 14 insertions(+), 8 deletions(-) > Reviewed-by: David Ahern