[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250213074546.15468-1-kuniyu@amazon.com>
Date: Thu, 13 Feb 2025 16:45:46 +0900
From: Kuniyuki Iwashima <kuniyu@...zon.com>
To: <leitao@...ian.org>
CC: <andrew+netdev@...n.ch>, <davem@...emloft.net>, <dsahern@...nel.org>,
<edumazet@...gle.com>, <horms@...nel.org>, <kernel-team@...a.com>,
<kuba@...nel.org>, <kuniyu@...zon.co.jp>, <kuniyu@...zon.com>,
<linux-kernel@...r.kernel.org>, <netdev@...r.kernel.org>,
<pabeni@...hat.com>, <ushankar@...estorage.com>
Subject: Re: [PATCH net-next v3 3/3] arp: switch to dev_getbyhwaddr() in arp_req_set_public()
From: Breno Leitao <leitao@...ian.org>
Date: Wed, 12 Feb 2025 09:47:26 -0800
> The arp_req_set_public() function is called with the RTNL lock held,
> which provides enough synchronization protection. This makes the RCU
> variant of dev_getbyhwaddr() unnecessary. Switch to using the simpler
> dev_getbyhwaddr() function since we already have the required rtnl
> locking.
>
> This change helps maintain consistency in the networking code by using
> the appropriate helper function for the existing locking context.
>
> Suggested-by: Kuniyuki Iwashima <kuniyu@...zon.com>
> Signed-off-by: Breno Leitao <leitao@...ian.org>
Fixes: 941666c2e3e0 ("net: RCU conversion of dev_getbyhwaddr() and arp_ioctl()")
Reviewed-by: Kuniyuki Iwashima <kuniyu@...zon.com>
I still think patch 2 & 3 should be posted to net separately.
Documentation/process/maintainer-netdev.rst
---8<---
the ``net`` tree is for fixes to existing code already in the
mainline tree from Linus
---8<---
Powered by blists - more mailing lists