tcp_input.c (d2f6409584e2c62ffad81690562330ff3bf4a458) tcp_input.c (84d3e7b9573291a1ea845bdd51b74bb484597661)
1/*
2 * INET An implementation of the TCP/IP protocol suite for the LINUX
3 * operating system. INET is implemented using the BSD Socket
4 * interface as the means of communication with the user level.
5 *
6 * Implementation of the Transmission Control Protocol(TCP).
7 *
8 * Version: $Id: tcp_input.c,v 1.243 2002/02/01 22:01:04 davem Exp $

--- 3332 unchanged lines hidden (view full) ---

3341 if (sock_flag(sk, SOCK_QUEUE_SHRUNK)) {
3342 sock_reset_flag(sk, SOCK_QUEUE_SHRUNK);
3343 if (sk->sk_socket &&
3344 test_bit(SOCK_NOSPACE, &sk->sk_socket->flags))
3345 tcp_new_space(sk);
3346 }
3347}
3348
1/*
2 * INET An implementation of the TCP/IP protocol suite for the LINUX
3 * operating system. INET is implemented using the BSD Socket
4 * interface as the means of communication with the user level.
5 *
6 * Implementation of the Transmission Control Protocol(TCP).
7 *
8 * Version: $Id: tcp_input.c,v 1.243 2002/02/01 22:01:04 davem Exp $

--- 3332 unchanged lines hidden (view full) ---

3341 if (sock_flag(sk, SOCK_QUEUE_SHRUNK)) {
3342 sock_reset_flag(sk, SOCK_QUEUE_SHRUNK);
3343 if (sk->sk_socket &&
3344 test_bit(SOCK_NOSPACE, &sk->sk_socket->flags))
3345 tcp_new_space(sk);
3346 }
3347}
3348
3349static 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
3359static __inline__ void tcp_data_snd_check(struct sock *sk)
3360{
3361 struct sk_buff *skb = sk->sk_send_head;
3362
3363 if (skb != NULL)
3364 __tcp_data_snd_check(sk, skb);
3365 tcp_check_space(sk);
3366}

--- 952 unchanged lines hidden ---
3349static __inline__ void tcp_data_snd_check(struct sock *sk)
3350{
3351 struct sk_buff *skb = sk->sk_send_head;
3352
3353 if (skb != NULL)
3354 __tcp_data_snd_check(sk, skb);
3355 tcp_check_space(sk);
3356}

--- 952 unchanged lines hidden ---