summaryrefslogtreecommitdiff
path: root/net/dccp/ackvec.h
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@mandriva.com>2006-03-20 17:16:17 -0800
committerDavid S. Miller <davem@davemloft.net>2006-03-20 17:16:17 -0800
commit9b07ef5ddaced1e822b1a1fb1da088eb15c45cb4 (patch)
tree57a33bb4ed32384a95e2c23d7039e8ed99c5b595 /net/dccp/ackvec.h
parentfa23e2ecd30a584cdcb9b3de0149dbb5c073c20b (diff)
downloadlinux-3.10-9b07ef5ddaced1e822b1a1fb1da088eb15c45cb4.tar.gz
linux-3.10-9b07ef5ddaced1e822b1a1fb1da088eb15c45cb4.tar.bz2
linux-3.10-9b07ef5ddaced1e822b1a1fb1da088eb15c45cb4.zip
[DCCP] ackvec: Introduce dccp_ackvec_slab
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.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/net/dccp/ackvec.h b/net/dccp/ackvec.h
index f083daf4200..470bae8a9d0 100644
--- a/net/dccp/ackvec.h
+++ b/net/dccp/ackvec.h
@@ -71,6 +71,9 @@ struct sock;
struct sk_buff;
#ifdef CONFIG_IP_DCCP_ACKVEC
+extern int dccp_ackvec_init(void);
+extern void dccp_ackvec_exit(void);
+
extern struct dccp_ackvec *dccp_ackvec_alloc(const gfp_t priority);
extern void dccp_ackvec_free(struct dccp_ackvec *av);
@@ -89,6 +92,15 @@ static inline int dccp_ackvec_pending(const struct dccp_ackvec *av)
return av->dccpav_sent_len != av->dccpav_vec_len;
}
#else /* CONFIG_IP_DCCP_ACKVEC */
+static inline int dccp_ackvec_init(void)
+{
+ return 0;
+}
+
+static inline void dccp_ackvec_exit(void)
+{
+}
+
static inline struct dccp_ackvec *dccp_ackvec_alloc(const gfp_t priority)
{
return NULL;