mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net
include/net/sock.h310731e2f1("net: Fix data-races around sysctl_mem.")e70f3c7012("Revert "net: set SK_MEM_QUANTUM to 4096"") https://lore.kernel.org/all/20220711120211.7c8b7cba@canb.auug.org.au/ net/ipv4/fib_semantics.c747c143072("ip: fix dflt addr selection for connected nexthop")d62607c3fe("net: rename reference+tracking helpers") net/tls/tls.h include/net/tls.h3d8c51b25a("net/tls: Check for errors in tls_device_init")5879031423("tls: create an internal header") Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
@@ -324,7 +324,7 @@ static void tcp_ecn_send_syn(struct sock *sk, struct sk_buff *skb)
|
||||
{
|
||||
struct tcp_sock *tp = tcp_sk(sk);
|
||||
bool bpf_needs_ecn = tcp_bpf_ca_needs_ecn(sk);
|
||||
bool use_ecn = sock_net(sk)->ipv4.sysctl_tcp_ecn == 1 ||
|
||||
bool use_ecn = READ_ONCE(sock_net(sk)->ipv4.sysctl_tcp_ecn) == 1 ||
|
||||
tcp_ca_needs_ecn(sk) || bpf_needs_ecn;
|
||||
|
||||
if (!use_ecn) {
|
||||
@@ -346,7 +346,7 @@ static void tcp_ecn_send_syn(struct sock *sk, struct sk_buff *skb)
|
||||
|
||||
static void tcp_ecn_clear_syn(struct sock *sk, struct sk_buff *skb)
|
||||
{
|
||||
if (sock_net(sk)->ipv4.sysctl_tcp_ecn_fallback)
|
||||
if (READ_ONCE(sock_net(sk)->ipv4.sysctl_tcp_ecn_fallback))
|
||||
/* tp->ecn_flags are cleared at a later point in time when
|
||||
* SYN ACK is ultimatively being received.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user