diff options
author | Eric Dumazet <edumazet@google.com> | 2022-05-12 09:56:01 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-05-13 12:17:25 +0100 |
commit | 4915d50e300e96929d2462041d6f6c6f061167fd (patch) | |
tree | c591cefada86457aee4870cd4d3ca45eedf33966 /include/net/sock.h | |
parent | 49bb39bddad214304bb523258f02f57cd25ed88b (diff) | |
download | linux-4915d50e300e96929d2462041d6f6c6f061167fd.tar.gz linux-4915d50e300e96929d2462041d6f6c6f061167fd.tar.bz2 linux-4915d50e300e96929d2462041d6f6c6f061167fd.zip |
inet: add READ_ONCE(sk->sk_bound_dev_if) in INET_MATCH()
INET_MATCH() runs without holding a lock on the socket.
We probably need to annotate most reads.
This patch makes INET_MATCH() an inline function
to ease our changes.
v2:
We remove the 32bit version of it, as modern compilers
should generate the same code really, no need to
try to be smarter.
Also make 'struct net *net' the first argument.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/sock.h')
-rw-r--r-- | include/net/sock.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/include/net/sock.h b/include/net/sock.h index 73063c88a249..01edfde4257d 100644 --- a/include/net/sock.h +++ b/include/net/sock.h @@ -161,9 +161,6 @@ typedef __u64 __bitwise __addrpair; * for struct sock and struct inet_timewait_sock. */ struct sock_common { - /* skc_daddr and skc_rcv_saddr must be grouped on a 8 bytes aligned - * address on 64bit arches : cf INET_MATCH() - */ union { __addrpair skc_addrpair; struct { |