[PATCH -next v2] netfilter: conntrack: allow increasing bucket size via sysctl too

2016-06-21 Thread Florian Westphal
No need to restrict this to module parameter. We export a copy of the real hash size -- when user alters the value we allocate the new table, copy entries etc before we update the real size to the requested one. This is also needed because the real size is used by concurrent readers and cannot be

Re: [PATCH -next v2] netfilter: conntrack: allow increasing bucket size via sysctl too

2016-06-22 Thread Liping Zhang
Hi Florian, 2016-06-22 2:46 GMT+08:00 Florian Westphal : > @@ -1650,11 +1646,31 @@ int nf_conntrack_set_hashsize(const char *val, struct > kernel_param *kp) > write_seqcount_end(&nf_conntrack_generation); > nf_conntrack_all_unlock(); > local_bh_enable(); > + synchron