cregit-Linux how code gets into the kernel

Release 4.12 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 Emelyanov3792.50%150.00%
Eric Dumazet37.50%150.00%
Total40100.00%2100.00%

#endif

Overall Contributors

PersonTokensPropCommitsCommitProp
Pavel Emelyanov5194.44%150.00%
Eric 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.
Created with cregit.