From: Ron Mercer Date: Tue, 14 Oct 2008 05:55:59 +0000 (-0700) Subject: qlge: Fix page size ifdef test. X-Git-Tag: v2.6.28-rc1~104^2~28 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=485013717020cd8961337309e359d6cef43d6022;p=platform%2Fkernel%2Flinux-3.10.git qlge: Fix page size ifdef test. 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 Signed-off-by: David S. Miller --- diff --git a/drivers/net/qlge/qlge.h b/drivers/net/qlge/qlge.h index c37ea43..38116f9 100644 --- a/drivers/net/qlge/qlge.h +++ b/drivers/net/qlge/qlge.h @@ -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