From: Florian Westphal Date: Thu, 21 Apr 2011 08:58:25 +0000 (+0200) Subject: netfilter: ebtables: only call xt_compat_add_offset once per rule X-Git-Tag: v3.0-rc1~377^2~48^2~3^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e31b2b228439eee23b8ccc186d3c0e77bd69123b;p=pandora-kernel.git 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 Signed-off-by: Patrick McHardy --- Reading git-diff-tree failed