Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 172095
b: refs/heads/master
c: c7596b7
h: refs/heads/master
i:
  172093: 33cd844
  172091: 2c4d1e6
  172087: 012ad5b
  172079: 7b3f1ad
  172063: 14c7779
  172031: 34ad129
v: v3
  • Loading branch information
Michael Chan authored and David S. Miller committed Dec 3, 2009
1 parent 77a1a76 commit d437cf0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8f9b3f69944ab7eacb9273b4723087c42b5f4046
refs/heads/master: c7596b79feb3d15bea64007254f77233bda811f4
8 changes: 3 additions & 5 deletions trunk/drivers/net/cnic.c
Original file line number Diff line number Diff line change
Expand Up @@ -4131,22 +4131,20 @@ static void cnic_init_rings(struct cnic_dev *dev)
cnic_init_bnx2_rx_ring(dev);
} else if (test_bit(CNIC_F_BNX2X_CLASS, &dev->flags)) {
struct cnic_local *cp = dev->cnic_priv;
struct cnic_eth_dev *ethdev = cp->ethdev;
u32 cli = BNX2X_ISCSI_CL_ID(CNIC_E1HVN(cp));
union l5cm_specific_data l5_data;
struct ustorm_eth_rx_producers rx_prods = {0};
void __iomem *doorbell;
int i;
u32 off, i;

rx_prods.bd_prod = 0;
rx_prods.cqe_prod = BNX2X_MAX_RCQ_DESC_CNT;
barrier();

doorbell = ethdev->io_base2 + BAR_USTRORM_INTMEM +
off = BAR_USTRORM_INTMEM +
USTORM_RX_PRODS_OFFSET(CNIC_PORT(cp), cli);

for (i = 0; i < sizeof(struct ustorm_eth_rx_producers) / 4; i++)
writel(((u32 *) &rx_prods)[i], doorbell + i * 4);
CNIC_WR(dev, off + i * 4, ((u32 *) &rx_prods)[i]);

cnic_init_bnx2x_tx_ring(dev);
cnic_init_bnx2x_rx_ring(dev);
Expand Down

0 comments on commit d437cf0

Please sign in to comment.