aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/lpfc/lpfc_attr.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_attr.c')
-rw-r--r--drivers/scsi/lpfc/lpfc_attr.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/scsi/lpfc/lpfc_attr.c b/drivers/scsi/lpfc/lpfc_attr.c
index 23ce45708335..87c2b6b858f7 100644
--- a/drivers/scsi/lpfc/lpfc_attr.c
+++ b/drivers/scsi/lpfc/lpfc_attr.c
@@ -4370,6 +4370,14 @@ lpfc_get_starget_port_name(struct scsi_target *starget)
4370 ndlp ? wwn_to_u64(ndlp->nlp_portname.u.wwn) : 0; 4370 ndlp ? wwn_to_u64(ndlp->nlp_portname.u.wwn) : 0;
4371} 4371}
4372 4372
4373static void
4374lpfc_get_host_def_loss_tmo(struct Scsi_Host *shost)
4375{
4376 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
4377
4378 fc_host_def_dev_loss_tmo(shost) = vport->cfg_devloss_tmo;
4379}
4380
4373/** 4381/**
4374 * lpfc_set_rport_loss_tmo - Set the rport dev loss tmo 4382 * lpfc_set_rport_loss_tmo - Set the rport dev loss tmo
4375 * @rport: fc rport address. 4383 * @rport: fc rport address.
@@ -4478,6 +4486,7 @@ struct fc_function_template lpfc_transport_functions = {
4478 .get_host_fabric_name = lpfc_get_host_fabric_name, 4486 .get_host_fabric_name = lpfc_get_host_fabric_name,
4479 .show_host_fabric_name = 1, 4487 .show_host_fabric_name = 1,
4480 4488
4489 .get_host_def_dev_loss_tmo = lpfc_get_host_def_loss_tmo,
4481 /* 4490 /*
4482 * The LPFC driver treats linkdown handling as target loss events 4491 * The LPFC driver treats linkdown handling as target loss events
4483 * so there are no sysfs handlers for link_down_tmo. 4492 * so there are no sysfs handlers for link_down_tmo.
@@ -4545,6 +4554,7 @@ struct fc_function_template lpfc_vport_transport_functions = {
4545 .get_host_fabric_name = lpfc_get_host_fabric_name, 4554 .get_host_fabric_name = lpfc_get_host_fabric_name,
4546 .show_host_fabric_name = 1, 4555 .show_host_fabric_name = 1,
4547 4556
4557 .get_host_def_dev_loss_tmo = lpfc_get_host_def_loss_tmo,
4548 /* 4558 /*
4549 * The LPFC driver treats linkdown handling as target loss events 4559 * The LPFC driver treats linkdown handling as target loss events
4550 * so there are no sysfs handlers for link_down_tmo. 4560 * so there are no sysfs handlers for link_down_tmo.