[NET]: Annotate csum_tcpudp_magic() callers in net/*
[powerpc.git] / net / dccp / ackvec.h
index ec7a89b..cf8f20c 100644 (file)
@@ -11,7 +11,6 @@
  *     published by the Free Software Foundation.
  */
 
-#include <linux/config.h>
 #include <linux/compiler.h>
 #include <linux/list.h>
 #include <linux/time.h>
@@ -29,8 +28,7 @@
 
 /** struct dccp_ackvec - ack vector
  *
- * This data structure is the one defined in the DCCP draft
- * Appendix A.
+ * This data structure is the one defined in RFC 4340, Appendix A.
  *
  * @dccpav_buf_head - circular buffer head
  * @dccpav_buf_tail - circular buffer tail
@@ -55,9 +53,7 @@ struct dccp_ackvec {
        struct list_head dccpav_records;
        struct timeval  dccpav_time;
        u8              dccpav_buf_head;
-       u8              dccpav_buf_tail;
        u8              dccpav_ack_ptr;
-       u8              dccpav_sent_len;
        u8              dccpav_vec_len;
        u8              dccpav_buf_nonce;
        u8              dccpav_ack_nonce;
@@ -108,7 +104,7 @@ extern int dccp_insert_option_ackvec(struct sock *sk, struct sk_buff *skb);
 
 static inline int dccp_ackvec_pending(const struct dccp_ackvec *av)
 {
-       return av->dccpav_sent_len != av->dccpav_vec_len;
+       return av->dccpav_vec_len;
 }
 #else /* CONFIG_IP_DCCP_ACKVEC */
 static inline int dccp_ackvec_init(void)