aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/tcp.h
diff options
context:
space:
mode:
authorIlpo Järvinen <ilpo.jarvinen@helsinki.fi>2007-12-31 07:48:41 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:00:22 -0500
commit90840defabbd819180c7528e12d550776848f833 (patch)
tree865c98dbf50a08b35cb8b91e1348f10c87fae945 /include/net/tcp.h
parent66f5fe624fa5f1d4574d2dd2bc0c72a17a92079c (diff)
[TCP]: Introduce tcp_wnd_end() to reduce line lengths
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/tcp.h')
-rw-r--r--include/net/tcp.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h
index 76286e80205a..6a732d4919fe 100644
--- a/include/net/tcp.h
+++ b/include/net/tcp.h
@@ -785,6 +785,12 @@ static __inline__ __u32 tcp_max_burst(const struct tcp_sock *tp)
785 return 3; 785 return 3;
786} 786}
787 787
788/* Returns end sequence number of the receiver's advertised window */
789static inline u32 tcp_wnd_end(const struct tcp_sock *tp)
790{
791 return tp->snd_una + tp->snd_wnd;
792}
793
788/* RFC2861 Check whether we are limited by application or congestion window 794/* RFC2861 Check whether we are limited by application or congestion window
789 * This is the inverse of cwnd check in tcp_tso_should_defer 795 * This is the inverse of cwnd check in tcp_tso_should_defer
790 */ 796 */