diff options
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/tcp_output.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c index 1d65ce1b68d7..a61a3e3082ae 100644 --- a/net/ipv4/tcp_output.c +++ b/net/ipv4/tcp_output.c | |||
@@ -61,6 +61,18 @@ int sysctl_tcp_base_mss __read_mostly = 512; | |||
61 | /* By default, RFC2861 behavior. */ | 61 | /* By default, RFC2861 behavior. */ |
62 | int sysctl_tcp_slow_start_after_idle __read_mostly = 1; | 62 | int sysctl_tcp_slow_start_after_idle __read_mostly = 1; |
63 | 63 | ||
64 | static inline void tcp_packets_out_inc(struct sock *sk, | ||
65 | const struct sk_buff *skb) | ||
66 | { | ||
67 | struct tcp_sock *tp = tcp_sk(sk); | ||
68 | int orig = tp->packets_out; | ||
69 | |||
70 | tp->packets_out += tcp_skb_pcount(skb); | ||
71 | if (!orig) | ||
72 | inet_csk_reset_xmit_timer(sk, ICSK_TIME_RETRANS, | ||
73 | inet_csk(sk)->icsk_rto, TCP_RTO_MAX); | ||
74 | } | ||
75 | |||
64 | static void update_send_head(struct sock *sk, struct sk_buff *skb) | 76 | static void update_send_head(struct sock *sk, struct sk_buff *skb) |
65 | { | 77 | { |
66 | struct tcp_sock *tp = tcp_sk(sk); | 78 | struct tcp_sock *tp = tcp_sk(sk); |