inet: constify 'struct net' parameter of various lookup helpers
authorEric Dumazet <edumazet@google.com>
Fri, 2 Aug 2024 13:40:26 +0000 (13:40 +0000)
committerJakub Kicinski <kuba@kernel.org>
Mon, 5 Aug 2024 23:22:45 +0000 (16:22 -0700)
commitd4433e8b405a882fa2ef29601c4ad262ba6e5526
treecf1a933bc8ee1fee79195cbb04bad6ae54d5763f
parenta2dc7bee4f77266ebb8e3a8544fc5f7812835f8c
inet: constify 'struct net' parameter of various lookup helpers

Following helpers do not touch their struct net argument:

- bpf_sk_lookup_run_v4()
- inet_lookup_reuseport()
- inet_lhash2_lookup()
- inet_lookup_run_sk_lookup()
- __inet_lookup_listener()
- __inet_lookup_established()

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20240802134029.3748005-3-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/linux/filter.h
include/net/inet_hashtables.h
net/ipv4/inet_hashtables.c