aboutsummaryrefslogtreecommitdiffstats
path: root/net/dccp/ccids/lib/tfrc.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/dccp/ccids/lib/tfrc.h')
-rw-r--r--net/dccp/ccids/lib/tfrc.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/net/dccp/ccids/lib/tfrc.h b/net/dccp/ccids/lib/tfrc.h
index 1fb1187bbf1c..ddd8107b927f 100644
--- a/net/dccp/ccids/lib/tfrc.h
+++ b/net/dccp/ccids/lib/tfrc.h
@@ -58,7 +58,14 @@ static inline u32 tfrc_ewma(const u32 avg, const u32 newval, const u8 weight)
58 return avg ? (weight * avg + (10 - weight) * newval) / 10 : newval; 58 return avg ? (weight * avg + (10 - weight) * newval) / 10 : newval;
59} 59}
60 60
61extern u32 tfrc_calc_x(u16 s, u32 R, u32 p); 61extern u32 tfrc_calc_x(u16 s, u32 R, u32 p);
62extern u32 tfrc_calc_x_reverse_lookup(u32 fvalue); 62extern u32 tfrc_calc_x_reverse_lookup(u32 fvalue);
63 63
64extern int tfrc_tx_packet_history_init(void);
65extern void tfrc_tx_packet_history_exit(void);
66extern int tfrc_rx_packet_history_init(void);
67extern void tfrc_rx_packet_history_exit(void);
68
69extern int tfrc_li_init(void);
70extern void tfrc_li_exit(void);
64#endif /* _TFRC_H_ */ 71#endif /* _TFRC_H_ */