aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorMichael Chan <mchan@broadcom.com>2006-03-20 20:49:49 -0500
committerDavid S. Miller <davem@davemloft.net>2006-03-20 20:49:49 -0500
commit3fdfcc2c95ffc7ee04b480a4c1fd4809b5ff2f7c (patch)
treebabe466f8679151b47f1da1b83377696ac134c05 /drivers/net
parent13daffa2f2ba65674e7816a0e95e7b93246cb686 (diff)
[BNX2]: Support larger rx ring sizes (part 2)
Support bigger rx ring sizes (up to 1020) in the rx fast path. Signed-off-by: Michael Chan <mchan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/bnx2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/bnx2.c b/drivers/net/bnx2.c
index 03c47cf04e90..b36515e95376 100644
--- a/drivers/net/bnx2.c
+++ b/drivers/net/bnx2.c
@@ -1687,8 +1687,8 @@ bnx2_reuse_rx_skb(struct bnx2 *bp, struct sk_buff *skb,
1687 pci_unmap_addr_set(prod_rx_buf, mapping, 1687 pci_unmap_addr_set(prod_rx_buf, mapping,
1688 pci_unmap_addr(cons_rx_buf, mapping)); 1688 pci_unmap_addr(cons_rx_buf, mapping));
1689 1689
1690 cons_bd = &bp->rx_desc_ring[cons]; 1690 cons_bd = &bp->rx_desc_ring[RX_RING(cons)][RX_IDX(cons)];
1691 prod_bd = &bp->rx_desc_ring[prod]; 1691 prod_bd = &bp->rx_desc_ring[RX_RING(prod)][RX_IDX(prod)];
1692 prod_bd->rx_bd_haddr_hi = cons_bd->rx_bd_haddr_hi; 1692 prod_bd->rx_bd_haddr_hi = cons_bd->rx_bd_haddr_hi;
1693 prod_bd->rx_bd_haddr_lo = cons_bd->rx_bd_haddr_lo; 1693 prod_bd->rx_bd_haddr_lo = cons_bd->rx_bd_haddr_lo;
1694} 1694}