aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_output.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/tcp_output.c')
-rw-r--r--net/ipv4/tcp_output.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c
index 696b0a168f16..6c74f2a39778 100644
--- a/net/ipv4/tcp_output.c
+++ b/net/ipv4/tcp_output.c
@@ -42,6 +42,8 @@
42#include <linux/gfp.h> 42#include <linux/gfp.h>
43#include <linux/module.h> 43#include <linux/module.h>
44 44
45#include <trace/events/tcp.h>
46
45/* People can turn this off for buggy TCP's found in printers etc. */ 47/* People can turn this off for buggy TCP's found in printers etc. */
46int sysctl_tcp_retrans_collapse __read_mostly = 1; 48int sysctl_tcp_retrans_collapse __read_mostly = 1;
47 49
@@ -2875,6 +2877,7 @@ int __tcp_retransmit_skb(struct sock *sk, struct sk_buff *skb, int segs)
2875 2877
2876 if (likely(!err)) { 2878 if (likely(!err)) {
2877 TCP_SKB_CB(skb)->sacked |= TCPCB_EVER_RETRANS; 2879 TCP_SKB_CB(skb)->sacked |= TCPCB_EVER_RETRANS;
2880 trace_tcp_retransmit_skb(sk, skb);
2878 } else if (err != -EBUSY) { 2881 } else if (err != -EBUSY) {
2879 NET_INC_STATS(sock_net(sk), LINUX_MIB_TCPRETRANSFAIL); 2882 NET_INC_STATS(sock_net(sk), LINUX_MIB_TCPRETRANSFAIL);
2880 } 2883 }