tcp: increment retransmit counters in tlp and fast open
authorEric Dumazet <edumazet@google.com>
Tue, 29 Apr 2014 05:00:29 +0000 (22:00 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 30 Apr 2014 20:12:22 +0000 (16:12 -0400)
commitfc9f35010641ea85dd19d144b86cdd93156f1a1e
tree37c597211df463cb893b84d14ae4008d177d6004
parent3dc638d13aced7baad40517a3d70b3b43bf6b90f
tcp: increment retransmit counters in tlp and fast open

Both TLP and Fast Open call __tcp_retransmit_skb() instead of
tcp_retransmit_skb() to avoid changing tp->retrans_out.

This has the side effect of missing SNMP counters increments as well
as tcp_info tcpi_total_retrans updates.

Fix this by moving the stats increments of into __tcp_retransmit_skb()

Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Nandita Dukkipati <nanditad@google.com>
Acked-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_output.c