diff options
author | Gerrit Renker <gerrit@erg.abdn.ac.uk> | 2007-12-30 07:19:31 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 17:54:51 -0500 |
commit | a47c51044a77124ce66cd8513bba6f4d7673e43d (patch) | |
tree | 73fc6ff767aa8075e1246bf8d8d2265d87ca7fa0 /net/dccp/ackvec.h | |
parent | e7d0362dd41e760f340c1b500646cc92522bd9d5 (diff) |
[ACKVEC]: Reduce length of identifiers
This is reduces the length of the struct ackvec/ackvec_record fields. It is
a purely text-based replacement:
s#dccpavr_#avr_#g;
s#dccpav_#av_#g;
and increases readability somewhat.
Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dccp/ackvec.h')
-rw-r--r-- | net/dccp/ackvec.h | 62 |
1 files changed, 31 insertions, 31 deletions
diff --git a/net/dccp/ackvec.h b/net/dccp/ackvec.h index 9671ecd17e00..bcb64fb4acef 100644 --- a/net/dccp/ackvec.h +++ b/net/dccp/ackvec.h | |||
@@ -32,54 +32,54 @@ | |||
32 | * | 32 | * |
33 | * This data structure is the one defined in RFC 4340, Appendix A. | 33 | * This data structure is the one defined in RFC 4340, Appendix A. |
34 | * | 34 | * |
35 | * @dccpav_buf_head - circular buffer head | 35 | * @av_buf_head - circular buffer head |
36 | * @dccpav_buf_tail - circular buffer tail | 36 | * @av_buf_tail - circular buffer tail |
37 | * @dccpav_buf_ackno - ack # of the most recent packet acknowledgeable in the | 37 | * @av_buf_ackno - ack # of the most recent packet acknowledgeable in the |
38 | * buffer (i.e. %dccpav_buf_head) | 38 | * buffer (i.e. %av_buf_head) |
39 | * @dccpav_buf_nonce - the one-bit sum of the ECN Nonces on all packets acked | 39 | * @av_buf_nonce - the one-bit sum of the ECN Nonces on all packets acked |
40 | * by the buffer with State 0 | 40 | * by the buffer with State 0 |
41 | * | 41 | * |
42 | * Additionally, the HC-Receiver must keep some information about the | 42 | * Additionally, the HC-Receiver must keep some information about the |
43 | * Ack Vectors it has recently sent. For each packet sent carrying an | 43 | * Ack Vectors it has recently sent. For each packet sent carrying an |
44 | * Ack Vector, it remembers four variables: | 44 | * Ack Vector, it remembers four variables: |
45 | * | 45 | * |
46 | * @dccpav_records - list of dccp_ackvec_record | 46 | * @av_records - list of dccp_ackvec_record |
47 | * @dccpav_ack_nonce - the one-bit sum of the ECN Nonces for all State 0. | 47 | * @av_ack_nonce - the one-bit sum of the ECN Nonces for all State 0. |
48 | * | 48 | * |
49 | * @dccpav_time - the time in usecs | 49 | * @av_time - the time in usecs |
50 | * @dccpav_buf - circular buffer of acknowledgeable packets | 50 | * @av_buf - circular buffer of acknowledgeable packets |
51 | */ | 51 | */ |
52 | struct dccp_ackvec { | 52 | struct dccp_ackvec { |
53 | u64 dccpav_buf_ackno; | 53 | u64 av_buf_ackno; |
54 | struct list_head dccpav_records; | 54 | struct list_head av_records; |
55 | ktime_t dccpav_time; | 55 | ktime_t av_time; |
56 | u16 dccpav_buf_head; | 56 | u16 av_buf_head; |
57 | u16 dccpav_vec_len; | 57 | u16 av_vec_len; |
58 | u8 dccpav_buf_nonce; | 58 | u8 av_buf_nonce; |
59 | u8 dccpav_ack_nonce; | 59 | u8 av_ack_nonce; |
60 | u8 dccpav_buf[DCCP_MAX_ACKVEC_LEN]; | 60 | u8 av_buf[DCCP_MAX_ACKVEC_LEN]; |
61 | }; | 61 | }; |
62 | 62 | ||
63 | /** struct dccp_ackvec_record - ack vector record | 63 | /** struct dccp_ackvec_record - ack vector record |
64 | * | 64 | * |
65 | * ACK vector record as defined in Appendix A of spec. | 65 | * ACK vector record as defined in Appendix A of spec. |
66 | * | 66 | * |
67 | * The list is sorted by dccpavr_ack_seqno | 67 | * The list is sorted by avr_ack_seqno |
68 | * | 68 | * |
69 | * @dccpavr_node - node in dccpav_records | 69 | * @avr_node - node in av_records |
70 | * @dccpavr_ack_seqno - sequence number of the packet this record was sent on | 70 | * @avr_ack_seqno - sequence number of the packet this record was sent on |
71 | * @dccpavr_ack_ackno - sequence number being acknowledged | 71 | * @avr_ack_ackno - sequence number being acknowledged |
72 | * @dccpavr_ack_ptr - pointer into dccpav_buf where this record starts | 72 | * @avr_ack_ptr - pointer into av_buf where this record starts |
73 | * @dccpavr_ack_nonce - dccpav_ack_nonce at the time this record was sent | 73 | * @avr_ack_nonce - av_ack_nonce at the time this record was sent |
74 | * @dccpavr_sent_len - length of the record in dccpav_buf | 74 | * @avr_sent_len - lenght of the record in av_buf |
75 | */ | 75 | */ |
76 | struct dccp_ackvec_record { | 76 | struct dccp_ackvec_record { |
77 | struct list_head dccpavr_node; | 77 | struct list_head avr_node; |
78 | u64 dccpavr_ack_seqno; | 78 | u64 avr_ack_seqno; |
79 | u64 dccpavr_ack_ackno; | 79 | u64 avr_ack_ackno; |
80 | u16 dccpavr_ack_ptr; | 80 | u16 avr_ack_ptr; |
81 | u16 dccpavr_sent_len; | 81 | u16 avr_sent_len; |
82 | u8 dccpavr_ack_nonce; | 82 | u8 avr_ack_nonce; |
83 | }; | 83 | }; |
84 | 84 | ||
85 | struct sock; | 85 | struct sock; |
@@ -105,7 +105,7 @@ extern int dccp_insert_option_ackvec(struct sock *sk, struct sk_buff *skb); | |||
105 | 105 | ||
106 | static inline int dccp_ackvec_pending(const struct dccp_ackvec *av) | 106 | static inline int dccp_ackvec_pending(const struct dccp_ackvec *av) |
107 | { | 107 | { |
108 | return av->dccpav_vec_len; | 108 | return av->av_vec_len; |
109 | } | 109 | } |
110 | #else /* CONFIG_IP_DCCP_ACKVEC */ | 110 | #else /* CONFIG_IP_DCCP_ACKVEC */ |
111 | static inline int dccp_ackvec_init(void) | 111 | static inline int dccp_ackvec_init(void) |