Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 183232
b: refs/heads/master
c: 12d50c4
h: refs/heads/master
v: v3
  • Loading branch information
Krishna Kumar authored and David S. Miller committed Dec 23, 2009
1 parent b4508de commit e1ba236
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 13 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7ef8a2127a64d131c4dbe5b843e5708f6e75552b
refs/heads/master: 12d50c46dc0f7fd2e625c4befaa5fa5740a7a594
16 changes: 9 additions & 7 deletions trunk/include/net/tcp.h
Original file line number Diff line number Diff line change
Expand Up @@ -856,13 +856,6 @@ static inline void tcp_check_probe_timer(struct sock *sk)
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)
{
tp->snd_wl1 = seq;
Expand Down Expand Up @@ -1342,6 +1335,15 @@ static inline int tcp_write_queue_empty(struct sock *sk)
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
* sacked > 0 or when the caller has ensured validity by itself.
*/
Expand Down
5 changes: 0 additions & 5 deletions trunk/net/ipv4/tcp_output.c
Original file line number Diff line number Diff line change
Expand Up @@ -1794,11 +1794,6 @@ static int tcp_write_xmit(struct sock *sk, unsigned int mss_now, int nonagle,
void __tcp_push_pending_frames(struct sock *sk, unsigned int cur_mss,
int nonagle)
{
struct sk_buff *skb = tcp_send_head(sk);

if (!skb)
return;

/* If we are closed, the bytes will have to remain here.
* In time closedown will finish, we empty the write queue and
* all will be happy.
Expand Down

0 comments on commit e1ba236

Please sign in to comment.