cregit-Linux how code gets into the kernel

Release 4.7 include/net/netns/hash.h

#ifndef __NET_NS_HASH_H__

#define __NET_NS_HASH_H__

#include <asm/cache.h>

struct net;


static inline u32 net_hash_mix(const struct net *net) { #ifdef CONFIG_NET_NS /* * shift this right to eliminate bits, that are * always zeroed */ return (u32)(((unsigned long)net) >> L1_CACHE_SHIFT); #else return 0; #endif }

Contributors

PersonTokensPropCommitsCommitProp
pavel emelianovpavel emelianov3792.50%150.00%
eric dumazeteric dumazet37.50%150.00%
Total40100.00%2100.00%

#endif

Overall Contributors

PersonTokensPropCommitsCommitProp
pavel emelianovpavel emelianov5194.44%150.00%
eric dumazeteric dumazet35.56%150.00%
Total54100.00%2100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
{% endraw %}