netfilter: xtables: remove almost-unused xt_match_param.data member
authorJan Engelhardt <jengelh@medozas.de>
Thu, 18 Mar 2010 10:03:51 +0000 (11:03 +0100)
committerJan Engelhardt <jengelh@medozas.de>
Thu, 18 Mar 2010 13:20:07 +0000 (14:20 +0100)
commit4f948db1915ff05e4ce0fd98e6323db6a3ec0fc0
tree26960e5aa3ce14de1fbfcff6f0f602c0056f7869
parent16599786ae5e9d5f936706d2202d8c7224cd51ed
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>
include/linux/netfilter/x_tables.h
net/ipv6/netfilter/ip6t_hbh.c