aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2008-05-20 17:40:12 +0000
committerGabor Juhos <juhosg@openwrt.org>2008-05-20 17:40:12 +0000
commit10521a30cf19757b5f008886c8e29862553f68c4 (patch)
tree1614abd4cbe5cc6626453b6f5a6b5db21de13c26 /target/linux
parentaa0354c58243eef44d96ba56eed682c12ea332eb (diff)
downloadmaster-187ad058-10521a30cf19757b5f008886c8e29862553f68c4.tar.gz
master-187ad058-10521a30cf19757b5f008886c8e29862553f68c4.tar.bz2
master-187ad058-10521a30cf19757b5f008886c8e29862553f68c4.zip
[kernel] the hash_conntrack is no longer broken on ARM since 2.6.25.4
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11223 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/generic-2.6/patches-2.6.25/950-revert_conntrack_optimization.patch31
1 files changed, 0 insertions, 31 deletions
diff --git a/target/linux/generic-2.6/patches-2.6.25/950-revert_conntrack_optimization.patch b/target/linux/generic-2.6/patches-2.6.25/950-revert_conntrack_optimization.patch
deleted file mode 100644
index af3e3aaa8d..0000000000
--- a/target/linux/generic-2.6/patches-2.6.25/950-revert_conntrack_optimization.patch
+++ /dev/null
@@ -1,31 +0,0 @@
-Index: linux-2.6.25.4/net/netfilter/nf_conntrack_core.c
-===================================================================
---- linux-2.6.25.4.orig/net/netfilter/nf_conntrack_core.c
-+++ linux-2.6.25.4/net/netfilter/nf_conntrack_core.c
-@@ -73,19 +73,15 @@ static unsigned int nf_conntrack_hash_rn
- static u_int32_t __hash_conntrack(const struct nf_conntrack_tuple *tuple,
- unsigned int size, unsigned int rnd)
- {
-- unsigned int n;
-- u_int32_t h;
-+ unsigned int a, b;
-
-- /* The direction must be ignored, so we hash everything up to the
-- * destination ports (which is a multiple of 4) and treat the last
-- * three bytes manually.
-- */
-- n = (sizeof(tuple->src) + sizeof(tuple->dst.u3)) / sizeof(u32);
-- h = jhash2((u32 *)tuple, n,
-- rnd ^ (((__force __u16)tuple->dst.u.all << 16) |
-- tuple->dst.protonum));
-+ a = jhash2(tuple->src.u3.all, ARRAY_SIZE(tuple->src.u3.all),
-+ (tuple->src.l3num << 16) | tuple->dst.protonum);
-+ b = jhash2(tuple->dst.u3.all, ARRAY_SIZE(tuple->dst.u3.all),
-+ ((__force __u16)tuple->src.u.all << 16) |
-+ (__force __u16)tuple->dst.u.all);
-
-- return ((u64)h * size) >> 32;
-+ return ((u64)jhash_2words(a, b, rnd) * size) >> 32;
- }
-
- static inline u_int32_t hash_conntrack(const struct nf_conntrack_tuple *tuple)