diff options
author | Gerrit Renker <gerrit@erg.abdn.ac.uk> | 2006-11-27 20:32:37 -0200 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-12-02 21:30:52 -0800 |
commit | 5d0dbc4a9b2d325458dcbf9a8329bd1d2cc7bd7e (patch) | |
tree | 43aeec866470135e0b16420587ae04b7c41d43eb /lib/ts_bm.c | |
parent | 17893bc1a632e195574dc0dd9751243f0d5993d2 (diff) | |
download | lwn-5d0dbc4a9b2d325458dcbf9a8329bd1d2cc7bd7e.tar.gz lwn-5d0dbc4a9b2d325458dcbf9a8329bd1d2cc7bd7e.zip |
[DCCP] ccid3: Consolidate handling of t_RTO
This patch
* removes setting t_RTO in ccid3_hc_tx_init (per [RFC 3448, 4.2], t_RTO is
undefined until feedback has been received);
* makes some trivial changes (updates of comments);
* performs a small optimisation by exploiting that the feedback timeout
uses the value of t_ipi. The way it is done is safe, because the timeouts
appear after the changes to t_ipi, ensuring that up-to-date values are used;
* in ccid3_hc_tx_packet_recv, moves the t_rto statement closer to the calculation
of the next_tmout. This makes the code clearer to read and is also safe, since
t_rto is not updated until the next call of ccid3_hc_tx_packet_recv, and is not
read by the functions called via ccid_wait_for_ccid();
* removes a `max' statement in sk_reset_timer, this is not needed since the timeout
value is always greater than 1E6 microseconds.
* adds `XXX'es to highlight that currently the nofeedback timer is set
in a non-standard way
Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk>
Acked-by: Ian McDonald <ian.mcdonald@jandi.co.nz>
Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
Diffstat (limited to 'lib/ts_bm.c')
0 files changed, 0 insertions, 0 deletions