tcp: fix lost retransmit SNMP under-counting
authorYuchung Cheng <ycheng@google.com>
Tue, 4 Apr 2017 21:15:39 +0000 (14:15 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 6 Apr 2017 01:41:27 +0000 (18:41 -0700)
commitecde8f36f8a05a023b9d026e9094571aab421d36
treeb830524246475f8190a2e6000b2c96100821dd6d
parent3ebfdf082184d04f6e73b30cd9446613dc7f8c02
tcp: fix lost retransmit SNMP under-counting

The lost retransmit SNMP stat is under-counting retransmission
that uses segment offloading. This patch fixes that so all
retransmission related SNMP counters are consistent.

Fixes: 10d3be569243 ("tcp-tso: do not split TSO packets at retransmit time")
Signed-off-by: Yuchung Cheng <ycheng@google.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: Soheil Hassas Yeganeh <soheil@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_recovery.c