summaryrefslogtreecommitdiffstats
path: root/drivers/net/bnx2x.h
diff options
context:
space:
mode:
authorEilon Greenstein <eilong@broadcom.com>2009-01-15 06:28:13 +0100
committerDavid S. Miller <davem@davemloft.net>2009-01-15 17:28:14 +0100
commita5f67a04d998b0b6e4beb1de8f1247dd93ac1ff4 (patch)
treed2b3dc29405f90d4a13b79e70ed890b17f4cbc27 /drivers/net/bnx2x.h
parentbnx2x: Endianness issues (diff)
downloadlinux-a5f67a04d998b0b6e4beb1de8f1247dd93ac1ff4.tar.xz
linux-a5f67a04d998b0b6e4beb1de8f1247dd93ac1ff4.zip
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 <eilong@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bnx2x.h')
-rw-r--r--drivers/net/bnx2x.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/bnx2x.h b/drivers/net/bnx2x.h
index e7fbca7722dc..6fcccef4cf3d 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;