Re: rhashtable: Enforce minimum size on initial hash table

2015-12-16 Thread David Miller
From: Herbert Xu Date: Wed, 16 Dec 2015 18:13:14 +0800 > William Hua wrote: >> >> I wasn't aware there was an enforced minimum size. I simply set the >> nelem_hint in the rhastable_params struct to 1, expecting it to grow as >> needed. This caused a segfault afterwards when trying to insert an

rhashtable: Enforce minimum size on initial hash table

2015-12-16 Thread Herbert Xu
William Hua wrote: > > I wasn't aware there was an enforced minimum size. I simply set the > nelem_hint in the rhastable_params struct to 1, expecting it to grow as > needed. This caused a segfault afterwards when trying to insert an > element. OK we're doing the size computation before we enfor