2 * TFRC library initialisation
4 * Copyright (c) 2007 The University of Aberdeen, Scotland, UK
5 * Copyright (c) 2007 Arnaldo Carvalho de Melo <acme@redhat.com>
7 #include <linux/moduleparam.h>
10 #ifdef CONFIG_IP_DCCP_TFRC_DEBUG
12 module_param(tfrc_debug, bool, 0644);
13 MODULE_PARM_DESC(tfrc_debug, "Enable TFRC debug messages");
16 int __init tfrc_lib_init(void)
18 int rc = tfrc_li_init();
23 rc = tfrc_tx_packet_history_init();
25 goto out_free_loss_intervals;
27 rc = tfrc_rx_packet_history_init();
29 goto out_free_tx_history;
33 tfrc_tx_packet_history_exit();
34 out_free_loss_intervals:
40 void tfrc_lib_exit(void)
42 tfrc_rx_packet_history_exit();
43 tfrc_tx_packet_history_exit();