OSDN Git Service

cnic, bnx2i: Fix bug on some bnx2x devices that don't support iSCSI
authorMichael Chan <mchan@broadcom.com>
Fri, 2 Aug 2013 18:28:23 +0000 (11:28 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 2 Aug 2013 22:55:48 +0000 (15:55 -0700)
commit9e9402eb450f1c921cc130765a4554a84821feab
tree49fe4b5a17655853d79cd80de5eb8002f80ce677
parent4b42df5da8c2f394adeaa61b23e9e58994b1c3c8
cnic, bnx2i: Fix bug on some bnx2x devices that don't support iSCSI

On some bnx2x devices, iSCSI is determined to be unsupported only after
firmware is downloaded.  We need to check max_iscsi_conn again after
NETDEV_UP and block iSCSI init operations.  Without this fix, iscsiadm
can hang as the firmware will not respond to the iSCSI init message.

Signed-off-by: Eddie Wai <eddie.wai@broadcom.com>
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/cnic.c
drivers/scsi/bnx2i/bnx2i_init.c