rtc: ds1307: add clock provider support for DS3231
[deliverable/linux.git] / include / net / netns / hash.h
1 #ifndef __NET_NS_HASH_H__
2 #define __NET_NS_HASH_H__
3
4 #include <asm/cache.h>
5
6 struct net;
7
8 static inline u32 net_hash_mix(const struct net *net)
9 {
10 #ifdef CONFIG_NET_NS
11 /*
12 * shift this right to eliminate bits, that are
13 * always zeroed
14 */
15
16 return (u32)(((unsigned long)net) >> L1_CACHE_SHIFT);
17 #else
18 return 0;
19 #endif
20 }
21 #endif
This page took 0.030114 seconds and 5 git commands to generate.