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

Commit bce392f3 authored by Ilpo Järvinen's avatar Ilpo Järvinen Committed by David S. Miller
Browse files

[TCP]: Move LOSTRETRANS MIB outside !(L|S) check



Usually those skbs will have L set, not counting them as lost
retransmissions is misleading.

Signed-off-by: default avatarIlpo Järvinen <ilpo.jarvinen@helsinki.fi>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1dab6222
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1160,8 +1160,8 @@ static int tcp_mark_lost_retrans(struct sock *sk)
				tp->lost_out += tcp_skb_pcount(skb);
				TCP_SKB_CB(skb)->sacked |= TCPCB_LOST;
				flag |= FLAG_DATA_SACKED;
				NET_INC_STATS_BH(LINUX_MIB_TCPLOSTRETRANSMIT);
			}
			NET_INC_STATS_BH(LINUX_MIB_TCPLOSTRETRANSMIT);
		} else {
			if (before(ack_seq, new_low_seq))
				new_low_seq = ack_seq;