]> bbs.cooldavid.org Git - net-next-2.6.git/commit
netfilter: nf_conntrack_reasm: add fast path for in-order fragments
authorChangli Gao <xiaosuo@gmail.com>
Mon, 5 Jul 2010 08:38:23 +0000 (10:38 +0200)
committerPatrick McHardy <kaber@trash.net>
Mon, 5 Jul 2010 08:38:23 +0000 (10:38 +0200)
commitea8fbe8f198edea19116d4b61267e12235513225
treee9fae0d935a083b8db23dbe02e0bd1b61fe4fc2a
parent39827be26b36ef9cdbc661c92a269e0484cd9ef5
netfilter: nf_conntrack_reasm: 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>
Signed-off-by: Patrick McHardy <kaber@trash.net>
net/ipv6/netfilter/nf_conntrack_reasm.c