[NETFILTER]: Fix ip_conntrack_flush abuse in ctnetlink
authorPatrick McHardy <kaber@trash.net>
Mon, 5 Dec 2005 21:33:50 +0000 (13:33 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 Dec 2005 21:33:50 +0000 (13:33 -0800)
commitafe5c6bb034bfa5824f8e7def6a739653e8f4655
treee8fdac508c1691047991578e7109766f22bd1d58
parent3ebbe0cdd41f62e5c79cb4d7aa42a1ca50d7d2f2
[NETFILTER]: Fix ip_conntrack_flush abuse in ctnetlink

ip_conntrack_flush() used to be part of ip_conntrack_cleanup(), which needs
to drop _all_ references on module unload. Table flushed using ctnetlink
just needs to clean the table and doesn't need to flush the event cache or
wait for any references attached to skbs. Move everything but pure table
flushing back to ip_conntrack_cleanup().

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/netfilter/ip_conntrack_core.c