From: Florian Westphal Date: Thu, 20 Mar 2014 10:53:39 +0000 (+0100) Subject: netfilter: connlimit: move lock array out of struct connlimit_data X-Git-Tag: v3.15-rc1~47^2~10^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e00b437b3d6d4d26ecd95108b575ee1bcfcb478f;p=pandora-kernel.git netfilter: connlimit: move lock array out of struct connlimit_data Eric points out that the locks can be global. Moreover, both Jesper and Eric note that using only 32 locks increases false sharing as only two cache lines are used. This increases locks to 256 (16 cache lines assuming 64byte cacheline and 4 bytes per spinlock). Suggested-by: Jesper Dangaard Brouer Suggested-by: Eric Dumazet Signed-off-by: Florian Westphal Signed-off-by: Pablo Neira Ayuso --- Reading git-diff-tree failed