|
@@ -79,7 +79,6 @@
|
|
|
#include <linux/unaligned/access_ok.h>
|
|
|
#include <linux/static_key.h>
|
|
|
|
|
|
-int sysctl_tcp_dsack __read_mostly = 1;
|
|
|
int sysctl_tcp_app_win __read_mostly = 31;
|
|
|
int sysctl_tcp_adv_win_scale __read_mostly = 1;
|
|
|
EXPORT_SYMBOL(sysctl_tcp_adv_win_scale);
|
|
@@ -4150,7 +4149,7 @@ static void tcp_dsack_set(struct sock *sk, u32 seq, u32 end_seq)
|
|
|
{
|
|
|
struct tcp_sock *tp = tcp_sk(sk);
|
|
|
|
|
|
- if (tcp_is_sack(tp) && sysctl_tcp_dsack) {
|
|
|
+ if (tcp_is_sack(tp) && sock_net(sk)->ipv4.sysctl_tcp_dsack) {
|
|
|
int mib_idx;
|
|
|
|
|
|
if (before(seq, tp->rcv_nxt))
|
|
@@ -4185,7 +4184,7 @@ static void tcp_send_dupack(struct sock *sk, const struct sk_buff *skb)
|
|
|
NET_INC_STATS(sock_net(sk), LINUX_MIB_DELAYEDACKLOST);
|
|
|
tcp_enter_quickack_mode(sk);
|
|
|
|
|
|
- if (tcp_is_sack(tp) && sysctl_tcp_dsack) {
|
|
|
+ if (tcp_is_sack(tp) && sock_net(sk)->ipv4.sysctl_tcp_dsack) {
|
|
|
u32 end_seq = TCP_SKB_CB(skb)->end_seq;
|
|
|
|
|
|
if (after(TCP_SKB_CB(skb)->end_seq, tp->rcv_nxt))
|