]> err.no Git - linux-2.6/commit
bnx2x: Memory allocation
authorEilon Greenstein <eilong@broadcom.com>
Wed, 13 Aug 2008 22:51:07 +0000 (15:51 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Aug 2008 23:02:34 +0000 (16:02 -0700)
commit326262307bad2391a6393bb1968ed9a9a16fc617
tree932131d9dd6ac1ae66c4fcd4e0b3942e49216ccd
parent3fcaf2e566b9cf8ccd16bcda3440717236de163d
bnx2x: Memory allocation

Memory allocation
- The CQE ring was allocated to the max size even for a chip that does
  not support it. Fixed to allocate according to the chip type to save
  memory
- The rx_page_ring was not freed on driver unload

Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bnx2x_main.c