[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20150319210239.GB9601@gondor.apana.org.au>
Date: Fri, 20 Mar 2015 08:02:39 +1100
From: Herbert Xu <herbert@...dor.apana.org.au>
To: Thomas Graf <tgraf@...g.ch>
Cc: David Miller <davem@...emloft.net>, netdev@...r.kernel.org
Subject: Re: [PATCH net-next v2] rhashtable: Warn if min_size or max_size are
not a power of two
On Thu, Mar 19, 2015 at 07:46:08PM +0000, Thomas Graf wrote:
> The current code correctly limits table size to the next power of two.
> This check is solely to catch programming errors.
>
> Signed-off-by: Thomas Graf <tgraf@...g.ch>
I don't see the point of this. A maximum size of 3 says that
the table size should never exceed 3 which makes perfect sense.
And our current code will respect that.
So why force it to be a power of 2 just because our table sizes
happen to be powers of 2?
Cheers,
--
Email: Herbert Xu <herbert@...dor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists