]> www.infradead.org Git - users/willy/pagecache.git/commit
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)
commit62520094e98c197c5ae34af9a17b67381678cb9d
tree818ebc8875ac63355786b92f4ec53a02d614a356
parent606572eb22c1786a3957d24307f5760bb058ca19
parent4eae0ee0f1e6256d0b0b9dd6e72f1d9cf8f72e08
Merge branch 'net-core-improvements-to-device-lookup-by-hardware-address'

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>