scsi: lpfc: Cap NPIV vports to 256
Depending on the chipset, the number of NPIV vports may vary and be in excess of what most switches support (256). To avoid confusion with the users, limit the reported NPIV vports to 256. Additionally correct the 16G adapter which is reporting a bogus NPIV vport number if the link is down. Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com> Signed-off-by: James Smart <jsmart2021@gmail.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:

committed by
Martin K. Petersen

parent
5a9eeff57f
commit
8b47ae69e0
@@ -7958,6 +7958,9 @@ lpfc_sli4_read_config(struct lpfc_hba *phba)
|
||||
bf_get(lpfc_mbx_rd_conf_xri_base, rd_config);
|
||||
phba->sli4_hba.max_cfg_param.max_vpi =
|
||||
bf_get(lpfc_mbx_rd_conf_vpi_count, rd_config);
|
||||
/* Limit the max we support */
|
||||
if (phba->sli4_hba.max_cfg_param.max_vpi > LPFC_MAX_VPORTS)
|
||||
phba->sli4_hba.max_cfg_param.max_vpi = LPFC_MAX_VPORTS;
|
||||
phba->sli4_hba.max_cfg_param.vpi_base =
|
||||
bf_get(lpfc_mbx_rd_conf_vpi_base, rd_config);
|
||||
phba->sli4_hba.max_cfg_param.max_rpi =
|
||||
|
Reference in New Issue
Block a user