diff options
author | Rasesh Mody <rmody@brocade.com> | 2013-12-18 05:07:36 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-12-18 09:30:33 +0400 |
commit | 66f9513a1213dfc5332b9675d206d47763b81761 (patch) | |
tree | 1b8aa8835fbe4e1d18ca436ac97430b83b62d888 /drivers/net/ethernet/brocade/bna/bnad.c | |
parent | e29aa33912dd71b1446e01d6d7a1b95d0e81f996 (diff) | |
download | linux-66f9513a1213dfc5332b9675d206d47763b81761.tar.xz |
bna: RX Processing and Config Changes
Change Details:
- Prefetch header in GRO path. This reduces napi_frags_skb time from 9% to 5%.
- Changed the configurable limit of RxQ depth to 16384 (was 2048).
- bnad_rx_unmap_q elements are cachealigned.
Signed-off-by: Rasesh Mody <rmody@brocade.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/brocade/bna/bnad.c')
-rw-r--r-- | drivers/net/ethernet/brocade/bna/bnad.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/ethernet/brocade/bna/bnad.c b/drivers/net/ethernet/brocade/bna/bnad.c index 0e9f8f5b6009..3061dc5e7a64 100644 --- a/drivers/net/ethernet/brocade/bna/bnad.c +++ b/drivers/net/ethernet/brocade/bna/bnad.c @@ -536,6 +536,11 @@ bnad_cq_setup_skb_frags(struct bna_rcb *rcb, struct sk_buff *skb, unmap_q = rcb->unmap_q; bnad = rcb->bnad; + + /* prefetch header */ + prefetch(page_address(unmap_q->unmap[sop_ci].page) + + unmap_q->unmap[sop_ci].page_offset); + for (vec = 1, ci = sop_ci; vec <= nvecs; vec++) { unmap = &unmap_q->unmap[ci]; BNA_QE_INDX_INC(ci, rcb->q_depth); |