mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-27 12:32:50 +00:00
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>
This commit is contained in:
committed by
Jakub Kicinski
parent
10a6545f0b
commit
a2dc7bee4f
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user