diff options
author | Gerrit Renker <gerrit@erg.abdn.ac.uk> | 2008-09-04 01:30:19 -0400 |
---|---|---|
committer | Gerrit Renker <gerrit@erg.abdn.ac.uk> | 2008-09-04 01:45:41 -0400 |
commit | 34a081be8e14b7ada70e069b65b05d54db4af497 (patch) | |
tree | 0304cc3c06e1ee9139d6dab01df07c8d073cd323 /net/dccp/ccids/ccid3.h | |
parent | 3ca7aea04152255bb65275b0018d3c673bc1f4e7 (diff) |
dccp tfrc: Let dccp_tfrc_lib do the sampling work
This migrates more TFRC-related code into the dccp_tfrc_lib:
* sampling of the packet size `s' (which is only needed until the first
loss interval is computed (ccid3_first_li));
* updating the byte-counter `bytes_recvd' in between sending feedbacks.
The result is a better separation of CCID-3 specific and TFRC specific
code, which aids future integration with ECN and e.g. CCID-4.
Further changes:
----------------
* replaced magic number of 536 with equivalent constant TCP_MIN_RCVMSS;
(this constant is also used when no estimate for `s' is available).
Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk>
Diffstat (limited to 'net/dccp/ccids/ccid3.h')
-rw-r--r-- | net/dccp/ccids/ccid3.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/net/dccp/ccids/ccid3.h b/net/dccp/ccids/ccid3.h index 1773a8dd36d8..0c4fadd85f94 100644 --- a/net/dccp/ccids/ccid3.h +++ b/net/dccp/ccids/ccid3.h | |||
@@ -124,25 +124,21 @@ enum ccid3_hc_rx_states { | |||
124 | * | 124 | * |
125 | * @last_counter - Tracks window counter (RFC 4342, 8.1) | 125 | * @last_counter - Tracks window counter (RFC 4342, 8.1) |
126 | * @state - Receiver state, one of %ccid3_hc_rx_states | 126 | * @state - Receiver state, one of %ccid3_hc_rx_states |
127 | * @bytes_recv - Total sum of DCCP payload bytes | ||
128 | * @x_recv - Receiver estimate of send rate (RFC 3448, sec. 4.3) | 127 | * @x_recv - Receiver estimate of send rate (RFC 3448, sec. 4.3) |
129 | * @rtt - Receiver estimate of RTT | 128 | * @rtt - Receiver estimate of RTT |
130 | * @tstamp_last_feedback - Time at which last feedback was sent | 129 | * @tstamp_last_feedback - Time at which last feedback was sent |
131 | * @hist - Packet history (loss detection + RTT sampling) | 130 | * @hist - Packet history (loss detection + RTT sampling) |
132 | * @li_hist - Loss Interval database | 131 | * @li_hist - Loss Interval database |
133 | * @s - Received packet size in bytes | ||
134 | * @p_inverse - Inverse of Loss Event Rate (RFC 4342, sec. 8.5) | 132 | * @p_inverse - Inverse of Loss Event Rate (RFC 4342, sec. 8.5) |
135 | */ | 133 | */ |
136 | struct ccid3_hc_rx_sock { | 134 | struct ccid3_hc_rx_sock { |
137 | u8 last_counter:4; | 135 | u8 last_counter:4; |
138 | enum ccid3_hc_rx_states state:8; | 136 | enum ccid3_hc_rx_states state:8; |
139 | u32 bytes_recv; | ||
140 | u32 x_recv; | 137 | u32 x_recv; |
141 | u32 rtt; | 138 | u32 rtt; |
142 | ktime_t tstamp_last_feedback; | 139 | ktime_t tstamp_last_feedback; |
143 | struct tfrc_rx_hist hist; | 140 | struct tfrc_rx_hist hist; |
144 | struct tfrc_loss_hist li_hist; | 141 | struct tfrc_loss_hist li_hist; |
145 | u16 s; | ||
146 | #define p_inverse li_hist.i_mean | 142 | #define p_inverse li_hist.i_mean |
147 | }; | 143 | }; |
148 | 144 | ||