diff options
author | Changli Gao | 2010-11-15 12:23:24 +0100 |
---|---|---|
committer | Patrick McHardy | 2010-11-15 12:23:24 +0100 |
commit | e0e76c83becc7536e8371e560504d836d34fcf7d (patch) | |
tree | 9a2f63014e06aee37815dfa20394a79c351739f0 /include/net/netfilter/nf_conntrack_ecache.h | |
parent | netfilter: nf_nat: don't use atomic bit operation (diff) | |
download | kernel-qcow2-linux-e0e76c83becc7536e8371e560504d836d34fcf7d.tar.gz kernel-qcow2-linux-e0e76c83becc7536e8371e560504d836d34fcf7d.tar.xz kernel-qcow2-linux-e0e76c83becc7536e8371e560504d836d34fcf7d.zip |
netfilter: ct_extend: define NF_CT_EXT_* as needed
Less IDs make nf_ct_ext smaller.
Signed-off-by: Changli Gao <xiaosuo@gmail.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'include/net/netfilter/nf_conntrack_ecache.h')
-rw-r--r-- | include/net/netfilter/nf_conntrack_ecache.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/net/netfilter/nf_conntrack_ecache.h b/include/net/netfilter/nf_conntrack_ecache.h index 96ba5f7dcab6..f596b60d6d75 100644 --- a/include/net/netfilter/nf_conntrack_ecache.h +++ b/include/net/netfilter/nf_conntrack_ecache.h @@ -23,12 +23,17 @@ struct nf_conntrack_ecache { static inline struct nf_conntrack_ecache * nf_ct_ecache_find(const struct nf_conn *ct) { +#ifdef CONFIG_NF_CONNTRACK_EVENTS return nf_ct_ext_find(ct, NF_CT_EXT_ECACHE); +#else + return NULL; +#endif } static inline struct nf_conntrack_ecache * nf_ct_ecache_ext_add(struct nf_conn *ct, u16 ctmask, u16 expmask, gfp_t gfp) { +#ifdef CONFIG_NF_CONNTRACK_EVENTS struct net *net = nf_ct_net(ct); struct nf_conntrack_ecache *e; @@ -45,6 +50,9 @@ nf_ct_ecache_ext_add(struct nf_conn *ct, u16 ctmask, u16 expmask, gfp_t gfp) e->expmask = expmask; } return e; +#else + return NULL; +#endif }; #ifdef CONFIG_NF_CONNTRACK_EVENTS |