From: Jason Xing Date: Fri, 2 Aug 2024 10:21:12 +0000 (+0800) Subject: tcp: rstreason: let it work finally in tcp_send_active_reset() X-Git-Tag: microblaze-v6.13~235^2~305^2 X-Git-Url: http://git.monstr.eu/?a=commitdiff_plain;h=ba0ca286c919508ac32d036509b082b3968c0bb2;p=linux-2.6-microblaze.git tcp: rstreason: let it work finally in tcp_send_active_reset() Now it's time to let it work by using the 'reason' parameter in the trace world :) Signed-off-by: Jason Xing Reviewed-by: Eric Dumazet Signed-off-by: David S. Miller --- diff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c index 16c48df8df4c..cdd0def14427 100644 --- a/net/ipv4/tcp_output.c +++ b/net/ipv4/tcp_output.c @@ -3649,7 +3649,7 @@ void tcp_send_active_reset(struct sock *sk, gfp_t priority, /* skb of trace_tcp_send_reset() keeps the skb that caused RST, * skb here is different to the troublesome skb, so use NULL */ - trace_tcp_send_reset(sk, NULL, SK_RST_REASON_NOT_SPECIFIED); + trace_tcp_send_reset(sk, NULL, reason); } /* Send a crossed SYN-ACK during socket establishment.