]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[NETFILTER]: xt_hashlimit: remove unneeded struct member
authorJan Engelhardt <jengelh@computergmbh.de>
Wed, 20 Feb 2008 01:19:44 +0000 (17:19 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Feb 2008 01:19:44 +0000 (17:19 -0800)
By allocating ->hinfo, we already have the needed indirection to cope
with the per-cpu xtables struct match_entry.

[Patrick: do this now before the revision 1 struct is used by userspace]

Signed-off-by: Jan Engelhardt <jengelh@computergmbh.de>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netfilter/xt_hashlimit.h
net/netfilter/xt_hashlimit.c

index 58b818ee41caa25f9d18a9c265fb2f7325f80826..51b18d83b4778ebc1d69eb71513e5be1faee9809 100644 (file)
@@ -61,7 +61,6 @@ struct xt_hashlimit_mtinfo1 {
 
        /* Used internally by the kernel */
        struct xt_hashlimit_htable *hinfo __attribute__((aligned(8)));
-       struct xt_hashlimit_mtinfo1 *master __attribute__((aligned(8)));
 };
 
 #endif /*_XT_HASHLIMIT_H*/
index 744c7f2ab0b1feb7c01c8d05c4867160a945caf3..5418ce59ac3aa3689c2adf567aefecd3240af94f 100644 (file)
@@ -774,9 +774,6 @@ hashlimit_mt_check(const char *tablename, const void *inf,
                return false;
        }
        mutex_unlock(&hlimit_mutex);
-
-       /* Ugly hack: For SMP, we only want to use one set */
-       info->master = info;
        return true;
 }