]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: NFQUEUE: don't xor src/dst ip address for load distribution
authorFlorian Westphal <fw@strlen.de>
Mon, 4 Jun 2012 02:53:54 +0000 (02:53 +0000)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 7 Jun 2012 12:58:42 +0000 (14:58 +0200)
commit3b55d2057e01938a3a0da0c4aa11b8af8c7226bc
treecbbd5784e577c7538545f2c11d2320fbd3b543e0
parent7bbb706a9e825dba687381a4b80a0a037fc5fa1d
netfilter: NFQUEUE: don't xor src/dst ip address for load distribution

because reply packets need to go to the same nfqueue, src/dst ip
address were xor'd prior to jhash().

However, this causes bad distribution for some workloads, e.g.
flows a.b.1.{1,n} -> a.b.2.{1,n} all share the same hash value.

Avoid this by hashing both. To get same hash for replies,
first argument is the smaller address.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/xt_NFQUEUE.c