aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/bnx2.c9
-rw-r--r--drivers/net/bnx2.h2
2 files changed, 6 insertions, 5 deletions
diff --git a/drivers/net/bnx2.c b/drivers/net/bnx2.c
index 2180922550eb..1534eed4c35a 100644
--- a/drivers/net/bnx2.c
+++ b/drivers/net/bnx2.c
@@ -2624,7 +2624,7 @@ bnx2_reuse_rx_skb(struct bnx2 *bp, struct bnx2_napi *bnapi, struct sk_buff *skb,
2624 2624
2625 pci_dma_sync_single_for_device(bp->pdev, 2625 pci_dma_sync_single_for_device(bp->pdev,
2626 pci_unmap_addr(cons_rx_buf, mapping), 2626 pci_unmap_addr(cons_rx_buf, mapping),
2627 BNX2_RX_OFFSET + RX_COPY_THRESH, PCI_DMA_FROMDEVICE); 2627 BNX2_RX_OFFSET + BNX2_RX_COPY_THRESH, PCI_DMA_FROMDEVICE);
2628 2628
2629 bnapi->rx_prod_bseq += bp->rx_buf_use_size; 2629 bnapi->rx_prod_bseq += bp->rx_buf_use_size;
2630 2630
@@ -2777,7 +2777,8 @@ bnx2_rx_int(struct bnx2 *bp, struct bnx2_napi *bnapi, int budget)
2777 dma_addr = pci_unmap_addr(rx_buf, mapping); 2777 dma_addr = pci_unmap_addr(rx_buf, mapping);
2778 2778
2779 pci_dma_sync_single_for_cpu(bp->pdev, dma_addr, 2779 pci_dma_sync_single_for_cpu(bp->pdev, dma_addr,
2780 BNX2_RX_OFFSET + RX_COPY_THRESH, PCI_DMA_FROMDEVICE); 2780 BNX2_RX_OFFSET + BNX2_RX_COPY_THRESH,
2781 PCI_DMA_FROMDEVICE);
2781 2782
2782 rx_hdr = (struct l2_fhdr *) skb->data; 2783 rx_hdr = (struct l2_fhdr *) skb->data;
2783 len = rx_hdr->l2_fhdr_pkt_len; 2784 len = rx_hdr->l2_fhdr_pkt_len;
@@ -4760,7 +4761,7 @@ bnx2_set_rx_ring_size(struct bnx2 *bp, u32 size)
4760 rx_space = SKB_DATA_ALIGN(rx_size + BNX2_RX_ALIGN) + NET_SKB_PAD + 4761 rx_space = SKB_DATA_ALIGN(rx_size + BNX2_RX_ALIGN) + NET_SKB_PAD +
4761 sizeof(struct skb_shared_info); 4762 sizeof(struct skb_shared_info);
4762 4763
4763 bp->rx_copy_thresh = RX_COPY_THRESH; 4764 bp->rx_copy_thresh = BNX2_RX_COPY_THRESH;
4764 bp->rx_pg_ring_size = 0; 4765 bp->rx_pg_ring_size = 0;
4765 bp->rx_max_pg_ring = 0; 4766 bp->rx_max_pg_ring = 0;
4766 bp->rx_max_pg_ring_idx = 0; 4767 bp->rx_max_pg_ring_idx = 0;
@@ -4775,7 +4776,7 @@ bnx2_set_rx_ring_size(struct bnx2 *bp, u32 size)
4775 bp->rx_max_pg_ring = bnx2_find_max_ring(jumbo_size, 4776 bp->rx_max_pg_ring = bnx2_find_max_ring(jumbo_size,
4776 MAX_RX_PG_RINGS); 4777 MAX_RX_PG_RINGS);
4777 bp->rx_max_pg_ring_idx = (bp->rx_max_pg_ring * RX_DESC_CNT) - 1; 4778 bp->rx_max_pg_ring_idx = (bp->rx_max_pg_ring * RX_DESC_CNT) - 1;
4778 rx_size = RX_COPY_THRESH + BNX2_RX_OFFSET; 4779 rx_size = BNX2_RX_COPY_THRESH + BNX2_RX_OFFSET;
4779 bp->rx_copy_thresh = 0; 4780 bp->rx_copy_thresh = 0;
4780 } 4781 }
4781 4782
diff --git a/drivers/net/bnx2.h b/drivers/net/bnx2.h
index 601bafffe8ba..16020a10bf42 100644
--- a/drivers/net/bnx2.h
+++ b/drivers/net/bnx2.h
@@ -6413,7 +6413,7 @@ struct l2_fhdr {
6413#define MAX_ETHERNET_PACKET_SIZE 1514 6413#define MAX_ETHERNET_PACKET_SIZE 1514
6414#define MAX_ETHERNET_JUMBO_PACKET_SIZE 9014 6414#define MAX_ETHERNET_JUMBO_PACKET_SIZE 9014
6415 6415
6416#define RX_COPY_THRESH 128 6416#define BNX2_RX_COPY_THRESH 128
6417 6417
6418#define BNX2_MISC_ENABLE_DEFAULT 0x17ffffff 6418#define BNX2_MISC_ENABLE_DEFAULT 0x17ffffff
6419 6419