diff options
author | Divy Le Ray <divy@chelsio.com> | 2009-03-12 17:13:59 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-03-13 14:30:44 -0400 |
commit | b2b964f0647c5156038834dd879f90442e33f2a5 (patch) | |
tree | e6eb3bbd6dc3e3e5fb3684350ef64574b10162bf /drivers/net/cxgb3 | |
parent | 8f4358044d7d694f2e0c18a6ce5db6ec0790451a (diff) |
cxgb3: prefetch buffer access in GRO mode
Elmininate a cache miss when accessing the CPL header within
the first aggregated buffer.
Signed-off-by: Divy Le Ray <divy@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/cxgb3')
-rw-r--r-- | drivers/net/cxgb3/sge.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/cxgb3/sge.c b/drivers/net/cxgb3/sge.c index 90f6f82d3bf2..a482429846eb 100644 --- a/drivers/net/cxgb3/sge.c +++ b/drivers/net/cxgb3/sge.c | |||
@@ -2029,6 +2029,8 @@ static void lro_add_page(struct adapter *adap, struct sge_qset *qs, | |||
2029 | pci_unmap_single(adap->pdev, pci_unmap_addr(sd, dma_addr), | 2029 | pci_unmap_single(adap->pdev, pci_unmap_addr(sd, dma_addr), |
2030 | fl->buf_size, PCI_DMA_FROMDEVICE); | 2030 | fl->buf_size, PCI_DMA_FROMDEVICE); |
2031 | 2031 | ||
2032 | prefetch(&qs->lro_frag_tbl); | ||
2033 | |||
2032 | rx_frag += nr_frags; | 2034 | rx_frag += nr_frags; |
2033 | rx_frag->page = sd->pg_chunk.page; | 2035 | rx_frag->page = sd->pg_chunk.page; |
2034 | rx_frag->page_offset = sd->pg_chunk.offset + offset; | 2036 | rx_frag->page_offset = sd->pg_chunk.offset + offset; |
@@ -2997,6 +2999,7 @@ int t3_sge_alloc_qset(struct adapter *adapter, unsigned int id, int nports, | |||
2997 | V_NEWTIMER(q->rspq.holdoff_tmr)); | 2999 | V_NEWTIMER(q->rspq.holdoff_tmr)); |
2998 | 3000 | ||
2999 | mod_timer(&q->tx_reclaim_timer, jiffies + TX_RECLAIM_PERIOD); | 3001 | mod_timer(&q->tx_reclaim_timer, jiffies + TX_RECLAIM_PERIOD); |
3002 | |||
3000 | return 0; | 3003 | return 0; |
3001 | 3004 | ||
3002 | err_unlock: | 3005 | err_unlock: |