net: constify 'struct net' parameter of socket lookups
Subsystems (7)
cover net: constify 'struct net' parameter of socket lookups
We should keep const qualifiers whenever possible.
This series should remove the need for Tom patch in :
Eric Dumazet (5):
inet: constify inet_sk_bound_dev_eq() net parameter
inet: constify 'struct net' parameter of various lookup helpers
udp: constify 'struct net' parameter of socket lookups
inet6: constify 'struct net' parameter of various lookup helpers
ipv6: udp: constify 'struct net' parameter of socket lookups
include/linux/filter.h | 4 ++-- include/net/inet6_hashtables.h | 14 +++++++------- include/net/inet_hashtables.h | 10 +++++----- include/net/inet_sock.h | 3 ++- include/net/ipv6_stubs.h | 2 +- include/net/udp.h | 14 ++++++++------ net/ipv4/inet_hashtables.c | 12 ++++++------ net/ipv4/udp.c | 8 ++++---- net/ipv6/inet6_hashtables.c | 15 ++++++++------- net/ipv6/udp.c | 8 ++++---- 10 files changed, 47 insertions(+), 43 deletions(-)
Signature · 1 line
2.46.0.rc2.264.g509ed76dc8-goog
PATCH 1/5 inet: constify inet_sk_bound_dev_eq() net parameter
inet_sk_bound_dev_eq() and its callers do not modify the net structure.
--- include/net/inet6_hashtables.h | 2 +- include/net/inet_hashtables.h | 2 +- include/net/inet_sock.h | 3 ++- net/ipv4/inet_hashtables.c | 2 +- net/ipv6/inet6_hashtables.c | 2 +- 5 files changed, 6 insertions(+), 5 deletions(-)
include/net/inet6_hashtables.h +1 -1
@@ -175,7 +175,7 @@ struct sock *inet6_lookup(struct net *net, struct inet_hashinfo *hashinfo,int inet6_hash (struct sock *sk); -static inline bool inet6_match(struct net *net, const struct sock *sk, +static inline bool inet6_match(const struct net *net, const struct sock *sk, const struct in6_addr *saddr, const struct in6_addr *daddr, const __portpair ports,
include/net/inet_hashtables.h +1 -1
@@ -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) {
include/net/inet_sock.h +2 -1
@@ -150,7 +150,8 @@ static inline bool inet_bound_dev_eq(bool l3mdev_accept, int bound_dev_if,return bound_dev_if == dif || bound_dev_if == sdif; } -static inline bool inet_sk_bound_dev_eq (struct net *net,int bound_dev_if, +static inline bool inet_sk_bound_dev_eq (const struct net *net, +int bound_dev_if,int dif,int sdif) {#if IS_ENABLED (CONFIG_NET_L3_MASTER_DEV )
net/ipv4/inet_hashtables.c +1 -1
@@ -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) {
net/ipv6/inet6_hashtables.c +1 -1
@@ -89,7 +89,7 @@ struct sock *__inet6_lookup_established(struct net *net, }EXPORT_SYMBOL (__inet6_lookup_established); -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 struct in6_addr *daddr,const int dif,const int sdif)
Signature · 1 line
2.46.0.rc2.264.g509ed76dc8-goog
Re: [PATCH net-next 1/5] inet: constify inet_sk_bound_dev_eq() net parameter
Quoted 3 lines · Eric Dumazet
inet_sk_bound_dev_eq()and its callers do not modify the net structure.Signed-off-by Eric Dumazet <[email protected]>
PATCH 2/5 inet: constify 'struct net' parameter of various lookup helpers
In reply to Eric DumazetFollowing 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()
--- include/linux/filter.h | 2 +- include/net/inet_hashtables.h | 8 ++++---- net/ipv4/inet_hashtables.c | 10 +++++----- 3 files changed, 10 insertions(+), 10 deletions(-)
include/linux/filter.h +1 -1
@@ -1616,7 +1616,7 @@ extern struct static_key_false bpf_sk_lookup_enabled; _all_pass || _selected_sk ?SK_PASS :SK_DROP ; \ }) -static inline bool bpf_sk_lookup_run_v4 (struct net *net,int protocol, +static inline bool bpf_sk_lookup_run_v4 (const struct net *net,int protocol,const __be32 saddr,const __be16 sport,const __be32 daddr,const u16 dport,const int ifindex,struct sock **psk)
include/net/inet_hashtables.h +4 -4
@@ -304,7 +304,7 @@ int __inet_hash(struct sock *sk, struct sock *osk);int inet_hash (struct sock *sk);void inet_unhash (struct sock *sk); -struct sock *__inet_lookup_listener(struct net *net, +struct sock *__inet_lookup_listener(const struct net *net, struct inet_hashinfo *hashinfo, struct sk_buff *skb, int doff, const __be32 saddr, const __be16 sport,
@@ -368,7 +368,7 @@ static inline bool inet_match(const struct net *net, const struct sock *sk,/* Sockets in TCP_CLOSE state are _always_ taken out of the hash, so we need * not check it for lookups anymore, thanks Alexey. -DaveM */ -struct sock *__inet_lookup_established(struct net *net, +struct sock *__inet_lookup_established(const struct net *net, struct inet_hashinfo *hashinfo, const __be32 saddr, const __be16 sport, const __be32 daddr, const u16 hnum,
@@ -382,13 +382,13 @@ inet_ehashfn_t inet_ehashfn; INDIRECT_CALLABLE_DECLARE(inet_ehashfn_t udp_ehashfn); -struct sock *inet_lookup_reuseport (struct net *net,struct sock *sk, +struct sock *inet_lookup_reuseport (const struct net *net,struct sock *sk,struct sk_buff *skb,int doff,__be32 saddr,__be16 sport,__be32 daddr,unsigned short hnum,inet_ehashfn_t *ehashfn); -struct sock *inet_lookup_run_sk_lookup(struct net *net, +struct sock *inet_lookup_run_sk_lookup(const struct net *net, int protocol, struct sk_buff *skb, int doff, __be32 saddr, __be16 sport,
net/ipv4/inet_hashtables.c +5 -5
@@ -348,7 +348,7 @@ static inline int compute_score(struct sock *sk, const struct net *net,* Return: NULL if sk doesn't have SO_REUSEPORT set, otherwise a pointer to * the selected sock or an error. */ -struct sock *inet_lookup_reuseport(struct net *net, struct sock *sk, +struct sock *inet_lookup_reuseport(const struct net *net, struct sock *sk, struct sk_buff *skb, int doff, __be32 saddr, __be16 sport, __be32 daddr, unsigned short hnum,
@@ -374,7 +374,7 @@ EXPORT_SYMBOL_GPL(inet_lookup_reuseport);*/ /* called with rcu_read_lock() : No refcount taken on the socket */ -static struct sock *inet_lhash2_lookup(struct net *net, +static struct sock *inet_lhash2_lookup(const struct net *net, struct inet_listen_hashbucket *ilb2, struct sk_buff *skb, int doff, const __be32 saddr, __be16 sport,
@@ -401,7 +401,7 @@ static struct sock *inet_lhash2_lookup(struct net *net,return result; } -struct sock *inet_lookup_run_sk_lookup(struct net *net, +struct sock *inet_lookup_run_sk_lookup(const struct net *net, int protocol, struct sk_buff *skb, int doff, __be32 saddr, __be16 sport,
@@ -423,7 +423,7 @@ struct sock *inet_lookup_run_sk_lookup(struct net *net,return sk; } -struct sock *__inet_lookup_listener(struct net *net, +struct sock *__inet_lookup_listener(const struct net *net, struct inet_hashinfo *hashinfo, struct sk_buff *skb, int doff, const __be32 saddr, __be16 sport,
@@ -488,7 +488,7 @@ void sock_edemux(struct sk_buff *skb) }EXPORT_SYMBOL (sock_edemux); -struct sock *__inet_lookup_established(struct net *net, +struct sock *__inet_lookup_established(const struct net *net, struct inet_hashinfo *hashinfo, const __be32 saddr, const __be16 sport, const __be32 daddr, const u16 hnum,
Signature · 1 line
2.46.0.rc2.264.g509ed76dc8-goog
Re: [PATCH net-next 2/5] inet: constify 'struct net' parameter of various lookup helpers
Quoted 10 lines · Eric Dumazet
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 <[email protected]>
PATCH 3/5 udp: constify 'struct net' parameter of socket lookups
In reply to Eric DumazetFollowing helpers do not touch their 'struct net' argument.
- udp_sk_bound_dev_eq()
- udp4_lib_lookup()
- __udp4_lib_lookup()
--- include/net/udp.h | 10 ++++++---- net/ipv4/udp.c | 8 ++++---- 2 files changed, 10 insertions(+), 8 deletions(-)
include/net/udp.h +6 -4
@@ -79,7 +79,8 @@ struct udp_table {extern struct udp_table udp_table;void udp_table_init (struct udp_table *,const char *);static inline struct udp_hslot *udp_hashslot (struct udp_table *table, -struct net *net,unsigned int num) +const struct net *net, +unsigned int num) {return &table->hash[udp_hashfn (net, num, table->mask)]; }
@@ -245,7 +246,7 @@ static inline int udp_rqueue_get(struct sock *sk)return sk_rmem_alloc_get (sk) -READ_ONCE (udp_sk (sk)->forward_deficit); } -static inline bool udp_sk_bound_dev_eq (struct net *net,int bound_dev_if, +static inline bool udp_sk_bound_dev_eq (const struct net *net,int bound_dev_if,int dif,int sdif) {#if IS_ENABLED (CONFIG_NET_L3_MASTER_DEV )
@@ -296,9 +297,10 @@ int udp_lib_getsockopt(struct sock *sk, int level, int optname,int udp_lib_setsockopt (struct sock *sk,int level,int optname,sockptr_t optval,unsigned int optlen,int (*push_pending_frames)(struct sock *)); -struct sock *udp4_lib_lookup (struct net *net,__be32 saddr,__be16 sport, +struct sock *udp4_lib_lookup (const struct net *net,__be32 saddr,__be16 sport,__be32 daddr,__be16 dport,int dif); -struct sock *__udp4_lib_lookup (struct net *net,__be32 saddr,__be16 sport, +struct sock *__udp4_lib_lookup (const struct net *net,__be32 saddr, +__be16 sport,__be32 daddr,__be16 dport,int dif,int sdif,struct udp_table *tbl,struct sk_buff *skb); struct sock *udp4_lib_lookup_skb(const struct sk_buff *skb,
net/ipv4/udp.c +4 -4
@@ -365,7 +365,7 @@ int udp_v4_get_port(struct sock *sk, unsigned short snum)return udp_lib_get_port (sk, snum, hash2_nulladdr); } -static int compute_score (struct sock *sk,struct net *net, +static int compute_score (struct sock *sk,const struct net *net,__be32 saddr,__be16 sport,__be32 daddr,unsigned short hnum,int dif,int sdif)
@@ -420,7 +420,7 @@ u32 udp_ehashfn(const struct net *net, const __be32 laddr, const __u16 lport, }/* called with rcu_read_lock() */ -static struct sock *udp4_lib_lookup2(struct net *net, +static struct sock *udp4_lib_lookup2(const struct net *net, __be32 saddr, __be16 sport, __be32 daddr, unsigned int hnum, int dif, int sdif,
@@ -480,7 +480,7 @@ static struct sock *udp4_lib_lookup2(struct net *net,/* UDP is nearly always wildcards out the wazoo, it makes no sense to try * harder than this. -DaveM */ -struct sock *__udp4_lib_lookup (struct net *net,__be32 saddr, +struct sock *__udp4_lib_lookup (const struct net *net,__be32 saddr,__be16 sport,__be32 daddr,__be16 dport,int dif,int sdif,struct udp_table *udptable,struct sk_buff *skb) {
@@ -561,7 +561,7 @@ struct sock *udp4_lib_lookup_skb(const struct sk_buff *skb,* Does increment socket refcount. */ #if IS_ENABLED (CONFIG_NF_TPROXY_IPV4 ) ||IS_ENABLED (CONFIG_NF_SOCKET_IPV4 ) -struct sock *udp4_lib_lookup (struct net *net,__be32 saddr,__be16 sport, +struct sock *udp4_lib_lookup (const struct net *net,__be32 saddr,__be16 sport,__be32 daddr,__be16 dport,int dif) {struct sock *sk;
Signature · 1 line
2.46.0.rc2.264.g509ed76dc8-goog
Re: [PATCH net-next 3/5] udp: constify 'struct net' parameter of socket lookups
Quoted 7 lines · Eric Dumazet
Following helpers do not touch their 'struct net' argument.
-
udp_sk_bound_dev_eq()
-udp4_lib_lookup()
-__udp4_lib_lookup()Signed-off-by Eric Dumazet <[email protected]>
PATCH 4/5 inet6: constify 'struct net' parameter of various lookup helpers
In reply to Eric DumazetFollowing helpers do not touch their struct net argument:
- bpf_sk_lookup_run_v6()
- __inet6_lookup_established()
- inet6_lookup_reuseport()
- inet6_lookup_listener()
- inet6_lookup_run_sk_lookup()
- __inet6_lookup()
- inet6_lookup()
--- include/linux/filter.h | 2 +- include/net/inet6_hashtables.h | 12 ++++++------ net/ipv6/inet6_hashtables.c | 13 +++++++------ 3 files changed, 14 insertions(+), 13 deletions(-)
include/linux/filter.h +1 -1
@@ -1653,7 +1653,7 @@ static inline bool bpf_sk_lookup_run_v4(const struct net *net, int protocol, }#if IS_ENABLED (CONFIG_IPV6 ) -static inline bool bpf_sk_lookup_run_v6(struct net *net, int protocol, +static inline bool bpf_sk_lookup_run_v6(const struct net *net, int protocol, const struct in6_addr *saddr, const __be16 sport, const struct in6_addr *daddr,
include/net/inet6_hashtables.h +6 -6
@@ -40,7 +40,7 @@ static inline unsigned int __inet6_ehashfn(const u32 lhash,* * The sockhash lock must be held as a reader here. */ -struct sock *__inet6_lookup_established(struct net *net, +struct sock *__inet6_lookup_established(const struct net *net, struct inet_hashinfo *hashinfo, const struct in6_addr *saddr, const __be16 sport,
@@ -56,7 +56,7 @@ inet6_ehashfn_t inet6_ehashfn; INDIRECT_CALLABLE_DECLARE(inet6_ehashfn_t udp6_ehashfn); -struct sock *inet6_lookup_reuseport(struct net *net, struct sock *sk, +struct sock *inet6_lookup_reuseport(const struct net *net, struct sock *sk, struct sk_buff *skb, int doff, const struct in6_addr *saddr, __be16 sport,
@@ -64,7 +64,7 @@ struct sock *inet6_lookup_reuseport(struct net *net, struct sock *sk,unsigned short hnum, inet6_ehashfn_t *ehashfn); -struct sock *inet6_lookup_listener(struct net *net, +struct sock *inet6_lookup_listener(const struct net *net, struct inet_hashinfo *hashinfo, struct sk_buff *skb, int doff, const struct in6_addr *saddr,
@@ -73,7 +73,7 @@ struct sock *inet6_lookup_listener(struct net *net,const unsigned short hnum, const int dif, const int sdif); -struct sock *inet6_lookup_run_sk_lookup(struct net *net, +struct sock *inet6_lookup_run_sk_lookup(const struct net *net, int protocol, struct sk_buff *skb, int doff, const struct in6_addr *saddr,
@@ -82,7 +82,7 @@ struct sock *inet6_lookup_run_sk_lookup(struct net *net, const u16 hnum, const int dif, inet6_ehashfn_t *ehashfn); -static inline struct sock *__inet6_lookup(struct net *net, +static inline struct sock *__inet6_lookup(const struct net *net, struct inet_hashinfo *hashinfo, struct sk_buff *skb, int doff, const struct in6_addr *saddr,
@@ -167,7 +167,7 @@ static inline struct sock *__inet6_lookup_skb(struct inet_hashinfo *hashinfo, iif, sdif, refcounted); } -struct sock *inet6_lookup(struct net *net, struct inet_hashinfo *hashinfo, +struct sock *inet6_lookup(const struct net *net, struct inet_hashinfo *hashinfo, struct sk_buff *skb, int doff, const struct in6_addr *saddr, const __be16 sport, const struct in6_addr *daddr, const __be16 dport,
net/ipv6/inet6_hashtables.c +7 -6
@@ -46,7 +46,7 @@ EXPORT_SYMBOL_GPL(inet6_ehashfn);* * The sockhash lock must be held as a reader here. */ -struct sock *__inet6_lookup_established(struct net *net, +struct sock *__inet6_lookup_established(const struct net *net, struct inet_hashinfo *hashinfo, const struct in6_addr *saddr, const __be16 sport,
@@ -126,7 +126,7 @@ static inline int compute_score(struct sock *sk, const struct net *net,* Return: NULL if sk doesn't have SO_REUSEPORT set, otherwise a pointer to * the selected sock or an error. */ -struct sock *inet6_lookup_reuseport(struct net *net, struct sock *sk, +struct sock *inet6_lookup_reuseport(const struct net *net, struct sock *sk, struct sk_buff *skb, int doff, const struct in6_addr *saddr, __be16 sport,
@@ -147,7 +147,7 @@ struct sock *inet6_lookup_reuseport(struct net *net, struct sock *sk,EXPORT_SYMBOL_GPL (inet6_lookup_reuseport);/* called with rcu_read_lock() */ -static struct sock *inet6_lhash2_lookup(struct net *net, +static struct sock *inet6_lhash2_lookup(const struct net *net, struct inet_listen_hashbucket *ilb2, struct sk_buff *skb, int doff, const struct in6_addr *saddr,
@@ -174,7 +174,7 @@ static struct sock *inet6_lhash2_lookup(struct net *net,return result; } -struct sock *inet6_lookup_run_sk_lookup(struct net *net, +struct sock *inet6_lookup_run_sk_lookup(const struct net *net, int protocol, struct sk_buff *skb, int doff, const struct in6_addr *saddr,
@@ -199,7 +199,7 @@ struct sock *inet6_lookup_run_sk_lookup(struct net *net, }EXPORT_SYMBOL_GPL (inet6_lookup_run_sk_lookup); -struct sock *inet6_lookup_listener(struct net *net, +struct sock *inet6_lookup_listener(const struct net *net, struct inet_hashinfo *hashinfo, struct sk_buff *skb, int doff, const struct in6_addr *saddr,
@@ -243,7 +243,8 @@ struct sock *inet6_lookup_listener(struct net *net, }EXPORT_SYMBOL_GPL (inet6_lookup_listener); -struct sock *inet6_lookup(struct net *net, struct inet_hashinfo *hashinfo, +struct sock *inet6_lookup(const struct net *net, + struct inet_hashinfo *hashinfo, struct sk_buff *skb, int doff, const struct in6_addr *saddr, const __be16 sport, const struct in6_addr *daddr, const __be16 dport,
Signature · 1 line
2.46.0.rc2.264.g509ed76dc8-goog
Re: [PATCH net-next 4/5] inet6: constify 'struct net' parameter of various lookup helpers
Quoted 11 lines · Eric Dumazet
Following helpers do not touch their struct net argument:
-
bpf_sk_lookup_run_v6()
-__inet6_lookup_established()
-inet6_lookup_reuseport()
-inet6_lookup_listener()
-inet6_lookup_run_sk_lookup()
-__inet6_lookup()
-inet6_lookup()Signed-off-by Eric Dumazet <[email protected]>
PATCH 5/5 ipv6: udp: constify 'struct net' parameter of socket lookups
In reply to Eric DumazetFollowing helpers do not touch their 'struct net' argument.
- udp6_lib_lookup()
- __udp6_lib_lookup()
--- include/net/ipv6_stubs.h | 2 +- include/net/udp.h | 4 ++-- net/ipv6/udp.c | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-)
include/net/ipv6_stubs.h +1 -1
@@ -82,7 +82,7 @@ extern const struct ipv6_stub *ipv6_stub __read_mostly;struct ipv6_bpf_stub {int (*inet6_bind)(struct sock *sk,struct sockaddr *uaddr,int addr_len,u32 flags); - struct sock *(*udp6_lib_lookup)(struct net *net, + struct sock *(*udp6_lib_lookup)(const struct net *net, const struct in6_addr *saddr, __be16 sport, const struct in6_addr *daddr, __be16 dport, int dif, int sdif, struct udp_table *tbl,
include/net/udp.h +2 -2
@@ -305,11 +305,11 @@ struct sock *__udp4_lib_lookup(const struct net *net, __be32 saddr, struct udp_table *tbl, struct sk_buff *skb);struct sock *udp4_lib_lookup_skb (const struct sk_buff *skb,__be16 sport,__be16 dport); -struct sock *udp6_lib_lookup (struct net *net, +struct sock *udp6_lib_lookup (const struct net *net,const struct in6_addr *saddr,__be16 sport,const struct in6_addr *daddr,__be16 dport,int dif); -struct sock *__udp6_lib_lookup(struct net *net, +struct sock *__udp6_lib_lookup(const struct net *net, const struct in6_addr *saddr, __be16 sport, const struct in6_addr *daddr, __be16 dport, int dif, int sdif, struct udp_table *tbl,
net/ipv6/udp.c +4 -4
@@ -114,7 +114,7 @@ void udp_v6_rehash(struct sock *sk)udp_lib_rehash (sk, new_hash); } -static int compute_score (struct sock *sk,struct net *net, +static int compute_score (struct sock *sk,const struct net *net,const struct in6_addr *saddr,__be16 sport,const struct in6_addr *daddr,unsigned short hnum,int dif,int sdif)
@@ -160,7 +160,7 @@ static int compute_score(struct sock *sk, struct net *net, }/* called with rcu_read_lock() */ -static struct sock *udp6_lib_lookup2(struct net *net, +static struct sock *udp6_lib_lookup2(const struct net *net, const struct in6_addr *saddr, __be16 sport, const struct in6_addr *daddr, unsigned int hnum, int dif, int sdif, struct udp_hslot *hslot2,
@@ -217,7 +217,7 @@ static struct sock *udp6_lib_lookup2(struct net *net, }/* rcu_read_lock() must be held */ -struct sock *__udp6_lib_lookup(struct net *net, +struct sock *__udp6_lib_lookup(const struct net *net, const struct in6_addr *saddr, __be16 sport, const struct in6_addr *daddr, __be16 dport, int dif, int sdif, struct udp_table *udptable,
@@ -300,7 +300,7 @@ struct sock *udp6_lib_lookup_skb(const struct sk_buff *skb,* Does increment socket refcount. */ #if IS_ENABLED (CONFIG_NF_TPROXY_IPV6 ) ||IS_ENABLED (CONFIG_NF_SOCKET_IPV6 ) -struct sock *udp6_lib_lookup (struct net *net,const struct in6_addr *saddr,__be16 sport, +struct sock *udp6_lib_lookup (const struct net *net,const struct in6_addr *saddr,__be16 sport,const struct in6_addr *daddr,__be16 dport,int dif) {struct sock *sk;
Signature · 1 line
2.46.0.rc2.264.g509ed76dc8-goog
Re: [PATCH net-next 5/5] ipv6: udp: constify 'struct net' parameter of socket lookups
Quoted 6 lines · Eric Dumazet
Following helpers do not touch their 'struct net' argument.
-
udp6_lib_lookup()
-__udp6_lib_lookup()Signed-off-by Eric Dumazet <[email protected]>
This series was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Hello:
This series was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Quoted 6 lines · On Fri, 2 Aug 2024 13:40:24 +0000 you wrote:
We should keep const qualifiers whenever possible.
This series should remove the need for Tom patch in :
Quoted 8 lines
Eric Dumazet (5):
inet: constifyinet_sk_bound_dev_eq()net parameter
inet: constify 'struct net' parameter of various lookup helpers
udp: constify 'struct net' parameter of socket lookups
inet6: constify 'struct net' parameter of various lookup helpers
ipv6: udp: constify 'struct net' parameter of socket lookups[...]
Here is the summary with links:
- [net-next,1/5] inet: constify inet_sk_bound_dev_eq() net parameter
https://git.kernel.org/netdev/net-next/c/a2dc7bee4f77 - [net-next,2/5] inet: constify 'struct net' parameter of various lookup helpers https://git.kernel.org/netdev/net-next/c/d4433e8b405a - [net-next,3/5] udp: constify 'struct net' parameter of socket lookups https://git.kernel.org/netdev/net-next/c/b9abcbb1239c - [net-next,4/5] inet6: constify 'struct net' parameter of various lookup helpers https://git.kernel.org/netdev/net-next/c/10b2a44ccb0c - [net-next,5/5] ipv6: udp: constify 'struct net' parameter of socket lookups https://git.kernel.org/netdev/net-next/c/87d973e8ddee
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html