|
@@ -161,6 +161,21 @@ void bnx2i_start(void *handle)
|
|
|
struct bnx2i_hba *hba = handle;
|
|
|
int i = HZ;
|
|
|
|
|
|
+ if (!hba->cnic->max_iscsi_conn) {
|
|
|
+ printk(KERN_ALERT "bnx2i: dev %s does not support "
|
|
|
+ "iSCSI\n", hba->netdev->name);
|
|
|
+
|
|
|
+ if (test_bit(BNX2I_CNIC_REGISTERED, &hba->reg_with_cnic)) {
|
|
|
+ mutex_lock(&bnx2i_dev_lock);
|
|
|
+ list_del_init(&hba->link);
|
|
|
+ adapter_count--;
|
|
|
+ hba->cnic->unregister_device(hba->cnic, CNIC_ULP_ISCSI);
|
|
|
+ clear_bit(BNX2I_CNIC_REGISTERED, &hba->reg_with_cnic);
|
|
|
+ mutex_unlock(&bnx2i_dev_lock);
|
|
|
+ bnx2i_free_hba(hba);
|
|
|
+ }
|
|
|
+ return;
|
|
|
+ }
|
|
|
bnx2i_send_fw_iscsi_init_msg(hba);
|
|
|
while (!test_bit(ADAPTER_STATE_UP, &hba->adapter_state) && i--)
|
|
|
msleep(BNX2I_INIT_POLL_TIME);
|