* [PATCH 2/6] netns brnetfilter: cleanup during table unregister
@ 2008-08-21 22:21 adobriyan
0 siblings, 0 replies; only message in thread
From: adobriyan @ 2008-08-21 22:21 UTC (permalink / raw)
To: shemminger, netdev, containers, kaber
So far it wasn't needed, because modules were pinned just right to prevent ebtables from
unloading when cleanup was necessary.
ebt_unregster_table() is called during netns stop now, so...
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
---
net/bridge/netfilter/ebtables.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
--- a/net/bridge/netfilter/ebtables.c
+++ b/net/bridge/netfilter/ebtables.c
@@ -1262,6 +1262,8 @@ void ebt_unregister_table(struct ebt_table *table)
mutex_lock(&ebt_mutex);
list_del(&table->list);
mutex_unlock(&ebt_mutex);
+ EBT_ENTRY_ITERATE(table->private->entries, table->private->entries_size,
+ ebt_cleanup_entry, NULL);
vfree(table->private->entries);
if (table->private->chainstack) {
for_each_possible_cpu(i)
--
1.5.6.3
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-08-21 22:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-21 22:21 [PATCH 2/6] netns brnetfilter: cleanup during table unregister adobriyan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox