From: Pavel Emelyanov Date: Tue, 17 Jun 2008 00:14:11 +0000 (-0700) Subject: netns: introduce the net_hash_mix "salt" for hashes X-Git-Tag: v2.6.27-rc1~969^2~316 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b4419162aa6c4204843f3a13b48d9ab821d3167;p=pandora-kernel.git netns: introduce the net_hash_mix "salt" for hashes There are many possible ways to add this "salt", thus I made this patch to be the last in the series to change it if required. Currently I propose to use the struct net pointer itself as this salt, but since this pointer is most often cache-line aligned, shift this right to eliminate the bits, that are most often zeroed. After this, simply add this mix to prepared hashfn-s. For CONFIG_NET_NS=n case this salt is 0 and no changes in hashfn appear. Signed-off-by: Pavel Emelyanov Signed-off-by: David S. Miller --- Reading git-diff-tree failed