tcp: fix SNMP under-estimation on failed retransmission
authorYuchung Cheng <ycheng@google.com>
Thu, 29 Nov 2018 00:06:44 +0000 (16:06 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 1 Dec 2018 01:22:41 +0000 (17:22 -0800)
commitec641b39457e17774313b66697a8a1dc070257bd
tree62a5fc5cec4d106106a348f020e319734c252971
parent3976535af0cb9fe34a55f2ffb8d7e6b39a2f8188
tcp: fix SNMP under-estimation on failed retransmission

Previously the SNMP counter LINUX_MIB_TCPRETRANSFAIL is not counting
the TSO/GSO properly on failed retransmission. This patch fixes that.

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: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_output.c