mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
tcp: Increase the initial congestion window to 10.
Signed-off-by: David S. Miller <[email protected]> Acked-by: Nandita Dukkipati <[email protected]>
This commit is contained in:
parent
5ea74318c6
commit
442b9635c5
3 changed files with 13 additions and 10 deletions
|
|
@ -583,6 +583,15 @@ done:
|
|||
dccp_ackvec_parsed_cleanup(&hc->tx_av_chunks);
|
||||
}
|
||||
|
||||
/*
|
||||
* Convert RFC 3390 larger initial window into an equivalent number of packets.
|
||||
* This is based on the numbers specified in RFC 5681, 3.1.
|
||||
*/
|
||||
static inline u32 rfc3390_bytes_to_packets(const u32 smss)
|
||||
{
|
||||
return smss <= 1095 ? 4 : (smss > 2190 ? 2 : 3);
|
||||
}
|
||||
|
||||
static int ccid2_hc_tx_init(struct ccid *ccid, struct sock *sk)
|
||||
{
|
||||
struct ccid2_hc_tx_sock *hc = ccid_priv(ccid);
|
||||
|
|
|
|||
Loading…
Reference in a new issue