[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <c076bb39-a523-ffd1-2fa9-e942f654cc5e@gmail.com>
Date: Fri, 28 Apr 2017 08:42:12 -0700
From: Florian Fainelli <f.fainelli@...il.com>
To: David Miller <davem@...emloft.net>, herbert@...dor.apana.org.au
Cc: netdev@...r.kernel.org, fw@...len.de, tgraf@...g.ch
Subject: Re: [PATCH net-next] rhashtable: Do not lower max_elems when max_size
is zero
On 04/28/2017 07:14 AM, David Miller wrote:
> From: Herbert Xu <herbert@...dor.apana.org.au>
> Date: Fri, 28 Apr 2017 14:10:48 +0800
>
>> The commit 6d684e54690c ("rhashtable: Cap total number of entries
>> to 2^31") breaks rhashtable users that do not set max_size. This
>> is because when max_size is zero max_elems is also incorrectly set
>> to zero instead of 2^31.
>>
>> This patch fixes it by only lowering max_elems when max_size is not
>> zero.
>>
>> Fixes: 6d684e54690c ("rhashtable: Cap total number of entries to 2^31")
>> Reported-by: Florian Fainelli <f.fainelli@...il.com>
>> Reported-by: kernel test robot <fengguang.wu@...el.com>
>> Signed-off-by: Herbert Xu <herbert@...dor.apana.org.au>
Tested-by: Florian Fainelli <f.fainelli@...il.com>
Thanks Herbert
--
Florian
Powered by blists - more mailing lists