Message ID | 20230920172943.4135513-2-edumazet@google.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 5033f58d5feed1040eebeadb0c5efc95b8bf5720 |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | tcp: add tcp_delack_max() | expand |
diff --git a/include/net/sock.h b/include/net/sock.h index 56ac1abadea59e6734396a7ef2e22518a0ba80a1..2800d587b08ddc93d7d190ea71dd96a1a3591c1a 100644 --- a/include/net/sock.h +++ b/include/net/sock.h @@ -2141,14 +2141,14 @@ static inline bool sk_rethink_txhash(struct sock *sk) } static inline struct dst_entry * -__sk_dst_get(struct sock *sk) +__sk_dst_get(const struct sock *sk) { return rcu_dereference_check(sk->sk_dst_cache, lockdep_sock_is_held(sk)); } static inline struct dst_entry * -sk_dst_get(struct sock *sk) +sk_dst_get(const struct sock *sk) { struct dst_entry *dst;
Both helpers only read fields from their socket argument. Signed-off-by: Eric Dumazet <edumazet@google.com> --- include/net/sock.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)