xref: /openbmc/linux/include/net/netns/hash.h (revision 355b9855)
1b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */
20b441916SPavel Emelyanov #ifndef __NET_NS_HASH_H__
30b441916SPavel Emelyanov #define __NET_NS_HASH_H__
40b441916SPavel Emelyanov 
5355b9855SEric Dumazet #include <net/net_namespace.h>
60b441916SPavel Emelyanov 
net_hash_mix(const struct net * net)76eada011SEric Dumazet static inline u32 net_hash_mix(const struct net *net)
80b441916SPavel Emelyanov {
9355b9855SEric Dumazet 	return net->hash_mix;
100b441916SPavel Emelyanov }
110b441916SPavel Emelyanov #endif
12