Subject: Re: [PATCH 36/38] netfilter: connlimit: use keyed locks

From: Florian Westphal <[email-masked]>
Date: Mon, 17 Mar 2014 15:26:44 +0100

David Laight <[email-masked]> wrote:
> From: Pablo Neira Ayuso
> > +#define CONNLIMIT_SLOTS	256
> > +#define CONNLIMIT_LOCK_SLOTS	32
> 
> You might want to make these explicitly unsigned to ensure
> the divisions are unsigned (so can be done with a simple mask).

I can do  this but I checked that at least on my machine gcc already
emits a 'add' instruction to reduce the hash value.