mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-22 06:32:08 +00:00
netns: constify net_hash_mix() and various callers
const qualifiers ease code review by making clear which objects are not written in a function. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
8f6320de5f
commit
6eada0110c
9 changed files with 31 additions and 31 deletions
|
@ -34,7 +34,7 @@ static inline struct udphdr *inner_udp_hdr(const struct sk_buff *skb)
|
|||
|
||||
#define UDP_HTABLE_SIZE_MIN (CONFIG_BASE_SMALL ? 128 : 256)
|
||||
|
||||
static inline int udp_hashfn(struct net *net, unsigned num, unsigned mask)
|
||||
static inline u32 udp_hashfn(const struct net *net, u32 num, u32 mask)
|
||||
{
|
||||
return (num + net_hash_mix(net)) & mask;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue