aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_output.c
diff options
context:
space:
mode:
authorSong Liu <songliubraving@fb.com>2017-10-23 12:20:24 -0400
committerDavid S. Miller <davem@davemloft.net>2017-10-23 20:21:25 -0400
commitc24b14c46bb88d844275de5c4024c8745ae89d42 (patch)
tree154799c41e973a6e11af451da070719d5fab8a64 /net/ipv4/tcp_output.c
parent7344e29f285a94b965075599731811c352f3ab40 (diff)
tcp: add tracepoint trace_tcp_send_reset
New tracepoint trace_tcp_send_reset is added and called from tcp_v4_send_reset(), tcp_v6_send_reset() and tcp_send_active_reset(). Signed-off-by: Song Liu <songliubraving@fb.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_output.c')
-rw-r--r--net/ipv4/tcp_output.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c
index 988733f289c8..1f01f4c9c738 100644
--- a/net/ipv4/tcp_output.c
+++ b/net/ipv4/tcp_output.c
@@ -3084,6 +3084,11 @@ void tcp_send_active_reset(struct sock *sk, gfp_t priority)
3084 /* Send it off. */ 3084 /* Send it off. */
3085 if (tcp_transmit_skb(sk, skb, 0, priority)) 3085 if (tcp_transmit_skb(sk, skb, 0, priority))
3086 NET_INC_STATS(sock_net(sk), LINUX_MIB_TCPABORTFAILED); 3086 NET_INC_STATS(sock_net(sk), LINUX_MIB_TCPABORTFAILED);
3087
3088 /* skb of trace_tcp_send_reset() keeps the skb that caused RST,
3089 * skb here is different to the troublesome skb, so use NULL
3090 */
3091 trace_tcp_send_reset(sk, NULL);
3087} 3092}
3088 3093
3089/* Send a crossed SYN-ACK during socket establishment. 3094/* Send a crossed SYN-ACK during socket establishment.