GITLAB

에프에이리눅스 / 1611_0007_prime_oven

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
fa41bb40d6beb9ee34f40b9e23bd91c7236dcbb3
  • 1611_0007_prime_oven
  • kernel
  • linux-imx6_3.14.28
  • include
  • net
  • netns
  • hash.h
  • 6b13f685e   BSP 최초 추가 Browse Code »
    김민수
    9 years ago  
hash.h 340 Bytes
edit raw blame history
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
#ifndef __NET_NS_HASH_H__
#define __NET_NS_HASH_H__

#include <asm/cache.h>

struct net;

static inline unsigned int 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