Re: [PATCH v4 nf-next 0/2] netfilter: x_tables: speed up iptables-restore

2017-10-24 Thread Pablo Neira Ayuso
On Thu, Oct 12, 2017 at 01:13:49AM +0200, Florian Westphal wrote: > iptables-restore can take quite a long time when sytem is busy, in order > of half a minute or more. > > The main reason for this is the way ip(6)tables performs table swap: > > When xt_replace_table assigns the new ruleset

[PATCH v4 nf-next 0/2] netfilter: x_tables: speed up iptables-restore

2017-10-11 Thread Florian Westphal
iptables-restore can take quite a long time when sytem is busy, in order of half a minute or more. The main reason for this is the way ip(6)tables performs table swap: When xt_replace_table assigns the new ruleset pointer, it does not wait for other processors to finish with old ruleset.