]> git.ipfire.org Git - people/arne_f/kernel.git/commit
scsi: lpfc: Cap NPIV vports to 256
authorJames Smart <jsmart2021@gmail.com>
Fri, 30 Nov 2018 00:09:33 +0000 (16:09 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 17 Dec 2019 19:39:54 +0000 (20:39 +0100)
commit3bfe0a6aa251c88aa439e8a09fc68a858d6eecc9
treeb0e02555b7f36e11c46f8fb6ce2ff71bfb9459c1
parent0f3c518936e275eeb4a5608a171350bbd0b74ae5
scsi: lpfc: Cap NPIV vports to 256

[ Upstream commit 8b47ae69e049ae0b3373859d901f0334322f9fe9 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/scsi/lpfc/lpfc.h
drivers/scsi/lpfc/lpfc_attr.c
drivers/scsi/lpfc/lpfc_init.c