From: Eric Dumazet Date: Mon, 11 May 2026 07:23:09 +0000 (+0000) Subject: tcp: use SKB_DROP_REASON_IP_OUTNOROUTES in tcp_v6_send_response() X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=254084223f938b15e9b7a2707005096eecb3c3c2;p=thirdparty%2Fkernel%2Flinux.git tcp: use SKB_DROP_REASON_IP_OUTNOROUTES in tcp_v6_send_response() Replace a bare kfree_skb() with a modern sk_skb_reason_drop() call, and provide IP_OUTNOROUTES drop reason. Signed-off-by: Eric Dumazet Reviewed-by: David Ahern Reviewed-by: Kuniyuki Iwashima Link: https://patch.msgid.link/20260511072310.1094859-3-edumazet@google.com Signed-off-by: Jakub Kicinski --- diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c index d13d49bfef194..0d5e2b0a3f579 100644 --- a/net/ipv6/tcp_ipv6.c +++ b/net/ipv6/tcp_ipv6.c @@ -982,7 +982,7 @@ static void tcp_v6_send_response(const struct sock *sk, struct sk_buff *skb, u32 return; } - kfree_skb(buff); + sk_skb_reason_drop(sk, buff, SKB_DROP_REASON_IP_OUTNOROUTES); } static void tcp_v6_send_reset(const struct sock *sk, struct sk_buff *skb,