tcp.h (717cb906bd43a9ac00631d600adda5c6546843a6) | tcp.h (b03efcfb2180289718991bb984044ce6c5b7d1b0) |
---|---|
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 * Definitions for the TCP module. 7 * 8 * Version: @(#)tcp.h 1.0.5 05/23/93 --- 977 unchanged lines hidden (view full) --- 986 987static __inline__ void tcp_fast_path_on(struct tcp_sock *tp) 988{ 989 __tcp_fast_path_on(tp, tp->snd_wnd >> tp->rx_opt.snd_wscale); 990} 991 992static inline void tcp_fast_path_check(struct sock *sk, struct tcp_sock *tp) 993{ | 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 * Definitions for the TCP module. 7 * 8 * Version: @(#)tcp.h 1.0.5 05/23/93 --- 977 unchanged lines hidden (view full) --- 986 987static __inline__ void tcp_fast_path_on(struct tcp_sock *tp) 988{ 989 __tcp_fast_path_on(tp, tp->snd_wnd >> tp->rx_opt.snd_wscale); 990} 991 992static inline void tcp_fast_path_check(struct sock *sk, struct tcp_sock *tp) 993{ |
994 if (skb_queue_len(&tp->out_of_order_queue) == 0 && | 994 if (skb_queue_empty(&tp->out_of_order_queue) && |
995 tp->rcv_wnd && 996 atomic_read(&sk->sk_rmem_alloc) < sk->sk_rcvbuf && 997 !tp->urg_data) 998 tcp_fast_path_on(tp); 999} 1000 1001/* Compute the actual receive window we are currently advertising. 1002 * Rcv_nxt can be after the window if our peer push more data --- 718 unchanged lines hidden --- | 995 tp->rcv_wnd && 996 atomic_read(&sk->sk_rmem_alloc) < sk->sk_rcvbuf && 997 !tp->urg_data) 998 tcp_fast_path_on(tp); 999} 1000 1001/* Compute the actual receive window we are currently advertising. 1002 * Rcv_nxt can be after the window if our peer push more data --- 718 unchanged lines hidden --- |