]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
bnx2x: Fixing the doorbell size
authorEilon Greenstein <eilong@broadcom.com>
Thu, 15 Jan 2009 05:28:13 +0000 (21:28 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 15 Jan 2009 16:28:14 +0000 (08:28 -0800)
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>
drivers/net/bnx2x.h

index e7fbca7722dc0f42a1cfb3388ca6e56821542681..6fcccef4cf3d02bbc0449eaabbf7f081ce9f2cc5 100644 (file)
@@ -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;