diff options
author | David S. Miller <davem@davemloft.net> | 2005-07-05 18:18:18 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2005-07-05 18:18:18 -0400 |
commit | 84d3e7b9573291a1ea845bdd51b74bb484597661 (patch) | |
tree | c0bd2b1721b09a21e9d44e92e2532dc79373844f /net/ipv4/tcp_input.c | |
parent | f6302d1d78f77c2d4c8bd32b0afc2df7fdf5f281 (diff) |
[TCP]: Move __tcp_data_snd_check into tcp_output.c
It reimplements portions of tcp_snd_check(), so it
we move it to tcp_output.c we can consolidate it's
logic much easier in a later change.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_input.c')
-rw-r--r-- | net/ipv4/tcp_input.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c index 7bbbbc33eb4b..577424323d59 100644 --- a/net/ipv4/tcp_input.c +++ b/net/ipv4/tcp_input.c | |||
@@ -3346,16 +3346,6 @@ static inline void tcp_check_space(struct sock *sk) | |||
3346 | } | 3346 | } |
3347 | } | 3347 | } |
3348 | 3348 | ||
3349 | static void __tcp_data_snd_check(struct sock *sk, struct sk_buff *skb) | ||
3350 | { | ||
3351 | struct tcp_sock *tp = tcp_sk(sk); | ||
3352 | |||
3353 | if (after(TCP_SKB_CB(skb)->end_seq, tp->snd_una + tp->snd_wnd) || | ||
3354 | tcp_packets_in_flight(tp) >= tp->snd_cwnd || | ||
3355 | tcp_write_xmit(sk, tp->nonagle)) | ||
3356 | tcp_check_probe_timer(sk, tp); | ||
3357 | } | ||
3358 | |||
3359 | static __inline__ void tcp_data_snd_check(struct sock *sk) | 3349 | static __inline__ void tcp_data_snd_check(struct sock *sk) |
3360 | { | 3350 | { |
3361 | struct sk_buff *skb = sk->sk_send_head; | 3351 | struct sk_buff *skb = sk->sk_send_head; |