https://jxself.org/git/linux-libre.git
Raw File
Tip revision: 88583e8a2d7e64f7f2f6132766e93cc754fac9c2 authored by Jason Self on 09 August 2012, 15:28:23 UTC
Linux-libre 3.0.40-gnu1
Tip revision: 88583e8
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