diff options
author | Eric Dumazet <edumazet@google.com> | 2024-08-02 16:40:25 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-08-06 02:22:45 +0300 |
commit | a2dc7bee4f77266ebb8e3a8544fc5f7812835f8c (patch) | |
tree | 1620e27d95b2fef7450e3e150c0c29d31506dc8d /net/ipv4/inet_hashtables.c | |
parent | 10a6545f0bdcbb920c6a8a033fe342111d204915 (diff) | |
download | linux-a2dc7bee4f77266ebb8e3a8544fc5f7812835f8c.tar.xz |
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 'net/ipv4/inet_hashtables.c')
-rw-r--r-- | net/ipv4/inet_hashtables.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/inet_hashtables.c b/net/ipv4/inet_hashtables.c index 48d0d494185b..3d913dbd0284 100644 --- a/net/ipv4/inet_hashtables.c +++ b/net/ipv4/inet_hashtables.c @@ -310,7 +310,7 @@ inet_lhash2_bucket_sk(struct inet_hashinfo *h, struct sock *sk) return inet_lhash2_bucket(h, hash); } -static inline int compute_score(struct sock *sk, struct net *net, +static inline int compute_score(struct sock *sk, const struct net *net, const unsigned short hnum, const __be32 daddr, const int dif, const int sdif) { |