]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: better use ooo_last_skb in tcp_data_queue_ofo()
authorEric Dumazet <edumazet@google.com>
Fri, 9 Sep 2016 21:22:45 +0000 (14:22 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 11 Sep 2016 04:43:41 +0000 (21:43 -0700)
commit58c0f2fc0f7f8b028b5f306bed05a42472327ee7
treeb2de76a940a8496e7402398f28aee86bdbe5290f
parentfc98f5a844aa98a1378cecd772e7c6a1b83c49d7
tcp: better use ooo_last_skb in tcp_data_queue_ofo()

Willem noticed that we could avoid an rbtree lookup if the
the attempt to coalesce incoming skb to the last skb failed
for some reason.

Since most ooo additions are at the tail, this is definitely
worth adding a test and fast path.

Suggested-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Yaogong Wang <wygivan@google.com>
Cc: Yuchung Cheng <ycheng@google.com>
Cc: Neal Cardwell <ncardwell@google.com>
Cc: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_input.c