summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2026-01-28 00:12:03 +0300
committerJakub Kicinski <kuba@kernel.org>2026-01-29 06:37:45 +0300
commit2f80b2797a63851a42328f98a5a61c951872e173 (patch)
treef3bbadff2035cee6e1ef796e7cb36712ada44b31
parent5fc90003de59b0f772a1654f5609fa5f87b4300f (diff)
downloadlinux-2f80b2797a63851a42328f98a5a61c951872e173.tar.xz
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>
-rw-r--r--net/ipv6/inet6_connection_sock.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/net/ipv6/inet6_connection_sock.c b/net/ipv6/inet6_connection_sock.c
index 3aedd51c9bdb..e30172e634a6 100644
--- a/net/ipv6/inet6_connection_sock.c
+++ b/net/ipv6/inet6_connection_sock.c
@@ -55,12 +55,6 @@ struct dst_entry *inet6_csk_route_req(const struct sock *sk,
return dst;
}
-static inline
-struct dst_entry *__inet6_csk_dst_check(struct sock *sk, u32 cookie)
-{
- return __sk_dst_check(sk, cookie);
-}
-
static struct dst_entry *inet6_csk_route_socket(struct sock *sk,
struct flowi6 *fl6)
{
@@ -86,7 +80,7 @@ static struct dst_entry *inet6_csk_route_socket(struct sock *sk,
final_p = fl6_update_dst(fl6, rcu_dereference(np->opt), &final);
rcu_read_unlock();
- dst = __inet6_csk_dst_check(sk, np->dst_cookie);
+ dst = __sk_dst_check(sk, np->dst_cookie);
if (!dst) {
dst = ip6_dst_lookup_flow(sock_net(sk), sk, fl6, final_p);