summaryrefslogtreecommitdiffstats
path: root/include/net/inet_hashtables.h
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2024-08-02 15:40:25 +0200
committerJakub Kicinski <kuba@kernel.org>2024-08-06 01:22:45 +0200
commita2dc7bee4f77266ebb8e3a8544fc5f7812835f8c (patch)
tree1620e27d95b2fef7450e3e150c0c29d31506dc8d /include/net/inet_hashtables.h
parentnet: netconsole: Fix MODULE_AUTHOR format (diff)
downloadlinux-a2dc7bee4f77266ebb8e3a8544fc5f7812835f8c.tar.xz
linux-a2dc7bee4f77266ebb8e3a8544fc5f7812835f8c.zip
inet: constify inet_sk_bound_dev_eq() net parameter
inet_sk_bound_dev_eq() and its callers do not modify the net structure. Signed-off-by: Eric Dumazet <edumazet@google.com> Reviewed-by: Simon Horman <horms@kernel.org> Link: https://patch.msgid.link/20240802134029.3748005-2-edumazet@google.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/net/inet_hashtables.h')
-rw-r--r--include/net/inet_hashtables.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/inet_hashtables.h b/include/net/inet_hashtables.h
index 7f1b38458743..1cc8b7ca20a1 100644
--- a/include/net/inet_hashtables.h
+++ b/include/net/inet_hashtables.h
@@ -351,7 +351,7 @@ static inline struct sock *inet_lookup_listener(struct net *net,
((__force __u64)(__be32)(__saddr)))
#endif /* __BIG_ENDIAN */
-static inline bool inet_match(struct net *net, const struct sock *sk,
+static inline bool inet_match(const struct net *net, const struct sock *sk,
const __addrpair cookie, const __portpair ports,
int dif, int sdif)
{