diff options
| author | Eric Dumazet <[email protected]> | 2023-09-12 16:02:07 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2023-09-15 09:33:47 +0000 |
| commit | 1086ca7cce292bb498d7f8f85f4593c9ef4902b7 (patch) | |
| tree | 91e02950dc0a70e6057ccc38d136690255ac2139 /net/ipv6/udp.c | |
| parent | ipv6: lockless IPV6_AUTOFLOWLABEL implementation (diff) | |
| download | kernel-1086ca7cce292bb498d7f8f85f4593c9ef4902b7.tar.gz kernel-1086ca7cce292bb498d7f8f85f4593c9ef4902b7.zip | |
ipv6: lockless IPV6_DONTFRAG implementation
Move np->dontfrag flag to inet->inet_flags to fix data-races.
Signed-off-by: Eric Dumazet <[email protected]>
Reviewed-by: David Ahern <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/ipv6/udp.c')
| -rw-r--r-- | net/ipv6/udp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/udp.c b/net/ipv6/udp.c index f60ba4295435..e4301500741a 100644 --- a/net/ipv6/udp.c +++ b/net/ipv6/udp.c @@ -1595,7 +1595,7 @@ back_from_confirm: do_append_data: if (ipc6.dontfrag < 0) - ipc6.dontfrag = np->dontfrag; + ipc6.dontfrag = inet6_test_bit(DONTFRAG, sk); up->len += ulen; err = ip6_append_data(sk, getfrag, msg, ulen, sizeof(struct udphdr), &ipc6, fl6, (struct rt6_info *)dst, |
