aboutsummaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2016-01-20 18:56:44 -0800
committerDavid S. Miller <davem@davemloft.net>2016-01-20 18:56:44 -0800
commit8034e1efcb330d2aecef8cbf8a83f206270c1775 (patch)
tree92d9883ddf4a918b17eb8ed0fb0d64c45ebd5ea1 /include/net
parentnet: change tcp_syn_retries documentation (diff)
parentnetfilter: nf_conntrack: use safer way to lock all buckets (diff)
downloadlinux-dev-8034e1efcb330d2aecef8cbf8a83f206270c1775.tar.xz
linux-dev-8034e1efcb330d2aecef8cbf8a83f206270c1775.zip
Merge git://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf
Diffstat (limited to 'include/net')
-rw-r--r--include/net/netfilter/nf_conntrack_core.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/include/net/netfilter/nf_conntrack_core.h b/include/net/netfilter/nf_conntrack_core.h
index 788ef58a66b9..62e17d1319ff 100644
--- a/include/net/netfilter/nf_conntrack_core.h
+++ b/include/net/netfilter/nf_conntrack_core.h
@@ -79,12 +79,10 @@ print_tuple(struct seq_file *s, const struct nf_conntrack_tuple *tuple,
const struct nf_conntrack_l3proto *l3proto,
const struct nf_conntrack_l4proto *proto);
-#ifdef CONFIG_LOCKDEP
-# define CONNTRACK_LOCKS 8
-#else
-# define CONNTRACK_LOCKS 1024
-#endif
+#define CONNTRACK_LOCKS 1024
+
extern spinlock_t nf_conntrack_locks[CONNTRACK_LOCKS];
+void nf_conntrack_lock(spinlock_t *lock);
extern spinlock_t nf_conntrack_expect_lock;