https://jxself.org/git/linux-libre.git
Raw File
Tip revision: 7f0f104d408143ccdd855ef31d64fd9c12652914 authored by Jason Self on 23 March 2009, 21:56:09 UTC
Linux-libre 2.6.28.9-gnu1
Tip revision: 7f0f104
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