cregit-Linux how code gets into the kernel

Release 4.15 include/net/netns/hash.h

/* SPDX-License-Identifier: GPL-2.0 */
#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 Emelyanov5192.73%133.33%
Eric Dumazet35.45%133.33%
Greg Kroah-Hartman11.82%133.33%
Total55100.00%3100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.