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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



David Laight <David.Laight@xxxxxxxxxx> 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.
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux