|
@@ -856,13 +856,6 @@ static inline void tcp_check_probe_timer(struct sock *sk)
|
|
icsk->icsk_rto, TCP_RTO_MAX);
|
|
icsk->icsk_rto, TCP_RTO_MAX);
|
|
}
|
|
}
|
|
|
|
|
|
-static inline void tcp_push_pending_frames(struct sock *sk)
|
|
|
|
-{
|
|
|
|
- struct tcp_sock *tp = tcp_sk(sk);
|
|
|
|
-
|
|
|
|
- __tcp_push_pending_frames(sk, tcp_current_mss(sk), tp->nonagle);
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
static inline void tcp_init_wl(struct tcp_sock *tp, u32 seq)
|
|
static inline void tcp_init_wl(struct tcp_sock *tp, u32 seq)
|
|
{
|
|
{
|
|
tp->snd_wl1 = seq;
|
|
tp->snd_wl1 = seq;
|
|
@@ -1342,6 +1335,15 @@ static inline int tcp_write_queue_empty(struct sock *sk)
|
|
return skb_queue_empty(&sk->sk_write_queue);
|
|
return skb_queue_empty(&sk->sk_write_queue);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+static inline void tcp_push_pending_frames(struct sock *sk)
|
|
|
|
+{
|
|
|
|
+ if (tcp_send_head(sk)) {
|
|
|
|
+ struct tcp_sock *tp = tcp_sk(sk);
|
|
|
|
+
|
|
|
|
+ __tcp_push_pending_frames(sk, tcp_current_mss(sk), tp->nonagle);
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
/* Start sequence of the highest skb with SACKed bit, valid only if
|
|
/* Start sequence of the highest skb with SACKed bit, valid only if
|
|
* sacked > 0 or when the caller has ensured validity by itself.
|
|
* sacked > 0 or when the caller has ensured validity by itself.
|
|
*/
|
|
*/
|