diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2007-11-28 08:15:40 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 17:55:11 -0500 |
commit | 276f2edc52e309b38a216245952e05880e182c83 (patch) | |
tree | 3f581eb831a6f7f16ab30bd0f8e8d80b5b97fe50 /net/dccp/ccids/ccid3.h | |
parent | ea4f76ae13b4240dac304ed50636391d6b22e9c5 (diff) |
[TFRC]: Migrate TX history to singly-linked lis
This patch was based on another made by Gerrit Renker, his changelog was:
------------------------------------------------------
The patch set migrates TFRC TX history to a singly-linked list.
The details are:
* use of a consistent naming scheme (all TFRC functions now begin with `tfrc_');
* allocation and cleanup are taken care of internally;
* provision of a lookup function, which is used by the CCID TX infrastructure
to determine the time a packet was sent (in turn used for RTT sampling);
* integration of the new interface with the present use in CCID3.
------------------------------------------------------
Simplifications I did:
. removing the tfrc_tx_hist_head that had a pointer to the list head and
another for the slabcache.
. No need for creating a slabcache for each CCID that wants to use the TFRC
tx history routines, create a single slabcache when the dccp_tfrc_lib module
init routine is called.
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dccp/ccids/ccid3.h')
-rw-r--r-- | net/dccp/ccids/ccid3.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/dccp/ccids/ccid3.h b/net/dccp/ccids/ccid3.h index 36eca34228f0..b842a7dd99de 100644 --- a/net/dccp/ccids/ccid3.h +++ b/net/dccp/ccids/ccid3.h | |||
@@ -40,6 +40,7 @@ | |||
40 | #include <linux/list.h> | 40 | #include <linux/list.h> |
41 | #include <linux/types.h> | 41 | #include <linux/types.h> |
42 | #include <linux/tfrc.h> | 42 | #include <linux/tfrc.h> |
43 | #include "lib/packet_history.h" | ||
43 | #include "../ccid.h" | 44 | #include "../ccid.h" |
44 | 45 | ||
45 | /* Two seconds as per RFC 3448 4.2 */ | 46 | /* Two seconds as per RFC 3448 4.2 */ |
@@ -111,7 +112,7 @@ struct ccid3_hc_tx_sock { | |||
111 | ktime_t ccid3hctx_t_ld; | 112 | ktime_t ccid3hctx_t_ld; |
112 | ktime_t ccid3hctx_t_nom; | 113 | ktime_t ccid3hctx_t_nom; |
113 | u32 ccid3hctx_delta; | 114 | u32 ccid3hctx_delta; |
114 | struct list_head ccid3hctx_hist; | 115 | struct tfrc_tx_hist_entry *ccid3hctx_hist; |
115 | struct ccid3_options_received ccid3hctx_options_received; | 116 | struct ccid3_options_received ccid3hctx_options_received; |
116 | }; | 117 | }; |
117 | 118 | ||