[BNX2]: Support larger rx ring sizes (part 2)
authorMichael Chan <mchan@broadcom.com>
Tue, 21 Mar 2006 01:49:49 +0000 (17:49 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Mar 2006 01:49:49 +0000 (17:49 -0800)
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>
drivers/net/bnx2.c

index 03c47cf04e90962e9cba41dd85c19c1f284807c0..b36515e95376d3a805c72435edb27909a4da02c3 100644 (file)
@@ -1687,8 +1687,8 @@ bnx2_reuse_rx_skb(struct bnx2 *bp, struct sk_buff *skb,
        pci_unmap_addr_set(prod_rx_buf, mapping,
                        pci_unmap_addr(cons_rx_buf, mapping));
 
-       cons_bd = &bp->rx_desc_ring[cons];
-       prod_bd = &bp->rx_desc_ring[prod];
+       cons_bd = &bp->rx_desc_ring[RX_RING(cons)][RX_IDX(cons)];
+       prod_bd = &bp->rx_desc_ring[RX_RING(prod)][RX_IDX(prod)];
        prod_bd->rx_bd_haddr_hi = cons_bd->rx_bd_haddr_hi;
        prod_bd->rx_bd_haddr_lo = cons_bd->rx_bd_haddr_lo;
 }