diff options
author | Eric Dumazet <edumazet@google.com> | 2015-03-18 17:05:33 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-03-18 22:00:34 -0400 |
commit | 6eada0110c8984477f5f1e57a0b7f7b2fc841e30 (patch) | |
tree | b7f6118fe6d137d56a2264fb81a8f5718236abb9 /include/linux/udp.h | |
parent | 8f6320de5f6a817ba360be6ae39f721c7f9b26fb (diff) |
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>
Diffstat (limited to 'include/linux/udp.h')
-rw-r--r-- | include/linux/udp.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/udp.h b/include/linux/udp.h index 247cfdcc4b08..87c094961bd5 100644 --- a/include/linux/udp.h +++ b/include/linux/udp.h | |||
@@ -34,7 +34,7 @@ static inline struct udphdr *inner_udp_hdr(const struct sk_buff *skb) | |||
34 | 34 | ||
35 | #define UDP_HTABLE_SIZE_MIN (CONFIG_BASE_SMALL ? 128 : 256) | 35 | #define UDP_HTABLE_SIZE_MIN (CONFIG_BASE_SMALL ? 128 : 256) |
36 | 36 | ||
37 | static inline int udp_hashfn(struct net *net, unsigned num, unsigned mask) | 37 | static inline u32 udp_hashfn(const struct net *net, u32 num, u32 mask) |
38 | { | 38 | { |
39 | return (num + net_hash_mix(net)) & mask; | 39 | return (num + net_hash_mix(net)) & mask; |
40 | } | 40 | } |