]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4c42b63dbed55164f6db5ff81ffb2debce6023eb
tree24d8072eb5d33600fd67ab24ffa4f3706ee390d8
parent46f5e999092d0a2f0b2f720c6acddc5c09756c88
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