netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] cnic: Send delete command when shutting down iSCSI ring.
@ 2009-12-11  1:40 Michael Chan
  2009-12-11  1:40 ` [PATCH 2/2] cnic: Zero out status block and Event Queue indices Michael Chan
  2009-12-11 23:17 ` [PATCH 1/2] cnic: Send delete command when shutting down iSCSI ring David Miller
  0 siblings, 2 replies; 4+ messages in thread
From: Michael Chan @ 2009-12-11  1:40 UTC (permalink / raw)
  To: davem; +Cc: netdev

This step is necessary on the bnx2x devices when restarting the iSCSI
ring.  Without it, the firmware can assert and cause bnx2x to report
errors.

Signed-off-by: Michael Chan <mchan@broadcom.com>
---
 drivers/net/cnic.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/drivers/net/cnic.c b/drivers/net/cnic.c
index d4c6e7f..a2c3328 100644
--- a/drivers/net/cnic.c
+++ b/drivers/net/cnic.c
@@ -4183,6 +4183,12 @@ static void cnic_shutdown_rings(struct cnic_dev *dev)
 		cnic_submit_kwqe_16(dev, RAMROD_CMD_ID_ETH_HALT,
 			BNX2X_ISCSI_L2_CID, ETH_CONNECTION_TYPE, &l5_data);
 		msleep(10);
+
+		memset(&l5_data, 0, sizeof(l5_data));
+		cnic_submit_kwqe_16(dev, RAMROD_CMD_ID_ETH_CFC_DEL,
+			BNX2X_ISCSI_L2_CID, ETH_CONNECTION_TYPE |
+			(1 << SPE_HDR_COMMON_RAMROD_SHIFT), &l5_data);
+		msleep(10);
 	}
 }
 
-- 
1.6.4.GIT



^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-12-11 23:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-11  1:40 [PATCH 1/2] cnic: Send delete command when shutting down iSCSI ring Michael Chan
2009-12-11  1:40 ` [PATCH 2/2] cnic: Zero out status block and Event Queue indices Michael Chan
2009-12-11 23:17   ` David Miller
2009-12-11 23:17 ` [PATCH 1/2] cnic: Send delete command when shutting down iSCSI ring David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).