projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3976535
)
tcp: fix SNMP under-estimation on failed retransmission
author
Yuchung Cheng
<
[email protected]
>
Thu, 29 Nov 2018 00:06:44 +0000
(16:06 -0800)
committer
David S. Miller
<
[email protected]
>
Sat, 1 Dec 2018 01:22:41 +0000
(17:22 -0800)
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 <
[email protected]
>
Signed-off-by: Eric Dumazet <
[email protected]
>
Signed-off-by: Neal Cardwell <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
net/ipv4/tcp_output.c
patch
|
blob
|
history
diff --git
a/net/ipv4/tcp_output.c
b/net/ipv4/tcp_output.c
index 3f510cad0b3ec884aeb23f58aaa597ec98c82c88..68b5326f73212ffe7111dd0f91e0a1246fb0ae25 100644
(file)
--- a/
net/ipv4/tcp_output.c
+++ b/
net/ipv4/tcp_output.c
@@
-2920,7
+2920,7
@@
int __tcp_retransmit_skb(struct sock *sk, struct sk_buff *skb, int segs)
TCP_SKB_CB(skb)->sacked |= TCPCB_EVER_RETRANS;
trace_tcp_retransmit_skb(sk, skb);
} else if (err != -EBUSY) {
- NET_
INC_STATS(sock_net(sk), LINUX_MIB_TCPRETRANSFAIL
);
+ NET_
ADD_STATS(sock_net(sk), LINUX_MIB_TCPRETRANSFAIL, segs
);
}
return err;
}