diff options
author | Olof Johansson <olof@lixom.net> | 2007-08-22 10:12:52 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-10 19:50:56 -0400 |
commit | c0efd52b8b1951c20878208fdcbab0468f816804 (patch) | |
tree | c63af72481bda8c84f6771650bb8d992e17126cf /drivers/net/pasemi_mac.c | |
parent | b6e05a1b67a4b2e122d78a3f0b7ec7c779bd903c (diff) |
pasemi_mac: Enable L2 caching of packet headers
Enable settings to target l2 for the first few cachelines of the packet, since
we'll access them to get to the various headers.
Signed-off-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/pasemi_mac.c')
-rw-r--r-- | drivers/net/pasemi_mac.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/pasemi_mac.c b/drivers/net/pasemi_mac.c index be311e9404b4..46d5c0eef784 100644 --- a/drivers/net/pasemi_mac.c +++ b/drivers/net/pasemi_mac.c | |||
@@ -206,7 +206,7 @@ static int pasemi_mac_setup_rx_resources(struct net_device *dev) | |||
206 | PAS_DMA_RXCHAN_BASEU_SIZ(RX_RING_SIZE >> 2)); | 206 | PAS_DMA_RXCHAN_BASEU_SIZ(RX_RING_SIZE >> 2)); |
207 | 207 | ||
208 | write_dma_reg(mac, PAS_DMA_RXCHAN_CFG(chan_id), | 208 | write_dma_reg(mac, PAS_DMA_RXCHAN_CFG(chan_id), |
209 | PAS_DMA_RXCHAN_CFG_HBU(1)); | 209 | PAS_DMA_RXCHAN_CFG_HBU(2)); |
210 | 210 | ||
211 | write_dma_reg(mac, PAS_DMA_RXINT_BASEL(mac->dma_if), | 211 | write_dma_reg(mac, PAS_DMA_RXINT_BASEL(mac->dma_if), |
212 | PAS_DMA_RXINT_BASEL_BRBL(__pa(ring->buffers))); | 212 | PAS_DMA_RXINT_BASEL_BRBL(__pa(ring->buffers))); |
@@ -215,6 +215,9 @@ static int pasemi_mac_setup_rx_resources(struct net_device *dev) | |||
215 | PAS_DMA_RXINT_BASEU_BRBH(__pa(ring->buffers) >> 32) | | 215 | PAS_DMA_RXINT_BASEU_BRBH(__pa(ring->buffers) >> 32) | |
216 | PAS_DMA_RXINT_BASEU_SIZ(RX_RING_SIZE >> 3)); | 216 | PAS_DMA_RXINT_BASEU_SIZ(RX_RING_SIZE >> 3)); |
217 | 217 | ||
218 | write_dma_reg(mac, PAS_DMA_RXINT_CFG(mac->dma_if), | ||
219 | PAS_DMA_RXINT_CFG_DHL(2)); | ||
220 | |||
218 | ring->next_to_fill = 0; | 221 | ring->next_to_fill = 0; |
219 | ring->next_to_clean = 0; | 222 | ring->next_to_clean = 0; |
220 | 223 | ||