"\t\t0x10 - fcoe L2 fame related logs.\n"
                "\t\t0xff - LOG all messages.");
 
+uint bnx2fc_devloss_tmo;
+module_param_named(devloss_tmo, bnx2fc_devloss_tmo, uint, S_IRUGO);
+MODULE_PARM_DESC(devloss_tmo, " Change devloss_tmo for the remote ports "
+       "attached via bnx2fc.");
+
+uint bnx2fc_max_luns = BNX2FC_MAX_LUN;
+module_param_named(max_luns, bnx2fc_max_luns, uint, S_IRUGO);
+MODULE_PARM_DESC(max_luns, " Change the default max_lun per SCSI host. Default "
+       "0xffff.");
+
+uint bnx2fc_queue_depth;
+module_param_named(queue_depth, bnx2fc_queue_depth, uint, S_IRUGO);
+MODULE_PARM_DESC(queue_depth, " Change the default queue depth of SCSI devices "
+       "attached via bnx2fc.");
+
 static int bnx2fc_cpu_callback(struct notifier_block *nfb,
                             unsigned long action, void *hcpu);
 /* notification function for CPU hotplug events */
        int rc = 0;
 
        shost->max_cmd_len = BNX2FC_MAX_CMD_LEN;
-       shost->max_lun = BNX2FC_MAX_LUN;
+       shost->max_lun = bnx2fc_max_luns;
        shost->max_id = BNX2FC_MAX_FCP_TGT;
        shost->max_channel = 0;
        if (lport->vport)
                return -EIO;
        }
 
+       if (bnx2fc_devloss_tmo)
+               fc_host_dev_loss_tmo(vn_port->host) = bnx2fc_devloss_tmo;
+
        if (disabled) {
                fc_vport_set_state(vport, FC_VPORT_DISABLED);
        } else {
        }
        fc_host_port_type(lport->host) = FC_PORTTYPE_UNKNOWN;
 
+       if (bnx2fc_devloss_tmo)
+               fc_host_dev_loss_tmo(shost) = bnx2fc_devloss_tmo;
+
        /* Allocate exchange manager */
        if (!npiv)
                rc = bnx2fc_em_config(lport, hba);
        ctlr = bnx2fc_to_ctlr(interface);
        cdev = fcoe_ctlr_to_ctlr_dev(ctlr);
        interface->vlan_id = vlan_id;
+       interface->tm_timeout = BNX2FC_TM_TIMEOUT;
 
        interface->timer_work_queue =
                        create_singlethread_workqueue("bnx2fc_timer_wq");
        return NOTIFY_OK;
 }
 
+static int bnx2fc_slave_configure(struct scsi_device *sdev)
+{
+       if (!bnx2fc_queue_depth)
+               return 0;
+
+       scsi_change_queue_depth(sdev, bnx2fc_queue_depth);
+       return 0;
+}
+
 /**
  * bnx2fc_mod_init - module init entry point
  *
        .bsg_request = fc_lport_bsg_request,
 };
 
+/*
+ * Additional scsi_host attributes.
+ */
+static ssize_t
+bnx2fc_tm_timeout_show(struct device *dev, struct device_attribute *attr,
+       char *buf)
+{
+       struct Scsi_Host *shost = class_to_shost(dev);
+       struct fc_lport *lport = shost_priv(shost);
+       struct fcoe_port *port = lport_priv(lport);
+       struct bnx2fc_interface *interface = port->priv;
+
+       sprintf(buf, "%u\n", interface->tm_timeout);
+       return strlen(buf);
+}
+
+static ssize_t
+bnx2fc_tm_timeout_store(struct device *dev,
+       struct device_attribute *attr, const char *buf, size_t count)
+{
+       struct Scsi_Host *shost = class_to_shost(dev);
+       struct fc_lport *lport = shost_priv(shost);
+       struct fcoe_port *port = lport_priv(lport);
+       struct bnx2fc_interface *interface = port->priv;
+       int rval, val;
+
+       rval = kstrtouint(buf, 10, &val);
+       if (rval)
+               return rval;
+       if (val > 255)
+               return -ERANGE;
+
+       interface->tm_timeout = (u8)val;
+       return strlen(buf);
+}
+
+static DEVICE_ATTR(tm_timeout, S_IRUGO|S_IWUSR, bnx2fc_tm_timeout_show,
+       bnx2fc_tm_timeout_store);
+
+static struct device_attribute *bnx2fc_host_attrs[] = {
+       &dev_attr_tm_timeout,
+       NULL,
+};
+
 /**
  * scsi_host_template structure used while registering with SCSI-ml
  */
        .sg_tablesize           = BNX2FC_MAX_BDS_PER_CMD,
        .max_sectors            = 1024,
        .track_queue_depth      = 1,
+       .slave_configure        = bnx2fc_slave_configure,
+       .shost_attrs            = bnx2fc_host_attrs,
 };
 
 static struct libfc_function_template bnx2fc_libfc_fcn_templ = {