tcp: fix under-accounting retransmit SNMP counters
authorYuchung Cheng <ycheng@google.com>
Wed, 21 Sep 2016 23:16:14 +0000 (16:16 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Sep 2016 07:33:01 +0000 (03:33 -0400)
commitde1d657816c6fbb70f07b01d50ec669dff0d4e60
tree4cd1dc2e2dd168547e147e2d2d699c8f24a66deb
parentba1ba25d3159573ffdc9e79e5c3dfcf9c5742964
tcp: fix under-accounting retransmit SNMP counters

This patch fixes these under-accounting SNMP rtx stats
LINUX_MIB_TCPFORWARDRETRANS
LINUX_MIB_TCPFASTRETRANS
LINUX_MIB_TCPSLOWSTARTRETRANS
when retransmitting TSO packets

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