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