]> git.baikalelectronics.ru Git - kernel.git/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)
commitf503b634fa0f8ffb838fb7e6b8a91e53c3b5200a
tree932131d9dd6ac1ae66c4fcd4e0b3942e49216ccd
parent35c2c5b8d18957c74a1cee12f5baacb37496f9cf
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