All of lore.kernel.org
 help / color / mirror / Atom feed
* [NETFILTER]: xt_hashlimit: remove unneeded struct member
@ 2008-01-29 18:03 Jan Engelhardt
  2008-01-29 18:09 ` Patrick McHardy
  0 siblings, 1 reply; 5+ messages in thread
From: Jan Engelhardt @ 2008-01-29 18:03 UTC (permalink / raw)
  To: kaber; +Cc: Netfilter Developer Mailing List

commit 9cd6d44dfc02166640166a44c27c3dc0a98b4ac3
Author: Jan Engelhardt <jengelh@computergmbh.de>
Date:   Tue Jan 29 16:30:58 2008 +0100

    [NETFILTER]: xt_hashlimit: remove unneeded struct member
    
    By allocating ->hinfo, we already have the needed indirection to cope
    with the per-cpu xtables struct match_entry.
    
    Signed-off-by: Jan Engelhardt <jengelh@computergmbh.de>

diff --git a/include/linux/netfilter/xt_hashlimit.h b/include/linux/netfilter/xt_hashlimit.h
index 58b818e..51b18d8 100644
--- a/include/linux/netfilter/xt_hashlimit.h
+++ b/include/linux/netfilter/xt_hashlimit.h
@@ -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*/
diff --git a/net/netfilter/xt_hashlimit.c b/net/netfilter/xt_hashlimit.c
index 71572f9..d685ec4 100644
--- a/net/netfilter/xt_hashlimit.c
+++ b/net/netfilter/xt_hashlimit.c
@@ -772,9 +772,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;
 }
 


^ permalink raw reply related	[flat|nested] 5+ messages in thread
* [NETFILTER]: xt_hashlimit: remove unneeded struct member
@ 2008-01-29 17:26 Jan Engelhardt
  0 siblings, 0 replies; 5+ messages in thread
From: Jan Engelhardt @ 2008-01-29 17:26 UTC (permalink / raw)
  To: kaber; +Cc: Netfilter Developer Mailing List

commit 9cd6d44dfc02166640166a44c27c3dc0a98b4ac3
Author: Jan Engelhardt <jengelh@computergmbh.de>
Date:   Tue Jan 29 16:30:58 2008 +0100

    [NETFILTER]: xt_hashlimit: remove unneeded struct member
    
    By allocating ->hinfo, we already have the needed indirection to cope
    with the per-cpu xtables struct match_entry.
    
    Signed-off-by: Jan Engelhardt <jengelh@computergmbh.de>

diff --git a/include/linux/netfilter/xt_hashlimit.h b/include/linux/netfilter/xt_hashlimit.h
index 58b818e..51b18d8 100644
--- a/include/linux/netfilter/xt_hashlimit.h
+++ b/include/linux/netfilter/xt_hashlimit.h
@@ -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*/
diff --git a/net/netfilter/xt_hashlimit.c b/net/netfilter/xt_hashlimit.c
index 71572f9..d685ec4 100644
--- a/net/netfilter/xt_hashlimit.c
+++ b/net/netfilter/xt_hashlimit.c
@@ -772,9 +772,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;
 }
 


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-01-29 18:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-29 18:03 [NETFILTER]: xt_hashlimit: remove unneeded struct member Jan Engelhardt
2008-01-29 18:09 ` Patrick McHardy
2008-01-29 18:20   ` Jan Engelhardt
2008-01-29 18:30     ` Jan Engelhardt
  -- strict thread matches above, loose matches on Subject: below --
2008-01-29 17:26 [NETFILTER]: xt_hashlimit: " Jan Engelhardt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.