repo.or.cz
/
linux-btrfs-devel.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
[linux-btrfs-devel.git]
/
include
/
net
/
netns
/
hash.h
blob
548d78f2cc47edd419ac404edebbf9c58feac853
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
unsigned
net_hash_mix
(
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
(
unsigned
)(((
unsigned long
)
net
) >>
L1_CACHE_SHIFT
);
17
#else
18
return
0
;
19
#endif
20
}
21
#endif