diff options
author | Ron Mercer <ron.mercer@qlogic.com> | 2010-01-02 05:37:42 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-01-06 23:30:33 -0500 |
commit | 572c526fb19a9a24098de814ab0601c1ce1bac82 (patch) | |
tree | 3fa7cad3dc93b5e67bae94e5ba1427b878bdfa5e /drivers/net/qlge/qlge_main.c | |
parent | c36531b9b2e00d9715c3a0f5788ac5311435e078 (diff) |
qlge: Turn on RX header split based on platform.
Using 4-byte aligned headers is problematic for some architectures.
Since qlge uses 4-byte aligned rx buffers we split headers for these
architectures into a separate buffer and then recopy to align on 2-byte boundary.
Signed-off-by: Ron Mercer <ron.mercer@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/qlge/qlge_main.c')
-rw-r--r-- | drivers/net/qlge/qlge_main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/qlge/qlge_main.c b/drivers/net/qlge/qlge_main.c index 707b391afa02..c3034786965d 100644 --- a/drivers/net/qlge/qlge_main.c +++ b/drivers/net/qlge/qlge_main.c | |||
@@ -3332,15 +3332,15 @@ static int ql_adapter_initialize(struct ql_adapter *qdev) | |||
3332 | 3332 | ||
3333 | /* Enable the function, set pagesize, enable error checking. */ | 3333 | /* Enable the function, set pagesize, enable error checking. */ |
3334 | value = FSC_FE | FSC_EPC_INBOUND | FSC_EPC_OUTBOUND | | 3334 | value = FSC_FE | FSC_EPC_INBOUND | FSC_EPC_OUTBOUND | |
3335 | FSC_EC | FSC_VM_PAGE_4K | FSC_SH; | 3335 | FSC_EC | FSC_VM_PAGE_4K; |
3336 | value |= SPLT_SETTING; | ||
3336 | 3337 | ||
3337 | /* Set/clear header splitting. */ | 3338 | /* Set/clear header splitting. */ |
3338 | mask = FSC_VM_PAGESIZE_MASK | | 3339 | mask = FSC_VM_PAGESIZE_MASK | |
3339 | FSC_DBL_MASK | FSC_DBRST_MASK | (value << 16); | 3340 | FSC_DBL_MASK | FSC_DBRST_MASK | (value << 16); |
3340 | ql_write32(qdev, FSC, mask | value); | 3341 | ql_write32(qdev, FSC, mask | value); |
3341 | 3342 | ||
3342 | ql_write32(qdev, SPLT_HDR, SPLT_HDR_EP | | 3343 | ql_write32(qdev, SPLT_HDR, SPLT_LEN); |
3343 | min(SMALL_BUF_MAP_SIZE, MAX_SPLIT_SIZE)); | ||
3344 | 3344 | ||
3345 | /* Set RX packet routing to use port/pci function on which the | 3345 | /* Set RX packet routing to use port/pci function on which the |
3346 | * packet arrived on in addition to usual frame routing. | 3346 | * packet arrived on in addition to usual frame routing. |