]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit52af51995f175d9ac2a82cee7c939e5197e8a878
tree26960e5aa3ce14de1fbfcff6f0f602c0056f7869
parentc66c0f7656f15e46ef07c57ab4a8fb504b65497c
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