/* This should be called by partial offload and software iscsi drivers to add a host to the system.  */
int iscsi_host_add(struct Scsi_Host *shost, struct device *pdev)
/* This should be called by partial offload and software iscsi drivers to add a host to the system.  */
int iscsi_host_add(struct Scsi_Host *shost, struct device *pdev)
{
	if (!shost->can_queue)
		shost->can_queue = ISCSI_DEF_XMIT_CMDS_MAX;
	if (!shost->cmd_per_lun)
		shost->cmd_per_lun = ISCSI_DEF_CMD_PER_LUN;
	if (!shost->transportt->eh_timed_out)
		shost->transportt->eh_timed_out = iscsi_eh_cmd_timed_out;
	return scsi_add_host(shost, pdev);
}