Skip to content

Commit

Permalink
[DCCP]: Introduce dccp_tfrc_lib module with net/dccp/ccids/lib/*.c
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Arnaldo Carvalho de Melo authored and David S. Miller committed Aug 29, 2005
1 parent 4524b25 commit 5cea0dd
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 1 deletion.
4 changes: 4 additions & 0 deletions net/dccp/ccids/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,8 @@ config IP_DCCP_CCID3

If in doubt, say M.

config IP_DCCP_TFRC_LIB
depends on IP_DCCP_CCID3
def_tristate IP_DCCP_CCID3

endmenu
4 changes: 3 additions & 1 deletion net/dccp/ccids/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
obj-$(CONFIG_IP_DCCP_CCID3) += dccp_ccid3.o

dccp_ccid3-y := ccid3.o lib/loss_interval.o lib/packet_history.o
dccp_ccid3-y := ccid3.o

obj-y += lib/
3 changes: 3 additions & 0 deletions net/dccp/ccids/lib/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
obj-$(CONFIG_IP_DCCP_TFRC_LIB) += dccp_tfrc_lib.o

dccp_tfrc_lib-y := loss_interval.o packet_history.o
6 changes: 6 additions & 0 deletions net/dccp/ccids/lib/packet_history.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
*/

#include <linux/config.h>
#include <linux/module.h>
#include <linux/string.h>

#include "packet_history.h"
Expand Down Expand Up @@ -197,3 +198,8 @@ void dccp_tx_hist_purge(struct dccp_tx_hist *hist, struct list_head *list)
}

EXPORT_SYMBOL_GPL(dccp_tx_hist_purge);

MODULE_AUTHOR("Ian McDonald <iam4@cs.waikato.ac.nz>, "
"Arnaldo Carvalho de Melo <acme@ghostprotocols.net>");
MODULE_DESCRIPTION("DCCP TFRC library");
MODULE_LICENSE("GPL");

0 comments on commit 5cea0dd

Please sign in to comment.