diff options
Diffstat (limited to 'net/dccp/ccids/ccid2.h')
-rw-r--r-- | net/dccp/ccids/ccid2.h | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/net/dccp/ccids/ccid2.h b/net/dccp/ccids/ccid2.h index d5900dd5d4f4..8b7a2dee2f6d 100644 --- a/net/dccp/ccids/ccid2.h +++ b/net/dccp/ccids/ccid2.h | |||
@@ -44,7 +44,12 @@ struct ccid2_seq { | |||
44 | * | 44 | * |
45 | * @{cwnd,ssthresh,pipe}: as per RFC 4341, section 5 | 45 | * @{cwnd,ssthresh,pipe}: as per RFC 4341, section 5 |
46 | * @packets_acked: Ack counter for deriving cwnd growth (RFC 3465) | 46 | * @packets_acked: Ack counter for deriving cwnd growth (RFC 3465) |
47 | * @lastrtt: time RTT was last measured | 47 | * @srtt: smoothed RTT estimate, scaled by 2^3 |
48 | * @mdev: smoothed RTT variation, scaled by 2^2 | ||
49 | * @mdev_max: maximum of @mdev during one flight | ||
50 | * @rttvar: moving average/maximum of @mdev_max | ||
51 | * @rto: RTO value deriving from SRTT and RTTVAR (RFC 2988) | ||
52 | * @rtt_seq: to decay RTTVAR at most once per flight | ||
48 | * @rpseq: last consecutive seqno | 53 | * @rpseq: last consecutive seqno |
49 | * @rpdupack: dupacks since rpseq | 54 | * @rpdupack: dupacks since rpseq |
50 | * @av_chunks: list of Ack Vectors received on current skb | 55 | * @av_chunks: list of Ack Vectors received on current skb |
@@ -58,10 +63,13 @@ struct ccid2_hc_tx_sock { | |||
58 | int seqbufc; | 63 | int seqbufc; |
59 | struct ccid2_seq *seqh; | 64 | struct ccid2_seq *seqh; |
60 | struct ccid2_seq *seqt; | 65 | struct ccid2_seq *seqt; |
61 | long rto; | 66 | /* RTT measurement: variables/principles are the same as in TCP */ |
62 | long srtt; | 67 | u32 srtt, |
63 | long rttvar; | 68 | mdev, |
64 | unsigned long lastrtt; | 69 | mdev_max, |
70 | rttvar, | ||
71 | rto; | ||
72 | u64 rtt_seq:48; | ||
65 | struct timer_list rtotimer; | 73 | struct timer_list rtotimer; |
66 | u64 rpseq; | 74 | u64 rpseq; |
67 | int rpdupack; | 75 | int rpdupack; |