aboutsummaryrefslogtreecommitdiffstats
path: root/net/dccp/ccids/ccid3.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/dccp/ccids/ccid3.c')
-rw-r--r--net/dccp/ccids/ccid3.c35
1 files changed, 2 insertions, 33 deletions
diff --git a/net/dccp/ccids/ccid3.c b/net/dccp/ccids/ccid3.c
index ff41977f1edc..cfd11234d8f9 100644
--- a/net/dccp/ccids/ccid3.c
+++ b/net/dccp/ccids/ccid3.c
@@ -49,9 +49,9 @@ static inline u32 usecs_div(const u32 a, const u32 b)
49 return b > 20 ? tmp / (b / 10) : tmp; 49 return b > 20 ? tmp / (b / 10) : tmp;
50} 50}
51 51
52#ifdef CCID3_DEBUG 52static int ccid3_debug;
53extern int ccid3_debug;
54 53
54#ifdef CCID3_DEBUG
55#define ccid3_pr_debug(format, a...) \ 55#define ccid3_pr_debug(format, a...) \
56 do { if (ccid3_debug) \ 56 do { if (ccid3_debug) \
57 printk(KERN_DEBUG "%s: " format, __FUNCTION__, ##a); \ 57 printk(KERN_DEBUG "%s: " format, __FUNCTION__, ##a); \
@@ -60,37 +60,6 @@ extern int ccid3_debug;
60#define ccid3_pr_debug(format, a...) 60#define ccid3_pr_debug(format, a...)
61#endif 61#endif
62 62
63#define TFRC_MIN_PACKET_SIZE 16
64#define TFRC_STD_PACKET_SIZE 256
65#define TFRC_MAX_PACKET_SIZE 65535
66
67#define TFRC_INITIAL_TIMEOUT (2 * USEC_PER_SEC)
68/* two seconds as per CCID3 spec 11 */
69
70#define TFRC_OPSYS_HALF_TIME_GRAN (USEC_PER_SEC / (2 * HZ))
71/* above is in usecs - half the scheduling granularity as per RFC3448 4.6 */
72
73#define TFRC_WIN_COUNT_PER_RTT 4
74#define TFRC_WIN_COUNT_LIMIT 16
75
76#define TFRC_MAX_BACK_OFF_TIME 64
77/* above is in seconds */
78
79#define TFRC_SMALLEST_P 40
80
81#define TFRC_RECV_IVAL_F_LENGTH 8 /* length(w[]) */
82
83/* Number of later packets received before one is considered lost */
84#define TFRC_RECV_NUM_LATE_LOSS 3
85
86enum ccid3_options {
87 TFRC_OPT_LOSS_EVENT_RATE = 192,
88 TFRC_OPT_LOSS_INTERVALS = 193,
89 TFRC_OPT_RECEIVE_RATE = 194,
90};
91
92static int ccid3_debug;
93
94static struct dccp_tx_hist *ccid3_tx_hist; 63static struct dccp_tx_hist *ccid3_tx_hist;
95static struct dccp_rx_hist *ccid3_rx_hist; 64static struct dccp_rx_hist *ccid3_rx_hist;
96 65