diff options
author | Florian Westphal <fw@strlen.de> | 2011-04-21 10:58:25 +0200 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2011-04-21 10:58:25 +0200 |
commit | e31b2b228439eee23b8ccc186d3c0e77bd69123b (patch) | |
tree | f9e6d9d6d0e5a45b2feaa2cc0e563fd69261ceae /net/netfilter | |
parent | 954d70388307eb1ccb328d9f960657022a316243 (diff) | |
download | kernel_samsung_smdk4412-e31b2b228439eee23b8ccc186d3c0e77bd69123b.zip kernel_samsung_smdk4412-e31b2b228439eee23b8ccc186d3c0e77bd69123b.tar.gz kernel_samsung_smdk4412-e31b2b228439eee23b8ccc186d3c0e77bd69123b.tar.bz2 |
netfilter: ebtables: only call xt_compat_add_offset once per rule
The optimizations in commit 255d0dc34068a976
(netfilter: x_table: speedup compat operations) assume that
xt_compat_add_offset is called once per rule.
ebtables however called it for each match/target found in a rule.
The match/watcher/target parser already returns the needed delta, so it
is sufficient to move the xt_compat_add_offset call to a more reasonable
location.
While at it, also get rid of the unused COMPAT iterator macros.
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'net/netfilter')
0 files changed, 0 insertions, 0 deletions