[Devel] Re: [NETFILTER] early_drop() imrovement (v4)
Patrick McHardy
kaber at trash.net
Wed Jun 27 06:23:00 PDT 2007
[Dropping a few CCs since I supect its beginning to be annoying :)]
Patrick McHardy wrote:
> Vasily Averin wrote:
>
> Indeed, thanks. Fixed now. Also changed it to leave the loop
> if we found an entry within a chain (we want the last one of
> the chain, so we still walk it entirely) and replaced
>
> hash = (hash + 1) % nf_conntrack_htable_size
>
> by
>
> hash = (hash + 1) & (nf_conntrack_htable_size - 1)
>
> since one of my queued patches makes sure that its always
> a power of two.
Damn it .. it doesn't, it just makes sure it always uses pages
entirely. So I fixed that again.
More information about the Devel
mailing list