mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
[TCP]: Introduce tcp_wnd_end() to reduce line lengths
Signed-off-by: Ilpo Järvinen <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
66f5fe624f
commit
90840defab
3 changed files with 17 additions and 12 deletions
|
|
@ -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
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue