|
@@ -267,7 +267,6 @@ extern int sysctl_tcp_thin_dupack;
|
|
extern int sysctl_tcp_early_retrans;
|
|
extern int sysctl_tcp_early_retrans;
|
|
extern int sysctl_tcp_limit_output_bytes;
|
|
extern int sysctl_tcp_limit_output_bytes;
|
|
extern int sysctl_tcp_challenge_ack_limit;
|
|
extern int sysctl_tcp_challenge_ack_limit;
|
|
-extern unsigned int sysctl_tcp_notsent_lowat;
|
|
|
|
extern int sysctl_tcp_min_tso_segs;
|
|
extern int sysctl_tcp_min_tso_segs;
|
|
extern int sysctl_tcp_min_rtt_wlen;
|
|
extern int sysctl_tcp_min_rtt_wlen;
|
|
extern int sysctl_tcp_autocorking;
|
|
extern int sysctl_tcp_autocorking;
|
|
@@ -1682,7 +1681,8 @@ void __tcp_v4_send_check(struct sk_buff *skb, __be32 saddr, __be32 daddr);
|
|
|
|
|
|
static inline u32 tcp_notsent_lowat(const struct tcp_sock *tp)
|
|
static inline u32 tcp_notsent_lowat(const struct tcp_sock *tp)
|
|
{
|
|
{
|
|
- return tp->notsent_lowat ?: sysctl_tcp_notsent_lowat;
|
|
|
|
|
|
+ struct net *net = sock_net((struct sock *)tp);
|
|
|
|
+ return tp->notsent_lowat ?: net->ipv4.sysctl_tcp_notsent_lowat;
|
|
}
|
|
}
|
|
|
|
|
|
static inline bool tcp_stream_memory_free(const struct sock *sk)
|
|
static inline bool tcp_stream_memory_free(const struct sock *sk)
|