Staging
v0.5.1
https://github.com/torvalds/linux
Raw File
Tip revision: 384703b8e6cd4c8ef08512e596024e028c91c339 authored by Linus Torvalds on 17 December 2011, 02:36:26 UTC
Linux 3.2-rc6
Tip revision: 384703b
hash.h
#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
back to top