diff options
| author | Eric Dumazet <[email protected]> | 2013-04-29 08:39:56 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2013-04-29 19:14:03 +0000 |
| commit | 6a5dc9e598fe90160fee7de098fa319665f5253e (patch) | |
| tree | 7f2c2130e3dec81aea01e997cec7e87744f02694 /net/ipv4/tcp_output.c | |
| parent | tg3: shows HW time stamping support only if ptp_capable is present (diff) | |
| download | kernel-6a5dc9e598fe90160fee7de098fa319665f5253e.tar.gz kernel-6a5dc9e598fe90160fee7de098fa319665f5253e.zip | |
net: Add MIB counters for checksum errors
Add MIB counters for checksum errors in IP layer,
and TCP/UDP/ICMP layers, to help diagnose problems.
$ nstat -a | grep Csum
IcmpInCsumErrors 72 0.0
TcpInCsumErrors 382 0.0
UdpInCsumErrors 463221 0.0
Icmp6InCsumErrors 75 0.0
Udp6InCsumErrors 173442 0.0
IpExtInCsumErrors 10884 0.0
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 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c index b735c23a961d..536d40929ba6 100644 --- a/net/ipv4/tcp_output.c +++ b/net/ipv4/tcp_output.c @@ -80,8 +80,9 @@ static void tcp_event_new_data_sent(struct sock *sk, const struct sk_buff *skb) tp->packets_out += tcp_skb_pcount(skb); if (!prior_packets || icsk->icsk_pending == ICSK_TIME_EARLY_RETRANS || - icsk->icsk_pending == ICSK_TIME_LOSS_PROBE) + icsk->icsk_pending == ICSK_TIME_LOSS_PROBE) { tcp_rearm_rto(sk); + } } /* SND.NXT, if window was not shrunk. |
