sfc: Allocate SRAM between buffer table and descriptor caches at init time
authorBen Hutchings <bhutchings@solarflare.com>
Wed, 15 Feb 2012 01:58:49 +0000 (01:58 +0000)
committerBen Hutchings <bhutchings@solarflare.com>
Thu, 16 Feb 2012 00:25:12 +0000 (00:25 +0000)
commit28e47c498a931200125e299e9d60d22e27b4ab0d
tree871e75c4db7e670c2ceaed7b5fd69b9ef9a5f4c4
parenta9a52506277275b73955504bf4df745502a28b8b
sfc: Allocate SRAM between buffer table and descriptor caches at init time

Each port has a block of 64-bit SRAM that is divided between buffer
table and descriptor cache regions at initialisation time.  Currently
we use a fixed allocation, but it needs to be changed to support
larger numbers of queues.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
drivers/net/ethernet/sfc/efx.c
drivers/net/ethernet/sfc/falcon.c
drivers/net/ethernet/sfc/net_driver.h
drivers/net/ethernet/sfc/nic.c
drivers/net/ethernet/sfc/nic.h
drivers/net/ethernet/sfc/siena.c