Skip to content

Commit

Permalink
[TCP]: tcp_rcv_rtt_measure_ts() call in pure-ACK path is superfluous
Browse files Browse the repository at this point in the history
We only want to take receive RTT mesaurements for data
bearing frames, here in the header prediction fast path
for a pure-sender, we know that we have a pure-ACK and
thus the checks in tcp_rcv_rtt_mesaure_ts() will not pass.

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller authored and David S. Miller committed Jun 18, 2006
1 parent 11dc1f3 commit 15986e1
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions net/ipv4/tcp_input.c
Original file line number Diff line number Diff line change
Expand Up @@ -3931,8 +3931,6 @@ int tcp_rcv_established(struct sock *sk, struct sk_buff *skb,
tp->rcv_nxt == tp->rcv_wup)
tcp_store_ts_recent(tp);

tcp_rcv_rtt_measure_ts(sk, skb);

/* We know that such packets are checksummed
* on entry.
*/
Expand Down

0 comments on commit 15986e1

Please sign in to comment.