linux_dsm_epyc7002/include/net/netns
Pavel Emelyanov 0b4419162a 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 <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2008-06-16 17:14:11 -07:00
..
core.h [SOCK][NETNS]: Add the percpu prot_inuse counter in the struct net. 2008-03-31 19:42:16 -07:00
dccp.h [NETNS][DCCPV6]: Move the dccp_v6_ctl_sk on the struct net. 2008-04-13 22:32:25 -07:00
generic.h [NETNS]: The generic per-net pointers. 2008-04-15 00:36:08 -07:00
hash.h netns: introduce the net_hash_mix "salt" for hashes 2008-06-16 17:14:11 -07:00
ipv4.h netfilter: ip_tables: add iptables security table for mandatory access control rules 2008-06-09 15:57:24 -07:00
ipv6.h netfilter: ip6_tables: add ip6tables security table 2008-06-09 15:58:05 -07:00
packet.h [NETNS]: separate af_packet netns data 2008-01-28 14:57:15 -08:00
unix.h [NETNS]: struct net content re-work (v3) 2008-01-28 14:57:14 -08:00
x_tables.h [NETFILTER]: x_tables: per-netns xt_tables 2008-01-31 19:27:35 -08:00