[DCCP]: Introduce dccp_tfrc_lib module with net/dccp/ccids/lib/*.c

I'll now take a look at the other proposed TFRC DCCP CCIDs to find
more code that is now in ccid3.c and move to this module, the loss
event rate, calc_X, etc most probably will be moved there.

The main goal of these changes is to pave the way for the
implementation of more TFRC based DCCP CCIDs and to shrink ccid3.c,
reducing its complexity and helping in getting it rock solid.

Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Arnaldo Carvalho de Melo and committed by
David S. Miller
5cea0ddc 4524b259

+16 -1
+4
net/dccp/ccids/Kconfig
··· 22 23 If in doubt, say M. 24 25 endmenu
··· 22 23 If in doubt, say M. 24 25 + config IP_DCCP_TFRC_LIB 26 + depends on IP_DCCP_CCID3 27 + def_tristate IP_DCCP_CCID3 28 + 29 endmenu
+3 -1
net/dccp/ccids/Makefile
··· 1 obj-$(CONFIG_IP_DCCP_CCID3) += dccp_ccid3.o 2 3 - dccp_ccid3-y := ccid3.o lib/loss_interval.o lib/packet_history.o
··· 1 obj-$(CONFIG_IP_DCCP_CCID3) += dccp_ccid3.o 2 3 + dccp_ccid3-y := ccid3.o 4 + 5 + obj-y += lib/
+3
net/dccp/ccids/lib/Makefile
···
··· 1 + obj-$(CONFIG_IP_DCCP_TFRC_LIB) += dccp_tfrc_lib.o 2 + 3 + dccp_tfrc_lib-y := loss_interval.o packet_history.o
+6
net/dccp/ccids/lib/packet_history.c
··· 35 */ 36 37 #include <linux/config.h> 38 #include <linux/string.h> 39 40 #include "packet_history.h" ··· 198 } 199 200 EXPORT_SYMBOL_GPL(dccp_tx_hist_purge);
··· 35 */ 36 37 #include <linux/config.h> 38 + #include <linux/module.h> 39 #include <linux/string.h> 40 41 #include "packet_history.h" ··· 197 } 198 199 EXPORT_SYMBOL_GPL(dccp_tx_hist_purge); 200 + 201 + MODULE_AUTHOR("Ian McDonald <iam4@cs.waikato.ac.nz>, " 202 + "Arnaldo Carvalho de Melo <acme@ghostprotocols.net>"); 203 + MODULE_DESCRIPTION("DCCP TFRC library"); 204 + MODULE_LICENSE("GPL");