From: Eilon Greenstein Date: Thu, 15 Jan 2009 05:28:13 +0000 (-0800) Subject: bnx2x: Fixing the doorbell size X-Git-Tag: v2.6.29-rc2~11^2~14 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=a5f67a04d998b0b6e4beb1de8f1247dd93ac1ff4;p=~shefty%2Frdma-dev.git bnx2x: Fixing the doorbell size The size of the doorbell is 4KB, this bug become visible when using more than 8 queues Signed-off-by: Eilon Greenstein Signed-off-by: David S. Miller --- diff --git a/drivers/net/bnx2x.h b/drivers/net/bnx2x.h index e7fbca7722d..6fcccef4cf3 100644 --- a/drivers/net/bnx2x.h +++ b/drivers/net/bnx2x.h @@ -739,7 +739,7 @@ struct bnx2x { struct bnx2x_fastpath fp[MAX_CONTEXT]; void __iomem *regview; void __iomem *doorbells; -#define BNX2X_DB_SIZE (16*2048) +#define BNX2X_DB_SIZE (16*BCM_PAGE_SIZE) struct net_device *dev; struct pci_dev *pdev;