]> err.no Git - linux-2.6/commit
[BNX2]: Use CPU native page size
authorMichael Chan <mchan@broadcom.com>
Tue, 13 Jun 2006 22:03:47 +0000 (15:03 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Sun, 18 Jun 2006 04:30:49 +0000 (21:30 -0700)
commitc86a31f452f7dd132a1765d6d7160b0947f37b14
treeb531650af625d24958bb59b511a1e4157525dc1e
parent7a6400cd3dbcfc3bbffcdb6dac4ffc957fb50e19
[BNX2]: Use CPU native page size

Use CPU native page size to determine various ring sizes. This allows
order-0 memory allocations on all systems.

Added check to limit the page size to 16K since that's the maximum rx
ring size that will be used. This will prevent using unnecessarily
large page sizes on some architectures with large page sizes.
[Suggested by David Miller]

Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bnx2.c
drivers/net/bnx2.h