diff options
author | Justin Tee <justin.tee@broadcom.com> | 2023-01-09 15:33:15 -0800 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2023-01-12 00:03:15 -0500 |
commit | 96fb8c34e5c12361d1966768bf9aadc935600c62 (patch) | |
tree | ef3a4d68f261637b2f1201040fdea1a073e938ca /drivers/scsi/lpfc/lpfc_sli4.h | |
parent | f1d2337d3e58955ecbbf392ba09fabb3e72db945 (diff) | |
download | linux-stable-96fb8c34e5c12361d1966768bf9aadc935600c62.tar.gz linux-stable-96fb8c34e5c12361d1966768bf9aadc935600c62.tar.bz2 linux-stable-96fb8c34e5c12361d1966768bf9aadc935600c62.zip |
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>
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_sli4.h')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_sli4.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/scsi/lpfc/lpfc_sli4.h b/drivers/scsi/lpfc/lpfc_sli4.h index f927c2a25d54..babdf29245d4 100644 --- a/drivers/scsi/lpfc/lpfc_sli4.h +++ b/drivers/scsi/lpfc/lpfc_sli4.h @@ -291,8 +291,9 @@ struct lpfc_sli4_link { uint8_t type; uint8_t number; uint8_t fault; - uint32_t logical_speed; + uint8_t link_status; uint16_t topology; + uint32_t logical_speed; }; struct lpfc_fcf_rec { |