aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/net/tcp.h16
-rw-r--r--net/ipv4/tcp_output.c5
2 files changed, 9 insertions, 12 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h
index 34f5cc24d903..185e22baecb1 100644
--- a/include/net/tcp.h
+++ b/include/net/tcp.h
@@ -856,13 +856,6 @@ static inline void tcp_check_probe_timer(struct sock *sk)
856 icsk->icsk_rto, TCP_RTO_MAX); 856 icsk->icsk_rto, TCP_RTO_MAX);
857} 857}
858 858
859static inline void tcp_push_pending_frames(struct sock *sk)
860{
861 struct tcp_sock *tp = tcp_sk(sk);
862
863 __tcp_push_pending_frames(sk, tcp_current_mss(sk), tp->nonagle);
864}
865
866static inline void tcp_init_wl(struct tcp_sock *tp, u32 seq) 859static inline void tcp_init_wl(struct tcp_sock *tp, u32 seq)
867{ 860{
868 tp->snd_wl1 = seq; 861 tp->snd_wl1 = seq;
@@ -1342,6 +1335,15 @@ static inline int tcp_write_queue_empty(struct sock *sk)
1342 return skb_queue_empty(&sk->sk_write_queue); 1335 return skb_queue_empty(&sk->sk_write_queue);
1343} 1336}
1344 1337
1338static inline void tcp_push_pending_frames(struct sock *sk)
1339{
1340 if (tcp_send_head(sk)) {
1341 struct tcp_sock *tp = tcp_sk(sk);
1342
1343 __tcp_push_pending_frames(sk, tcp_current_mss(sk), tp->nonagle);
1344 }
1345}
1346
1345/* Start sequence of the highest skb with SACKed bit, valid only if 1347/* Start sequence of the highest skb with SACKed bit, valid only if
1346 * sacked > 0 or when the caller has ensured validity by itself. 1348 * sacked > 0 or when the caller has ensured validity by itself.
1347 */ 1349 */
diff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c
index 383ce237640f..12b2af36eab8 100644
--- a/net/ipv4/tcp_output.c
+++ b/net/ipv4/tcp_output.c
@@ -1794,11 +1794,6 @@ static int tcp_write_xmit(struct sock *sk, unsigned int mss_now, int nonagle,
1794void __tcp_push_pending_frames(struct sock *sk, unsigned int cur_mss, 1794void __tcp_push_pending_frames(struct sock *sk, unsigned int cur_mss,
1795 int nonagle) 1795 int nonagle)
1796{ 1796{
1797 struct sk_buff *skb = tcp_send_head(sk);
1798
1799 if (!skb)
1800 return;
1801
1802 /* If we are closed, the bytes will have to remain here. 1797 /* If we are closed, the bytes will have to remain here.
1803 * In time closedown will finish, we empty the write queue and 1798 * In time closedown will finish, we empty the write queue and
1804 * all will be happy. 1799 * all will be happy.