]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
qlge: Fix page size ifdef test.
authorRon Mercer <ron.mercer@qlogic.com>
Tue, 14 Oct 2008 05:55:59 +0000 (22:55 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Oct 2008 05:55:59 +0000 (22:55 -0700)
This ASIC does support all page sizes. For 4k and 8k page size the TX
control block needs an external scatter gather list.  For page sizes
larger than 8k the max frags is satisfied by the original TX control
block.

Signed-off-by: Ron Mercer <ron.mercer@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/qlge/qlge.h

index c37ea436c9189adebf24bb579ba68e0659eae184..38116f9d41635c7cc23ad13a4e6b618b59cf5b06 100644 (file)
@@ -58,7 +58,7 @@
  */
 #if (PAGE_SHIFT == 12) || (PAGE_SHIFT == 13)   /* 4k & 8k pages */
 #define TX_DESC_PER_OAL ((MAX_SKB_FRAGS - TX_DESC_PER_IOCB) + 2)
-#elif (PAGE_SHIFT == 16)       /* 64k pages */
+#else /* all other page sizes */
 #define TX_DESC_PER_OAL 0
 #endif