diff options
author | Gerrit Renker <gerrit@erg.abdn.ac.uk> | 2010-09-19 14:14:23 -0400 |
---|---|---|
committer | Gerrit Renker <gerrit@erg.abdn.ac.uk> | 2010-09-21 06:14:26 -0400 |
commit | 536bb20b45dee3f9b77b0d250f8ed0733a5cb025 (patch) | |
tree | cb28f25c7c4c70f6d3c110fd7ddcf0666a5b04af /net/dccp/ccids/ccid3.h | |
parent | 792e6d3389061ad449429b9ba228eb758c247ea0 (diff) |
dccp ccid-3: Remove redundant 'options_received' struct
The `options_received' struct is redundant, since it re-duplicates the existing
`p' and `x_recv' fields. This patch removes the sub-struct and migrates the
format conversion operations to ccid3_hc_tx_parse_options().
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 | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/net/dccp/ccids/ccid3.h b/net/dccp/ccids/ccid3.h index 89b047b0c79b..1a9933c29672 100644 --- a/net/dccp/ccids/ccid3.h +++ b/net/dccp/ccids/ccid3.h | |||
@@ -67,11 +67,6 @@ enum ccid3_options { | |||
67 | TFRC_OPT_RECEIVE_RATE = 194, | 67 | TFRC_OPT_RECEIVE_RATE = 194, |
68 | }; | 68 | }; |
69 | 69 | ||
70 | struct ccid3_options_received { | ||
71 | u32 ccid3or_loss_event_rate; | ||
72 | u32 ccid3or_receive_rate; | ||
73 | }; | ||
74 | |||
75 | /* TFRC sender states */ | 70 | /* TFRC sender states */ |
76 | enum ccid3_hc_tx_states { | 71 | enum ccid3_hc_tx_states { |
77 | TFRC_SSTATE_NO_SENT = 1, | 72 | TFRC_SSTATE_NO_SENT = 1, |
@@ -97,7 +92,6 @@ enum ccid3_hc_tx_states { | |||
97 | * @tx_t_ld: Time last doubled during slow start | 92 | * @tx_t_ld: Time last doubled during slow start |
98 | * @tx_t_nom: Nominal send time of next packet | 93 | * @tx_t_nom: Nominal send time of next packet |
99 | * @tx_hist: Packet history | 94 | * @tx_hist: Packet history |
100 | * @tx_options_received: Parsed set of retrieved options | ||
101 | */ | 95 | */ |
102 | struct ccid3_hc_tx_sock { | 96 | struct ccid3_hc_tx_sock { |
103 | u64 tx_x; | 97 | u64 tx_x; |
@@ -115,7 +109,6 @@ struct ccid3_hc_tx_sock { | |||
115 | ktime_t tx_t_ld; | 109 | ktime_t tx_t_ld; |
116 | ktime_t tx_t_nom; | 110 | ktime_t tx_t_nom; |
117 | struct tfrc_tx_hist_entry *tx_hist; | 111 | struct tfrc_tx_hist_entry *tx_hist; |
118 | struct ccid3_options_received tx_options_received; | ||
119 | }; | 112 | }; |
120 | 113 | ||
121 | static inline struct ccid3_hc_tx_sock *ccid3_hc_tx_sk(const struct sock *sk) | 114 | static inline struct ccid3_hc_tx_sock *ccid3_hc_tx_sk(const struct sock *sk) |