[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>
This commit is contained in:

committed by
David S. Miller

parent
66f5fe624f
commit
90840defab
@@ -785,6 +785,12 @@ static __inline__ __u32 tcp_max_burst(const struct tcp_sock *tp)
|
||||
return 3;
|
||||
}
|
||||
|
||||
/* Returns end sequence number of the receiver's advertised window */
|
||||
static inline u32 tcp_wnd_end(const struct tcp_sock *tp)
|
||||
{
|
||||
return tp->snd_una + tp->snd_wnd;
|
||||
}
|
||||
|
||||
/* RFC2861 Check whether we are limited by application or congestion window
|
||||
* This is the inverse of cwnd check in tcp_tso_should_defer
|
||||
*/
|
||||
|
Reference in New Issue
Block a user