diff options
author | James Smart <james.smart@broadcom.com> | 2016-07-06 15:36:00 -0400 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2016-07-15 15:25:06 -0400 |
commit | 7bdedb34a0ac1a4b30224c6945eaaebc6fae779a (patch) | |
tree | 0c6ebf30d929cf93fc180c8ae5c74bf9b6826925 /drivers/scsi/lpfc/lpfc_attr.c | |
parent | 08dcd4cf3be26024ade20ff7c9f436a2cff83792 (diff) |
lpfc: Add MDS Diagnostics Support
Add MDS Diagnostics Support
Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: James Smart <james.smart@broadcom.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_attr.c')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_attr.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/scsi/lpfc/lpfc_attr.c b/drivers/scsi/lpfc/lpfc_attr.c index cfec2eca4dd3..cde7da6af2ea 100644 --- a/drivers/scsi/lpfc/lpfc_attr.c +++ b/drivers/scsi/lpfc/lpfc_attr.c | |||
@@ -4780,6 +4780,14 @@ LPFC_ATTR_R(prot_sg_seg_cnt, LPFC_DEFAULT_SG_SEG_CNT, | |||
4780 | LPFC_DEFAULT_SG_SEG_CNT, LPFC_MAX_SG_SEG_CNT, | 4780 | LPFC_DEFAULT_SG_SEG_CNT, LPFC_MAX_SG_SEG_CNT, |
4781 | "Max Protection Scatter Gather Segment Count"); | 4781 | "Max Protection Scatter Gather Segment Count"); |
4782 | 4782 | ||
4783 | /* | ||
4784 | * lpfc_enable_mds_diags: Enable MDS Diagnostics | ||
4785 | * 0 = MDS Diagnostics disabled (default) | ||
4786 | * 1 = MDS Diagnostics enabled | ||
4787 | * Value range is [0,1]. Default value is 0. | ||
4788 | */ | ||
4789 | LPFC_ATTR_R(enable_mds_diags, 0, 0, 1, "Enable MDS Diagnostics"); | ||
4790 | |||
4783 | struct device_attribute *lpfc_hba_attrs[] = { | 4791 | struct device_attribute *lpfc_hba_attrs[] = { |
4784 | &dev_attr_bg_info, | 4792 | &dev_attr_bg_info, |
4785 | &dev_attr_bg_guard_err, | 4793 | &dev_attr_bg_guard_err, |
@@ -4876,6 +4884,7 @@ struct device_attribute *lpfc_hba_attrs[] = { | |||
4876 | &dev_attr_lpfc_sriov_hw_max_virtfn, | 4884 | &dev_attr_lpfc_sriov_hw_max_virtfn, |
4877 | &dev_attr_protocol, | 4885 | &dev_attr_protocol, |
4878 | &dev_attr_lpfc_xlane_supported, | 4886 | &dev_attr_lpfc_xlane_supported, |
4887 | &dev_attr_lpfc_enable_mds_diags, | ||
4879 | NULL, | 4888 | NULL, |
4880 | }; | 4889 | }; |
4881 | 4890 | ||
@@ -5867,6 +5876,7 @@ lpfc_get_cfgparam(struct lpfc_hba *phba) | |||
5867 | lpfc_suppress_link_up_init(phba, lpfc_suppress_link_up); | 5876 | lpfc_suppress_link_up_init(phba, lpfc_suppress_link_up); |
5868 | lpfc_iocb_cnt_init(phba, lpfc_iocb_cnt); | 5877 | lpfc_iocb_cnt_init(phba, lpfc_iocb_cnt); |
5869 | phba->cfg_enable_dss = 1; | 5878 | phba->cfg_enable_dss = 1; |
5879 | lpfc_enable_mds_diags_init(phba, lpfc_enable_mds_diags); | ||
5870 | return; | 5880 | return; |
5871 | } | 5881 | } |
5872 | 5882 | ||