tcp: tcp_mark_head_lost() optimization
authorEric Dumazet <edumazet@google.com>
Fri, 6 Oct 2017 05:21:24 +0000 (22:21 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 6 Oct 2017 23:28:53 +0000 (00:28 +0100)
commit5e76ee4b8e90384936a214cde5b7816424f70232
tree24d8072eb5d33600fd67ab24ffa4f3706ee390d8
parent4e8cc22803080853a33bafc6748e133448fb8182
tcp: tcp_mark_head_lost() optimization

It will be a bit more expensive to get the head of rtx queue
once rtx queue is converted to an rb-tree.

We can avoid this extra cost in case tp->lost_skb_hint is set.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_input.c