|
@@ -61,6 +61,18 @@ int sysctl_tcp_base_mss __read_mostly = 512;
|
|
|
/* By default, RFC2861 behavior. */
|
|
|
int sysctl_tcp_slow_start_after_idle __read_mostly = 1;
|
|
|
|
|
|
+static inline void tcp_packets_out_inc(struct sock *sk,
|
|
|
+ const struct sk_buff *skb)
|
|
|
+{
|
|
|
+ struct tcp_sock *tp = tcp_sk(sk);
|
|
|
+ int orig = tp->packets_out;
|
|
|
+
|
|
|
+ tp->packets_out += tcp_skb_pcount(skb);
|
|
|
+ if (!orig)
|
|
|
+ inet_csk_reset_xmit_timer(sk, ICSK_TIME_RETRANS,
|
|
|
+ inet_csk(sk)->icsk_rto, TCP_RTO_MAX);
|
|
|
+}
|
|
|
+
|
|
|
static void update_send_head(struct sock *sk, struct sk_buff *skb)
|
|
|
{
|
|
|
struct tcp_sock *tp = tcp_sk(sk);
|