diff options
author | Breno Leitao <leitao@debian.org> | 2025-02-18 16:49:30 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2025-02-20 05:59:29 +0300 |
commit | 4b5a28b38c4a0106c64416a1b2042405166b26ce (patch) | |
tree | 4a92863e33cf96c65fa9f4d04ad58b9bfa96322c /scripts/generate_rust_analyzer.py | |
parent | 606572eb22c1786a3957d24307f5760bb058ca19 (diff) | |
download | linux-4b5a28b38c4a0106c64416a1b2042405166b26ce.tar.xz |
net: Add non-RCU dev_getbyhwaddr() helper
Add dedicated helper for finding devices by hardware address when
holding rtnl_lock, similar to existing dev_getbyhwaddr_rcu(). This prevents
PROVE_LOCKING warnings when rtnl_lock is held but RCU read lock is not.
Extract common address comparison logic into dev_addr_cmp().
The context about this change could be found in the following
discussion:
Link: https://lore.kernel.org/all/20250206-scarlet-ermine-of-improvement-1fcac5@leitao/
Cc: kuniyu@amazon.com
Cc: ushankar@purestorage.com
Suggested-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Breno Leitao <leitao@debian.org>
Reviewed-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Link: https://patch.msgid.link/20250218-arm_fix_selftest-v5-1-d3d6892db9e1@debian.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions