]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit9a3b87128d9eee40f7958f5d44c921162f54bc27
tree3170a19dfba530398d4f12e54a21400254fa98b1
parentb2c69d75ec315568c9d00a23ebe350f768974315
[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