[BNX2]: Support larger rx ring sizes (part 1)
authorMichael Chan <mchan@broadcom.com>
Tue, 21 Mar 2006 01:49:20 +0000 (17:49 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Mar 2006 01:49:20 +0000 (17:49 -0800)
commit13daffa2f2ba65674e7816a0e95e7b93246cb686
tree3170a19dfba530398d4f12e54a21400254fa98b1
parent236b6394bb49ea58465c6f935a286d2342576f8d
[BNX2]: Support larger rx ring sizes (part 1)

Increase maximum receive ring size from 255 to 1020 by supporting
up to 4 linked pages of receive descriptors. To accomodate the
higher memory usage, each physical descriptor page is allocated
separately and the software ring that keeps track of the SKBs and the
DMA addresses is allocated using vmalloc.

Some of the receive-related fields in the bp structure are re-
organized a bit for better locality of reference.

The max. was reduced to 1020 from 4080 after discussion with David
Miller.

This patch contains ring init code changes only. This next patch
contains rx data path code changes.

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