summaryrefslogtreecommitdiffstats
path: root/drivers/net/bnx2x.h
diff options
context:
space:
mode:
authorEilon Greenstein <eilong@broadcom.com>2009-01-14 21:24:17 -0800
committerDavid S. Miller <davem@davemloft.net>2009-01-15 08:28:11 -0800
commit4f40f2cba244e04c0f385c5ce60498b513b335dd (patch)
treec48a543449fd7be219a9577cf20c44dc678f0cef /drivers/net/bnx2x.h
parent58f4c4cfce5c4715b79621f0a635925c55f855d5 (diff)
downloadop-kernel-dev-4f40f2cba244e04c0f385c5ce60498b513b335dd.zip
op-kernel-dev-4f40f2cba244e04c0f385c5ce60498b513b335dd.tar.gz
bnx2x: Using system page size for SGE
When the page size is not 4KB, the FW must be programmed to work with the right SGE boundaries and fragment list length. To avoid confusion with the BCM_PAGE_SIZE which is set to 4KB for the FW sake, another alias for the system page size was added to explicitly indicate that it is meant for the SGE 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.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/bnx2x.h b/drivers/net/bnx2x.h
index 96a8889..2cd1e42 100644
--- a/drivers/net/bnx2x.h
+++ b/drivers/net/bnx2x.h
@@ -150,6 +150,9 @@ struct sw_rx_page {
#define PAGES_PER_SGE_SHIFT 0
#define PAGES_PER_SGE (1 << PAGES_PER_SGE_SHIFT)
+#define SGE_PAGE_SIZE PAGE_SIZE
+#define SGE_PAGE_SHIFT PAGE_SHIFT
+#define SGE_PAGE_ALIGN(addr) PAGE_ALIGN(addr)
#define BCM_RX_ETH_PAYLOAD_ALIGN 64
OpenPOWER on IntegriCloud