diff options
| author | Gerrit Renker <[email protected]> | 2011-07-03 15:04:18 +0000 |
|---|---|---|
| committer | Gerrit Renker <[email protected]> | 2011-07-04 18:37:30 +0000 |
| commit | b4d5f4b2884625d13c7ef5b9fd085ec93bbf545c (patch) | |
| tree | 6034da8babcad421dc2dc44d124a5730d3d8d329 /net/dccp/ccids/ccid2.c | |
| parent | dccp: cosmetics of info message (diff) | |
| download | kernel-b4d5f4b2884625d13c7ef5b9fd085ec93bbf545c.tar.gz kernel-b4d5f4b2884625d13c7ef5b9fd085ec93bbf545c.zip | |
dccp ccid-2: move rfc 3390 function into header file
This moves CCID-2's initial window function into the header file, since several
parts throughout the CCID-2 code need to call it (CCID-2 still uses RFC 3390).
Signed-off-by: Gerrit Renker <[email protected]>
Acked-by: Leandro Melo de Sales <[email protected]>
Diffstat (limited to 'net/dccp/ccids/ccid2.c')
| -rw-r--r-- | net/dccp/ccids/ccid2.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/net/dccp/ccids/ccid2.c b/net/dccp/ccids/ccid2.c index fadecd20d75b..e96d5e810039 100644 --- a/net/dccp/ccids/ccid2.c +++ b/net/dccp/ccids/ccid2.c @@ -583,15 +583,6 @@ 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); |
