Skip to content

Commit

Permalink
cnic: Fix bnx2x ring shutdown.
Browse files Browse the repository at this point in the history
Need to send a HALT command to the firmware to fully shutdown the bnx2x
rings.

Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: Benjamin Li <benli@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Michael Chan authored and David S. Miller committed Dec 3, 2009
1 parent c7596b7 commit 8b065b6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions drivers/net/cnic.c
Original file line number Diff line number Diff line change
Expand Up @@ -4164,8 +4164,15 @@ static void cnic_shutdown_rings(struct cnic_dev *dev)
} else if (test_bit(CNIC_F_BNX2X_CLASS, &dev->flags)) {
struct cnic_local *cp = dev->cnic_priv;
u32 cli = BNX2X_ISCSI_CL_ID(CNIC_E1HVN(cp));
union l5cm_specific_data l5_data;

cnic_ring_ctl(dev, BNX2X_ISCSI_L2_CID, cli, 0);

l5_data.phy_address.lo = cli;
l5_data.phy_address.hi = 0;
cnic_submit_kwqe_16(dev, RAMROD_CMD_ID_ETH_HALT,
BNX2X_ISCSI_L2_CID, ETH_CONNECTION_TYPE, &l5_data);
msleep(10);
}
}

Expand Down

0 comments on commit 8b065b6

Please sign in to comment.