]> www.infradead.org Git - users/willy/pagecache.git/commitdiff
Merge branch 'net-core-improvements-to-device-lookup-by-hardware-address'
authorJakub Kicinski <kuba@kernel.org>
Thu, 20 Feb 2025 03:01:00 +0000 (19:01 -0800)
committerJakub Kicinski <kuba@kernel.org>
Thu, 20 Feb 2025 03:01:00 +0000 (19:01 -0800)
Breno Leitao says:

====================
net: core: improvements to device lookup by hardware address.

The first patch adds a new dev_getbyhwaddr() helper function for
finding devices by hardware address when the rtnl lock is held. This
prevents PROVE_LOCKING warnings that occurred when rtnl lock was held
but the RCU read lock wasn't. The common address comparison logic is
extracted into dev_comp_addr() to avoid code duplication.

The second coverts arp_req_set_public() to the new helper.
====================

Link: https://patch.msgid.link/20250218-arm_fix_selftest-v5-0-d3d6892db9e1@debian.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

Trivial merge