aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/dccp/ccids/ccid2.c9
-rw-r--r--net/dccp/ccids/ccid2.h9
2 files changed, 9 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:
583 dccp_ackvec_parsed_cleanup(&hc->tx_av_chunks); 583 dccp_ackvec_parsed_cleanup(&hc->tx_av_chunks);
584} 584}
585 585
586/*
587 * Convert RFC 3390 larger initial window into an equivalent number of packets.
588 * This is based on the numbers specified in RFC 5681, 3.1.
589 */
590static inline u32 rfc3390_bytes_to_packets(const u32 smss)
591{
592 return smss <= 1095 ? 4 : (smss > 2190 ? 2 : 3);
593}
594
595static int ccid2_hc_tx_init(struct ccid *ccid, struct sock *sk) 586static int ccid2_hc_tx_init(struct ccid *ccid, struct sock *sk)
596{ 587{
597 struct ccid2_hc_tx_sock *hc = ccid_priv(ccid); 588 struct ccid2_hc_tx_sock *hc = ccid_priv(ccid);
diff --git a/net/dccp/ccids/ccid2.h b/net/dccp/ccids/ccid2.h
index e9985dafc2c7..f17460a8fe7f 100644
--- a/net/dccp/ccids/ccid2.h
+++ b/net/dccp/ccids/ccid2.h
@@ -88,6 +88,15 @@ static inline bool ccid2_cwnd_network_limited(struct ccid2_hc_tx_sock *hc)
88 return hc->tx_pipe >= hc->tx_cwnd; 88 return hc->tx_pipe >= hc->tx_cwnd;
89} 89}
90 90
91/*
92 * Convert RFC 3390 larger initial window into an equivalent number of packets.
93 * This is based on the numbers specified in RFC 5681, 3.1.
94 */
95static inline u32 rfc3390_bytes_to_packets(const u32 smss)
96{
97 return smss <= 1095 ? 4 : (smss > 2190 ? 2 : 3);
98}
99
91struct ccid2_hc_rx_sock { 100struct ccid2_hc_rx_sock {
92 int rx_data; 101 int rx_data;
93}; 102};