aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_timer.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/tcp_timer.c')
-rw-r--r--net/ipv4/tcp_timer.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/net/ipv4/tcp_timer.c b/net/ipv4/tcp_timer.c
index 6db3124cdbda..257abdde23b0 100644
--- a/net/ipv4/tcp_timer.c
+++ b/net/ipv4/tcp_timer.c
@@ -213,11 +213,18 @@ static int tcp_write_timeout(struct sock *sk)
213 icsk->icsk_user_timeout); 213 icsk->icsk_user_timeout);
214 } 214 }
215 tcp_fastopen_active_detect_blackhole(sk, expired); 215 tcp_fastopen_active_detect_blackhole(sk, expired);
216
217 if (BPF_SOCK_OPS_TEST_FLAG(tp, BPF_SOCK_OPS_RTO_CB_FLAG))
218 tcp_call_bpf_3arg(sk, BPF_SOCK_OPS_RTO_CB,
219 icsk->icsk_retransmits,
220 icsk->icsk_rto, (int)expired);
221
216 if (expired) { 222 if (expired) {
217 /* Has it gone just too far? */ 223 /* Has it gone just too far? */
218 tcp_write_err(sk); 224 tcp_write_err(sk);
219 return 1; 225 return 1;
220 } 226 }
227
221 return 0; 228 return 0;
222} 229}
223 230