Netdev List
 help / color / mirror / Atom feed
* [PATCH] bnx2x: Initialize cnic status block during chip reset
@ 2009-12-23 14:02 Eilon Greenstein
  2009-12-26  1:14 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Eilon Greenstein @ 2009-12-23 14:02 UTC (permalink / raw)
  To: David Miller; +Cc: Michael Chan, netdev

From: Michael Chan <mchan@broadcom.com>

When the device is reset during MTU change, ring size change, or self
test, etc, the cnic status block needs to be properly initialized if
cnic is registered.

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

diff --git a/drivers/net/bnx2x_main.c b/drivers/net/bnx2x_main.c
index 77ba135..306c2b8 100644
--- a/drivers/net/bnx2x_main.c
+++ b/drivers/net/bnx2x_main.c
@@ -7593,6 +7593,8 @@ static int bnx2x_nic_load(struct bnx2x *bp, int load_mode)
 		if (bp->cnic_eth_dev.drv_state & CNIC_DRV_STATE_REGD) {
 			bnx2x_set_iscsi_eth_mac_addr(bp, 1);
 			bp->cnic_flags |= BNX2X_CNIC_FLAG_MAC_SET;
+			bnx2x_init_sb(bp, bp->cnic_sb, bp->cnic_sb_mapping,
+				      CNIC_SB_ID(bp));
 		}
 		mutex_unlock(&bp->cnic_mutex);
 #endif
-- 
1.5.4.3





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

* Re: [PATCH] bnx2x: Initialize cnic status block during chip reset
  2009-12-23 14:02 [PATCH] bnx2x: Initialize cnic status block during chip reset Eilon Greenstein
@ 2009-12-26  1:14 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2009-12-26  1:14 UTC (permalink / raw)
  To: eilong; +Cc: mchan, netdev

From: "Eilon Greenstein" <eilong@broadcom.com>
Date: Wed, 23 Dec 2009 16:02:45 +0200

> From: Michael Chan <mchan@broadcom.com>
> 
> When the device is reset during MTU change, ring size change, or self
> test, etc, the cnic status block needs to be properly initialized if
> cnic is registered.
> 
> Signed-off-by: Michael Chan <mchan@broadcom.com>
> Signed-off-by: Eilon Greenstein <eilong@broadcom.com>

Applied, thanks.

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

end of thread, other threads:[~2009-12-26  1:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-23 14:02 [PATCH] bnx2x: Initialize cnic status block during chip reset Eilon Greenstein
2009-12-26  1:14 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox