mirror of
https://github.com/torvalds/linux.git
synced 2026-07-28 01:55:51 +02:00
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 <edumazet@google.com> Reviewed-by: David Ahern <dsahern@kernel.org> Reviewed-by: Kuniyuki Iwashima <kuniyu@google.com> Link: https://patch.msgid.link/20260511072310.1094859-3-edumazet@google.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
5c4b709b5f
commit
254084223f
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user