Re: rhashtable: how to use insecure_elasticity of rhashtable_params

2016-11-08 Thread Xin Long
On Mon, Nov 7, 2016 at 3:55 PM, Herbert Xu wrote: > On Sun, Nov 06, 2016 at 09:15:07PM +0800, Xin Long wrote: >> Now when I don't set insecure_elasticity, ht->elasticity would be >> set 16, it would be checked in the loop of __rhashtable_insert_fast >> and

Re: rhashtable: how to use insecure_elasticity of rhashtable_params

2016-11-07 Thread Herbert Xu
On Sun, Nov 06, 2016 at 09:15:07PM +0800, Xin Long wrote: > Now when I don't set insecure_elasticity, ht->elasticity would be > set 16, it would be checked in the loop of __rhashtable_insert_fast > and rhashtable_lookup_one. This is now obsolete. Please use the new rhlist interface. Thanks,

rhashtable: how to use insecure_elasticity of rhashtable_params

2016-11-06 Thread Xin Long
Now when I don't set insecure_elasticity, ht->elasticity would be set 16, it would be checked in the loop of __rhashtable_insert_fast and rhashtable_lookup_one. But if I set insecure_elasticity = true, ht->elasticity wouldn't be set (and the default is 0). when it is checked in that loop.