|
@@ -1193,7 +1193,9 @@ qla2x00_init_rings(scsi_qla_host_t *ha)
|
|
|
|
|
|
DEBUG(printk("scsi(%ld): Issue init firmware.\n", ha->host_no));
|
|
DEBUG(printk("scsi(%ld): Issue init firmware.\n", ha->host_no));
|
|
|
|
|
|
- mid_init_cb->count = cpu_to_le16(ha->max_npiv_vports);
|
|
|
|
|
|
+ if (ha->flags.npiv_supported)
|
|
|
|
+ mid_init_cb->count = cpu_to_le16(ha->max_npiv_vports);
|
|
|
|
+
|
|
mid_init_cb->options = __constant_cpu_to_le16(BIT_1);
|
|
mid_init_cb->options = __constant_cpu_to_le16(BIT_1);
|
|
|
|
|
|
rval = qla2x00_init_firmware(ha, ha->init_cb_size);
|
|
rval = qla2x00_init_firmware(ha, ha->init_cb_size);
|