aboutsummaryrefslogtreecommitdiffstats
path: root/net/dccp/ackvec.h
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@mandriva.com>2006-03-20 20:15:42 -0500
committerDavid S. Miller <davem@davemloft.net>2006-03-20 20:15:42 -0500
commit7400d781105d18bf5bba89f8b986a413f14144a8 (patch)
tree39bba6735fa99c5b2aa755b81c0cebc0ac901931 /net/dccp/ackvec.h
parent0af5f6c1eba4a18e6b2ed518b589927d778c6c16 (diff)
[DCCP] ackvec: Ditch dccpav_buf_len
Simplifying the code a bit as we're always using DCCP_MAX_ACKVEC_LEN. Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dccp/ackvec.h')
-rw-r--r--net/dccp/ackvec.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/net/dccp/ackvec.h b/net/dccp/ackvec.h
index f7dfb5f67b87..f083daf4200c 100644
--- a/net/dccp/ackvec.h
+++ b/net/dccp/ackvec.h
@@ -49,7 +49,6 @@
49 * (HC-Sender seqno) 49 * (HC-Sender seqno)
50 * @dccpav_ack_nonce - the one-bit sum of the ECN Nonces for all State 0. 50 * @dccpav_ack_nonce - the one-bit sum of the ECN Nonces for all State 0.
51 * 51 *
52 * @dccpav_buf_len - circular buffer length
53 * @dccpav_time - the time in usecs 52 * @dccpav_time - the time in usecs
54 * @dccpav_buf - circular buffer of acknowledgeable packets 53 * @dccpav_buf - circular buffer of acknowledgeable packets
55 */ 54 */
@@ -63,18 +62,16 @@ struct dccp_ackvec {
63 u8 dccpav_ack_ptr; 62 u8 dccpav_ack_ptr;
64 u8 dccpav_sent_len; 63 u8 dccpav_sent_len;
65 u8 dccpav_vec_len; 64 u8 dccpav_vec_len;
66 u8 dccpav_buf_len;
67 u8 dccpav_buf_nonce; 65 u8 dccpav_buf_nonce;
68 u8 dccpav_ack_nonce; 66 u8 dccpav_ack_nonce;
69 u8 dccpav_buf[0]; 67 u8 dccpav_buf[DCCP_MAX_ACKVEC_LEN];
70}; 68};
71 69
72struct sock; 70struct sock;
73struct sk_buff; 71struct sk_buff;
74 72
75#ifdef CONFIG_IP_DCCP_ACKVEC 73#ifdef CONFIG_IP_DCCP_ACKVEC
76extern struct dccp_ackvec *dccp_ackvec_alloc(unsigned int len, 74extern struct dccp_ackvec *dccp_ackvec_alloc(const gfp_t priority);
77 const gfp_t priority);
78extern void dccp_ackvec_free(struct dccp_ackvec *av); 75extern void dccp_ackvec_free(struct dccp_ackvec *av);
79 76
80extern int dccp_ackvec_add(struct dccp_ackvec *av, const struct sock *sk, 77extern int dccp_ackvec_add(struct dccp_ackvec *av, const struct sock *sk,
@@ -92,8 +89,7 @@ static inline int dccp_ackvec_pending(const struct dccp_ackvec *av)
92 return av->dccpav_sent_len != av->dccpav_vec_len; 89 return av->dccpav_sent_len != av->dccpav_vec_len;
93} 90}
94#else /* CONFIG_IP_DCCP_ACKVEC */ 91#else /* CONFIG_IP_DCCP_ACKVEC */
95static inline struct dccp_ackvec *dccp_ackvec_alloc(unsigned int len, 92static inline struct dccp_ackvec *dccp_ackvec_alloc(const gfp_t priority)
96 const gfp_t priority)
97{ 93{
98 return NULL; 94 return NULL;
99} 95}