Linux 4.1.18
[linux/fpc-iii.git] / include / net / netns / hash.h
blob69a6715d9f3fd16c9a6e90f9be403ba0cba1f022
1 #ifndef __NET_NS_HASH_H__
2 #define __NET_NS_HASH_H__
4 #include <asm/cache.h>
6 struct net;
8 static inline u32 net_hash_mix(const struct net *net)
10 #ifdef CONFIG_NET_NS
12 * shift this right to eliminate bits, that are
13 * always zeroed
16 return (u32)(((unsigned long)net) >> L1_CACHE_SHIFT);
17 #else
18 return 0;
19 #endif
21 #endif