android_kernel_samsung_msm8976/net/dccp/ccids
Gerrit Renker c38c92a84a dccp ccid-2: Simplify dec_pipe and rearming of RTO timer
This removes the dec_pipe function and improves the way the RTO timer is rearmed
when a new acknowledgment comes in.

Details and justification for removal:
--------------------------------------
 1) The BUG_ON in dec_pipe is never triggered: pipe is only decremented for TX
    history entries between tail and head, for which it had previously been
    incremented in tx_packet_sent; and it is not decremented twice for the same
    entry, since it is
    - either decremented when a corresponding Ack Vector cell in state 0 or 1
      was received (and then ccid2s_acked==1),
    - or it is decremented when ccid2s_acked==0, as part of the loss detection
      in tx_packet_recv (and hence it can not have been decremented earlier).

 2) Restarting the RTO timer happens for every single entry in each Ack Vector
    parsed by tx_packet_recv (according to RFC 4340, 11.4 this can happen up to
    16192 times per Ack Vector).

 3) The RTO timer should not be restarted when all outstanding data has been
    acknowledged. This is currently done similar to (2), in dec_pipe, when
    pipe has reached 0.

The patch onsolidates the code which rearms the RTO timer, combining the
segments from new_ack and dec_pipe. As a result, the code becomes clearer
(compare with tcp_rearm_rto()).

Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
2010-08-23 20:13:31 -07:00
..
lib net-next-2.6 [PATCH 1/1] dccp: ccids whitespace-cleanup / CodingStyle 2009-09-14 17:02:54 -07:00
ccid2.c dccp ccid-2: Simplify dec_pipe and rearming of RTO timer 2010-08-23 20:13:31 -07:00
ccid2.h dccp ccid-2: Overhaul CCID naming convention 1/2 2009-10-07 13:51:21 -07:00
ccid3.c dccp ccid-3: No more CCID control blocks in LISTEN state 2010-08-23 20:13:30 -07:00
ccid3.h ccid: ccid-2/3 code cosmetics 2010-08-23 20:13:29 -07:00
Kconfig net-next-2.6 [PATCH 1/1] dccp: ccids whitespace-cleanup / CodingStyle 2009-09-14 17:02:54 -07:00