diff options
Diffstat (limited to 'net/dccp/ccids/ccid3.h')
-rw-r--r-- | net/dccp/ccids/ccid3.h | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/net/dccp/ccids/ccid3.h b/net/dccp/ccids/ccid3.h index ee8cbace6630..eb248778eea3 100644 --- a/net/dccp/ccids/ccid3.h +++ b/net/dccp/ccids/ccid3.h | |||
@@ -48,6 +48,8 @@ | |||
48 | /* Two seconds as per CCID3 spec */ | 48 | /* Two seconds as per CCID3 spec */ |
49 | #define TFRC_INITIAL_TIMEOUT (2 * USEC_PER_SEC) | 49 | #define TFRC_INITIAL_TIMEOUT (2 * USEC_PER_SEC) |
50 | 50 | ||
51 | #define TFRC_INITIAL_IPI (USEC_PER_SEC / 4) | ||
52 | |||
51 | /* In usecs - half the scheduling granularity as per RFC3448 4.6 */ | 53 | /* In usecs - half the scheduling granularity as per RFC3448 4.6 */ |
52 | #define TFRC_OPSYS_HALF_TIME_GRAN (USEC_PER_SEC / (2 * HZ)) | 54 | #define TFRC_OPSYS_HALF_TIME_GRAN (USEC_PER_SEC / (2 * HZ)) |
53 | 55 | ||
@@ -115,7 +117,7 @@ struct ccid3_hc_rx_sock { | |||
115 | u64 ccid3hcrx_seqno_last_counter:48, | 117 | u64 ccid3hcrx_seqno_last_counter:48, |
116 | ccid3hcrx_state:8, | 118 | ccid3hcrx_state:8, |
117 | ccid3hcrx_last_counter:4; | 119 | ccid3hcrx_last_counter:4; |
118 | unsigned long ccid3hcrx_rtt; | 120 | u32 ccid3hcrx_rtt; |
119 | u32 ccid3hcrx_p; | 121 | u32 ccid3hcrx_p; |
120 | u32 ccid3hcrx_bytes_recv; | 122 | u32 ccid3hcrx_bytes_recv; |
121 | struct timeval ccid3hcrx_tstamp_last_feedback; | 123 | struct timeval ccid3hcrx_tstamp_last_feedback; |
@@ -128,10 +130,14 @@ struct ccid3_hc_rx_sock { | |||
128 | u32 ccid3hcrx_x_recv; | 130 | u32 ccid3hcrx_x_recv; |
129 | }; | 131 | }; |
130 | 132 | ||
131 | #define ccid3_hc_tx_field(s,field) (s->dccps_hc_tx_ccid_private == NULL ? 0 : \ | 133 | static inline struct ccid3_hc_tx_sock *ccid3_hc_tx_sk(const struct sock *sk) |
132 | ((struct ccid3_hc_tx_sock *)s->dccps_hc_tx_ccid_private)->ccid3hctx_##field) | 134 | { |
135 | return dccp_sk(sk)->dccps_hc_tx_ccid_private; | ||
136 | } | ||
133 | 137 | ||
134 | #define ccid3_hc_rx_field(s,field) (s->dccps_hc_rx_ccid_private == NULL ? 0 : \ | 138 | static inline struct ccid3_hc_rx_sock *ccid3_hc_rx_sk(const struct sock *sk) |
135 | ((struct ccid3_hc_rx_sock *)s->dccps_hc_rx_ccid_private)->ccid3hcrx_##field) | 139 | { |
140 | return dccp_sk(sk)->dccps_hc_rx_ccid_private; | ||
141 | } | ||
136 | 142 | ||
137 | #endif /* _DCCP_CCID3_H_ */ | 143 | #endif /* _DCCP_CCID3_H_ */ |