-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 102983 b: refs/heads/master c: 0b44191 h: refs/heads/master i: 102981: c25b847 102979: f31747d 102975: 447ad72 v: v3
- Loading branch information
Pavel Emelyanov
authored and
David S. Miller
committed
Jun 17, 2008
1 parent
c806c0a
commit e621f63
Showing
6 changed files
with
31 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: 33de014c63646f69f36f3673e3b4676f931dc878 | ||
refs/heads/master: 0b4419162aa6c4204843f3a13b48d9ab821d3167 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#ifndef __NET_NS_HASH_H__ | ||
#define __NET_NS_HASH_H__ | ||
|
||
#include <asm/cache.h> | ||
|
||
struct net; | ||
|
||
static inline unsigned net_hash_mix(struct net *net) | ||
{ | ||
#ifdef CONFIG_NET_NS | ||
/* | ||
* shift this right to eliminate bits, that are | ||
* always zeroed | ||
*/ | ||
|
||
return (unsigned)(((unsigned long)net) >> L1_CACHE_SHIFT); | ||
#else | ||
return 0; | ||
#endif | ||
} | ||
#endif |