diff options
| author | David S. Miller <[email protected]> | 2011-02-03 01:05:11 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2011-02-03 04:48:47 +0000 |
| commit | 442b9635c569fef038d5367a7acd906db4677ae1 (patch) | |
| tree | c20d06ca161c70c0db61ed298eaf51102b67a38e /net/dccp/ccids/ccid2.c | |
| parent | bna: use device model DMA API (diff) | |
| download | kernel-442b9635c569fef038d5367a7acd906db4677ae1.tar.gz kernel-442b9635c569fef038d5367a7acd906db4677ae1.zip | |
tcp: Increase the initial congestion window to 10.
Signed-off-by: David S. Miller <[email protected]>
Acked-by: Nandita Dukkipati <[email protected]>
Diffstat (limited to 'net/dccp/ccids/ccid2.c')
| -rw-r--r-- | net/dccp/ccids/ccid2.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/net/dccp/ccids/ccid2.c b/net/dccp/ccids/ccid2.c index e96d5e810039..fadecd20d75b 100644 --- a/net/dccp/ccids/ccid2.c +++ b/net/dccp/ccids/ccid2.c @@ -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); |
