aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_input.c
diff options
context:
space:
mode:
authorBreno Leitao <[email protected]>2025-02-18 13:49:30 +0000
committerJakub Kicinski <[email protected]>2025-02-20 02:59:29 +0000
commit4b5a28b38c4a0106c64416a1b2042405166b26ce (patch)
tree4a92863e33cf96c65fa9f4d04ad58b9bfa96322c /net/ipv4/tcp_input.c
parentsctp: Fix undefined behavior in left shift operation (diff)
downloadkernel-4b5a28b38c4a0106c64416a1b2042405166b26ce.tar.gz
kernel-4b5a28b38c4a0106c64416a1b2042405166b26ce.zip
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: [email protected] Cc: [email protected] Suggested-by: Eric Dumazet <[email protected]> Signed-off-by: Breno Leitao <[email protected]> Reviewed-by: Kuniyuki Iwashima <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/ipv4/tcp_input.c')
0 files changed, 0 insertions, 0 deletions