diff options
| author | Eric Dumazet <[email protected]> | 2012-01-25 04:44:20 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2012-01-26 18:51:00 +0000 |
| commit | 09e9b813d34d9a09d64a64580a9959d8bae1f4f5 (patch) | |
| tree | 5e8616336466d89c10da8a52166213d345cbe060 /net/ipv4/tcp_output.c | |
| parent | be2net: allocate more headroom in incoming skbs (diff) | |
| download | kernel-09e9b813d34d9a09d64a64580a9959d8bae1f4f5.tar.gz kernel-09e9b813d34d9a09d64a64580a9959d8bae1f4f5.zip | |
tcp: add LINUX_MIB_TCPRETRANSFAIL counter
It might be useful to get a counter of failed tcp_retransmit_skb()
calls.
Reported-by: Satoru Moriya <[email protected]>
Signed-off-by: Eric Dumazet <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/ipv4/tcp_output.c')
| -rw-r--r-- | net/ipv4/tcp_output.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c index 8c8de2780c7a..561550ab3c30 100644 --- a/net/ipv4/tcp_output.c +++ b/net/ipv4/tcp_output.c @@ -2308,8 +2308,10 @@ begin_fwd: if (sacked & (TCPCB_SACKED_ACKED|TCPCB_SACKED_RETRANS)) continue; - if (tcp_retransmit_skb(sk, skb)) + if (tcp_retransmit_skb(sk, skb)) { + NET_INC_STATS_BH(sock_net(sk), LINUX_MIB_TCPRETRANSFAIL); return; + } NET_INC_STATS_BH(sock_net(sk), mib_idx); if (inet_csk(sk)->icsk_ca_state == TCP_CA_Recovery) |
