projects
/
linux-2.6-microblaze.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge tag 'kvmarm-for-v4.19' of git://git.kernel.org/pub/scm/linux/kernel/git/kvmarm...
[linux-2.6-microblaze.git]
/
include
/
net
/
netns
/
hash.h
1
/* SPDX-License-Identifier: GPL-2.0 */
2
#ifndef __NET_NS_HASH_H__
3
#define __NET_NS_HASH_H__
4
5
#include <asm/cache.h>
6
7
struct net;
8
9
static inline u32 net_hash_mix(const struct net *net)
10
{
11
#ifdef CONFIG_NET_NS
12
return (u32)(((unsigned long)net) >> ilog2(sizeof(*net)));
13
#else
14
return 0;
15
#endif
16
}
17
#endif