Re: [PATCH v2 nf-next 3/3] netfilter: x_tables: pack percpu counter allocations

2016-11-21 Thread Eric Dumazet
On Mon, 2016-11-21 at 23:07 +0100, Florian Westphal wrote: > instead of allocating each xt_counter individually, allocate 4k chunks > and then use these for counter allocation requests. > > This should speed up rule evaluation by increasing data locality, > also speeds up ruleset loading because

[PATCH v2 nf-next 3/3] netfilter: x_tables: pack percpu counter allocations

2016-11-21 Thread Florian Westphal
instead of allocating each xt_counter individually, allocate 4k chunks and then use these for counter allocation requests. This should speed up rule evaluation by increasing data locality, also speeds up ruleset loading because we reduce calls to the percpu allocator. As Eric points out we can't