diff options
author | Eric Dumazet <edumazet@google.com> | 2023-09-12 18:02:07 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-09-15 11:33:47 +0200 |
commit | 1086ca7cce292bb498d7f8f85f4593c9ef4902b7 (patch) | |
tree | 91e02950dc0a70e6057ccc38d136690255ac2139 /include/net/ipv6.h | |
parent | ipv6: lockless IPV6_AUTOFLOWLABEL implementation (diff) | |
download | linux-1086ca7cce292bb498d7f8f85f4593c9ef4902b7.tar.xz linux-1086ca7cce292bb498d7f8f85f4593c9ef4902b7.zip |
ipv6: lockless IPV6_DONTFRAG implementation
Move np->dontfrag flag to inet->inet_flags to fix data-races.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/ipv6.h')
-rw-r--r-- | include/net/ipv6.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/net/ipv6.h b/include/net/ipv6.h index 4b6cbec059e2..5a1f2993680d 100644 --- a/include/net/ipv6.h +++ b/include/net/ipv6.h @@ -373,12 +373,12 @@ static inline void ipcm6_init(struct ipcm6_cookie *ipc6) } static inline void ipcm6_init_sk(struct ipcm6_cookie *ipc6, - const struct ipv6_pinfo *np) + const struct sock *sk) { *ipc6 = (struct ipcm6_cookie) { .hlimit = -1, - .tclass = np->tclass, - .dontfrag = np->dontfrag, + .tclass = inet6_sk(sk)->tclass, + .dontfrag = inet6_test_bit(DONTFRAG, sk), }; } |