tcp: fix data delivery rate
authorEric Dumazet <edumazet@google.com>
Fri, 15 Sep 2017 23:47:42 +0000 (16:47 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 16 Sep 2017 16:07:01 +0000 (09:07 -0700)
commitfc22579917eb7e13433448a342f1cb1592920940
treeba6169aed222a8489aec0101804e96de41b76f57
parente67b8a685c7c984e834e3181ef4619cd7025a136
tcp: fix data delivery rate

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>
net/ipv4/tcp_output.c