| To: | Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> |
|---|---|
| Subject: | Re: [IPv4] Check PAGE_SIZE in fz_hash_alloc |
| From: | "David S. Miller" <davem@xxxxxxxxxxxxx> |
| Date: | Thu, 23 Sep 2004 13:05:21 -0700 |
| Cc: | hadi@xxxxxxxxxx, netdev@xxxxxxxxxxx |
| In-reply-to: | <20040922035710.GA17249@gondor.apana.org.au> |
| References: | <20040918203319.24004d6e.davem@davemloft.net> <1095645106.1048.190.camel@jzny.localdomain> <20040919195351.0b3560e6.davem@davemloft.net> <1095686672.1049.301.camel@jzny.localdomain> <20040920121123.70baf895.davem@davemloft.net> <20040921034212.GA28462@gondor.apana.org.au> <20040920231805.3f18479c.davem@davemloft.net> <20040922020729.GA14062@gondor.apana.org.au> <20040921193234.1c5b09a1.davem@davemloft.net> <20040922035710.GA17249@gondor.apana.org.au> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
On Wed, 22 Sep 2004 13:57:10 +1000 Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> wrote: > Here is a minor optimisation to fz_hash_alloc. The break-even point > should be based on PAGE_SIZE rather than the value of divisor. > > Signed-off-by: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> It happens to be equivalent on several platforms, but yes good fixup :-) |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [NETFILTER] Fix comment typo in ip_nat_helper, David S. Miller |
|---|---|
| Next by Date: | Re: [PATCH] pktgen - handle NETDEV_TX_LOCKED, David S. Miller |
| Previous by Thread: | [IPv4] Check PAGE_SIZE in fz_hash_alloc, Herbert Xu |
| Next by Thread: | Re: [PATCH] Clean up fib_hash datastructures, jamal |
| Indexes: | [Date] [Thread] [Top] [All Lists] |