Messages in this thread | | | Date | Thu, 19 Jul 2018 05:28:12 +0900 (KST) | Subject | Re: [PATCH resend -next] lib/rhashtable: consider param->min_size when setting initial table size | From | David Miller <> |
| |
From: Davidlohr Bueso <dave@stgolabs.net> Date: Mon, 16 Jul 2018 13:26:13 -0700
> rhashtable_init() currently does not take into account the user-passed > min_size parameter unless param->nelem_hint is set as well. As such, > the default size (number of buckets) will always be HASH_DEFAULT_SIZE > even if the smallest allowed size is larger than that. Remediate this > by unconditionally calling into rounded_hashtable_size() and handling > things accordingly. > > Signed-off-by: Davidlohr Bueso <dbueso@suse.de> > Acked-by: Herbert Xu <herbert@gondor.apana.org.au> > --- > Resending per Herbert's request with Cc to netdev.
Applied and queued up for -stable, thanks.
| |