aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-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 */