]> git.baikalelectronics.ru Git - kernel.git/commit
fragment: add fast path for in-order fragments
authorChangli Gao <xiaosuo@gmail.com>
Tue, 29 Jun 2010 04:39:37 +0000 (04:39 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 30 Jun 2010 20:44:29 +0000 (13:44 -0700)
commitb0e931e8d3305a9ac330e15e51c640eeb3540d2c
treefd797f062fa19d2ee470cf33c9b475bff08e2545
parente6c140ae4f4d749292ac2aea9dc7246fd079e7ba
fragment: add fast path for in-order fragments

add fast path for in-order fragments

As the fragments are sent in order in most of OSes, such as Windows, Darwin and
FreeBSD, it is likely the new fragments are at the end of the inet_frag_queue.
In the fast path, we check if the skb at the end of the inet_frag_queue is the
prev we expect.

Signed-off-by: Changli Gao <xiaosuo@gmail.com>
----
 include/net/inet_frag.h |    1 +
 net/ipv4/ip_fragment.c  |   12 ++++++++++++
 net/ipv6/reassembly.c   |   11 +++++++++++
 3 files changed, 24 insertions(+)
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/inet_frag.h
net/ipv4/ip_fragment.c
net/ipv6/reassembly.c