scsi: lpfc: Introduce new attention types for lpfc_sli4_async_fc_evt() handler
authorJustin Tee <justin.tee@broadcom.com>
Mon, 9 Jan 2023 23:33:15 +0000 (15:33 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 12 Jan 2023 05:03:15 +0000 (00:03 -0500)
commit96fb8c34e5c12361d1966768bf9aadc935600c62
treeef3a4d68f261637b2f1201040fdea1a073e938ca
parentf1d2337d3e58955ecbbf392ba09fabb3e72db945
scsi: lpfc: Introduce new attention types for lpfc_sli4_async_fc_evt() handler

Define new FC Link ACQE with new attention types 0x8 (Link Activation
Failure) and 0x9 (Link Reset Protocol Event).

Both attention types are meant to be informational-only type ACQEs with no
action required.

0x8 is reported for diagnostic purposes, while 0x9 is posted during a
normal link up transition when activating BB Credit Recovery feature.

As such, modify lpfc_sli4_async_fc_evt() logic to log the attention types
according to its severity and early return when informational-only
attention types are encountered.

Signed-off-by: Justin Tee <justin.tee@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_hw4.h
drivers/scsi/lpfc/lpfc_init.c
drivers/scsi/lpfc/lpfc_sli4.h