Staging
v0.5.1
https://github.com/torvalds/linux
Raw File
Tip revision: 0882e8dd3aad33eca41696d463bb896e6c8817eb authored by Linus Torvalds on 14 April 2009, 20:51:48 UTC
Linux 2.6.30-rc2
Tip revision: 0882e8d
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