summaryrefslogtreecommitdiffstats
path: root/include/linux/netfilter
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2010-03-18 11:03:51 +0100
committerJan Engelhardt <jengelh@medozas.de>2010-03-18 14:20:07 +0100
commit4f948db1915ff05e4ce0fd98e6323db6a3ec0fc0 (patch)
tree26960e5aa3ce14de1fbfcff6f0f602c0056f7869 /include/linux/netfilter
parent16599786ae5e9d5f936706d2202d8c7224cd51ed (diff)
downloadblackbird-obmc-linux-4f948db1915ff05e4ce0fd98e6323db6a3ec0fc0.tar.gz
blackbird-obmc-linux-4f948db1915ff05e4ce0fd98e6323db6a3ec0fc0.zip
netfilter: xtables: remove almost-unused xt_match_param.data member
This member is taking up a "long" per match, yet is only used by one module out of the roughly 90 modules, ip6t_hbh. ip6t_hbh can be restructured a little to accomodate for the lack of the .data member. This variant uses checking the par->match address, which should avoid having to add two extra functions, including calls, i.e. (hbh_mt6: call hbhdst_mt6(skb, par, NEXTHDR_OPT), dst_mt6: call hbhdst_mt6(skb, par, NEXTHDR_DEST)) Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Diffstat (limited to 'include/linux/netfilter')
-rw-r--r--include/linux/netfilter/x_tables.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/include/linux/netfilter/x_tables.h b/include/linux/netfilter/x_tables.h
index c68ff82366b6..cf91473624e1 100644
--- a/include/linux/netfilter/x_tables.h
+++ b/include/linux/netfilter/x_tables.h
@@ -315,9 +315,6 @@ struct xt_match {
/* Set this to THIS_MODULE if you are a module, otherwise NULL */
struct module *me;
- /* Free to use by each match */
- unsigned long data;
-
const char *table;
unsigned int matchsize;
#ifdef CONFIG_COMPAT
OpenPOWER on IntegriCloud