diff options
author | David S. Miller <davem@davemloft.net> | 2010-06-23 21:26:27 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-06-23 21:26:27 -0400 |
commit | 8244132ea89cdd128003f5b9980fab50d8d36d72 (patch) | |
tree | c6cf9327cf9b6bab5bb830bbf389a514f4d7bb95 /drivers/net/bnx2.c | |
parent | 7b2ff18ee7b0ec4bc3162f821e221781aaca48bd (diff) | |
parent | 38000a94a902e94ca8b5498f7871c6316de8957a (diff) |
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Conflicts:
net/ipv4/ip_output.c
Diffstat (limited to 'drivers/net/bnx2.c')
-rw-r--r-- | drivers/net/bnx2.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/drivers/net/bnx2.c b/drivers/net/bnx2.c index 522de9f818be..a5dd81face37 100644 --- a/drivers/net/bnx2.c +++ b/drivers/net/bnx2.c | |||
@@ -3086,7 +3086,6 @@ bnx2_rx_int(struct bnx2 *bp, struct bnx2_napi *bnapi, int budget) | |||
3086 | u16 hw_cons, sw_cons, sw_ring_cons, sw_prod, sw_ring_prod; | 3086 | u16 hw_cons, sw_cons, sw_ring_cons, sw_prod, sw_ring_prod; |
3087 | struct l2_fhdr *rx_hdr; | 3087 | struct l2_fhdr *rx_hdr; |
3088 | int rx_pkt = 0, pg_ring_used = 0; | 3088 | int rx_pkt = 0, pg_ring_used = 0; |
3089 | struct pci_dev *pdev = bp->pdev; | ||
3090 | 3089 | ||
3091 | hw_cons = bnx2_get_hw_rx_cons(bnapi); | 3090 | hw_cons = bnx2_get_hw_rx_cons(bnapi); |
3092 | sw_cons = rxr->rx_cons; | 3091 | sw_cons = rxr->rx_cons; |
@@ -3112,12 +3111,10 @@ bnx2_rx_int(struct bnx2 *bp, struct bnx2_napi *bnapi, int budget) | |||
3112 | skb = rx_buf->skb; | 3111 | skb = rx_buf->skb; |
3113 | prefetchw(skb); | 3112 | prefetchw(skb); |
3114 | 3113 | ||
3115 | if (!get_dma_ops(&pdev->dev)->sync_single_for_cpu) { | 3114 | next_rx_buf = |
3116 | next_rx_buf = | 3115 | &rxr->rx_buf_ring[RX_RING_IDX(NEXT_RX_BD(sw_cons))]; |
3117 | &rxr->rx_buf_ring[ | 3116 | prefetch(next_rx_buf->desc); |
3118 | RX_RING_IDX(NEXT_RX_BD(sw_cons))]; | 3117 | |
3119 | prefetch(next_rx_buf->desc); | ||
3120 | } | ||
3121 | rx_buf->skb = NULL; | 3118 | rx_buf->skb = NULL; |
3122 | 3119 | ||
3123 | dma_addr = dma_unmap_addr(rx_buf, mapping); | 3120 | dma_addr = dma_unmap_addr(rx_buf, mapping); |