Skip to content

Commit de1d657

Browse files
yuchungchengdavem330
authored andcommitted
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: 10d3be5 ("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>
1 parent ba1ba25 commit de1d657

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎net/ipv4/tcp_output.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2831,7 +2831,7 @@ void tcp_xmit_retransmit_queue(struct sock *sk)
28312831
if (tcp_retransmit_skb(sk, skb, segs))
28322832
return;
28332833

2834-
NET_INC_STATS(sock_net(sk), mib_idx);
2834+
NET_ADD_STATS(sock_net(sk), mib_idx, tcp_skb_pcount(skb));
28352835

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

0 commit comments

Comments
 (0)