tcp: fix data delivery rate
authorEric Dumazet <edumazet@google.com>
Fri, 15 Sep 2017 23:47:42 +0000 (16:47 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Oct 2017 09:51:20 +0000 (11:51 +0200)
commit85908ccae5c2510aff7b9ef2e3e859ffa8f8824c
tree8bc97e00e76f0e1ec9ad7a9fc1d5f92a431755f4
parente159492b3c3edeffb9cbfb449efb5e7adfb719f7
tcp: fix data delivery rate

[ Upstream commit fc22579917eb7e13433448a342f1cb1592920940 ]

Now skb->mstamp_skb is updated later, we also need to call
tcp_rate_skb_sent() after the update is done.

Fixes: 8c72c65b426b ("tcp: update skb->skb_mstamp more carefully")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Soheil Hassas Yeganeh <soheil@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv4/tcp_output.c