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.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/net/ipv4/tcp_timer.c b/net/ipv4/tcp_timer.c
index 9b21ae8b2e31..1829c7fbc77e 100644
--- a/net/ipv4/tcp_timer.c
+++ b/net/ipv4/tcp_timer.c
@@ -374,17 +374,19 @@ void tcp_retransmit_timer(struct sock *sk)
374 */ 374 */
375 struct inet_sock *inet = inet_sk(sk); 375 struct inet_sock *inet = inet_sk(sk);
376 if (sk->sk_family == AF_INET) { 376 if (sk->sk_family == AF_INET) {
377 LIMIT_NETDEBUG(KERN_DEBUG pr_fmt("Peer %pI4:%u/%u unexpectedly shrunk window %u:%u (repaired)\n"), 377 net_dbg_ratelimited("Peer %pI4:%u/%u unexpectedly shrunk window %u:%u (repaired)\n",
378 &inet->inet_daddr, 378 &inet->inet_daddr,
379 ntohs(inet->inet_dport), inet->inet_num, 379 ntohs(inet->inet_dport),
380 tp->snd_una, tp->snd_nxt); 380 inet->inet_num,
381 tp->snd_una, tp->snd_nxt);
381 } 382 }
382#if IS_ENABLED(CONFIG_IPV6) 383#if IS_ENABLED(CONFIG_IPV6)
383 else if (sk->sk_family == AF_INET6) { 384 else if (sk->sk_family == AF_INET6) {
384 LIMIT_NETDEBUG(KERN_DEBUG pr_fmt("Peer %pI6:%u/%u unexpectedly shrunk window %u:%u (repaired)\n"), 385 net_dbg_ratelimited("Peer %pI6:%u/%u unexpectedly shrunk window %u:%u (repaired)\n",
385 &sk->sk_v6_daddr, 386 &sk->sk_v6_daddr,
386 ntohs(inet->inet_dport), inet->inet_num, 387 ntohs(inet->inet_dport),
387 tp->snd_una, tp->snd_nxt); 388 inet->inet_num,
389 tp->snd_una, tp->snd_nxt);
388 } 390 }
389#endif 391#endif
390 if (tcp_time_stamp - tp->rcv_tstamp > TCP_RTO_MAX) { 392 if (tcp_time_stamp - tp->rcv_tstamp > TCP_RTO_MAX) {