scsi: lpfc: Cap CMF read bytes to MBPI
authorJames Smart <jsmart2021@gmail.com>
Sat, 4 Dec 2021 00:26:42 +0000 (16:26 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 7 Dec 2021 03:35:37 +0000 (22:35 -0500)
commit05116ef9c4b444f7fdbb56f9e13c2ec941726639
treec1985d23a9ddeab91f057100e7078ee81a50094b
parenta6269f837045acb02904f31f05acde847ec8f8a7
scsi: lpfc: Cap CMF read bytes to MBPI

Ensure read bytes data does not go over MBPI for CMF timer intervals that
are purposely shortened.

Link: https://lore.kernel.org/r/20211204002644.116455-8-jsmart2021@gmail.com
Co-developed-by: Justin Tee <justin.tee@broadcom.com>
Signed-off-by: Justin Tee <justin.tee@broadcom.com>
Signed-off-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc.h
drivers/scsi/lpfc/lpfc_init.c