netfilter: nft_payload: add optimized payload implementation for small loads
authorPatrick McHardy <kaber@trash.net>
Thu, 10 Oct 2013 09:06:41 +0000 (11:06 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 14 Oct 2013 15:16:10 +0000 (17:16 +0200)
commitc29b72e02573b8fe5e6cae5d192a6a4772e7bbd6
treecd4d3e4f18568111c0cf754a2ffe28efefd8ca41
parentcb7dbfd0390c9e244339f3270fe8649568241812
netfilter: nft_payload: add optimized payload implementation for small loads

Add an optimized payload expression implementation for small (up to 4 bytes)
aligned data loads from the linear packet area.

This patch also includes original Patrick McHardy's entitled (nf_tables:
inline nft_payload_fast_eval() into main evaluation loop).

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/net/netfilter/nf_tables_core.h
net/netfilter/nf_tables_core.c
net/netfilter/nft_payload.c