Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ipv6: remove __inet6_csk_dst_check()

__inet6_csk_dst_check() is a very simple wrapper with no value,
it is used only once.

Directly use __sk_dst_check().

Signed-off-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20260127211203.1524339-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Eric Dumazet and committed by
Jakub Kicinski
2f80b279 5fc90003

+1 -7
+1 -7
net/ipv6/inet6_connection_sock.c
··· 55 55 return dst; 56 56 } 57 57 58 - static inline 59 - struct dst_entry *__inet6_csk_dst_check(struct sock *sk, u32 cookie) 60 - { 61 - return __sk_dst_check(sk, cookie); 62 - } 63 - 64 58 static struct dst_entry *inet6_csk_route_socket(struct sock *sk, 65 59 struct flowi6 *fl6) 66 60 { ··· 80 86 final_p = fl6_update_dst(fl6, rcu_dereference(np->opt), &final); 81 87 rcu_read_unlock(); 82 88 83 - dst = __inet6_csk_dst_check(sk, np->dst_cookie); 89 + dst = __sk_dst_check(sk, np->dst_cookie); 84 90 if (!dst) { 85 91 dst = ip6_dst_lookup_flow(sock_net(sk), sk, fl6, final_p); 86 92