Commit ce1b591c authored by James Smart's avatar James Smart Committed by Martin K. Petersen

scsi: lpfc: Add changes to assist in NVMET debugging

Inconsistent error messages and context state checks

Context state sanity checks were not accurate or inconsistent in the
code paths.

Separated LS context states from FCP.
Added and modified context state sanity checks.
Use context state to determine if a sol or unsol ABORT is needed.
Signed-off-by: default avatarDick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: default avatarJames Smart <james.smart@broadcom.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 7d790f04
This diff is collapsed.
...@@ -93,12 +93,14 @@ struct lpfc_nvmet_rcv_ctx { ...@@ -93,12 +93,14 @@ struct lpfc_nvmet_rcv_ctx {
uint16_t cpu; uint16_t cpu;
uint16_t state; uint16_t state;
/* States */ /* States */
#define LPFC_NVMET_STE_FREE 0 #define LPFC_NVMET_STE_LS_RCV 1
#define LPFC_NVMET_STE_RCV 1 #define LPFC_NVMET_STE_LS_ABORT 2
#define LPFC_NVMET_STE_DATA 2 #define LPFC_NVMET_STE_LS_RSP 3
#define LPFC_NVMET_STE_ABORT 3 #define LPFC_NVMET_STE_RCV 4
#define LPFC_NVMET_STE_RSP 4 #define LPFC_NVMET_STE_DATA 5
#define LPFC_NVMET_STE_DONE 5 #define LPFC_NVMET_STE_ABORT 6
#define LPFC_NVMET_STE_DONE 7
#define LPFC_NVMET_STE_FREE 0xff
uint16_t flag; uint16_t flag;
#define LPFC_NVMET_IO_INP 0x1 /* IO is in progress on exchange */ #define LPFC_NVMET_IO_INP 0x1 /* IO is in progress on exchange */
#define LPFC_NVMET_ABORT_OP 0x2 /* Abort WQE issued on exchange */ #define LPFC_NVMET_ABORT_OP 0x2 /* Abort WQE issued on exchange */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment