Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit de1d6578 authored by Yuchung Cheng's avatar Yuchung Cheng Committed by David S. Miller
Browse files

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: 10d3be56 ("tcp-tso: do not split TSO packets at retransmit time")
Signed-off-by: default avatarYuchung Cheng <ycheng@google.com>
Acked-by: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ba1ba25d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2831,7 +2831,7 @@ void tcp_xmit_retransmit_queue(struct sock *sk)
		if (tcp_retransmit_skb(sk, skb, segs))
			return;

		NET_INC_STATS(sock_net(sk), mib_idx);
		NET_ADD_STATS(sock_net(sk), mib_idx, tcp_skb_pcount(skb));

		if (tcp_in_cwnd_reduction(sk))
			tp->prr_out += tcp_skb_pcount(skb);