forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-09 95099d4622f8cb224d94e314c7a8e0df60b13f87
kernel/drivers/scsi/lpfc/lpfc_disc.h
....@@ -41,6 +41,7 @@
4141 LPFC_EVT_DEV_LOSS,
4242 LPFC_EVT_FASTPATH_MGMT_EVT,
4343 LPFC_EVT_RESET_HBA,
44
+ LPFC_EVT_RECOVER_PORT
4445 };
4546
4647 /* structure used to queue event to the discovery tasklet */
....@@ -112,6 +113,8 @@
112113 uint8_t nlp_retry; /* used for ELS retries */
113114 uint8_t nlp_fcp_info; /* class info, bits 0-3 */
114115 #define NLP_FCP_2_DEVICE 0x10 /* FCP-2 device */
116
+ u8 nlp_nvme_info; /* NVME NSLER Support */
117
+#define NLP_NVME_NSLER 0x1 /* NVME NSLER device */
115118
116119 uint16_t nlp_usg_map; /* ndlp management usage bitmap */
117120 #define NLP_USG_NODE_ACT_BIT 0x1 /* Indicate ndlp is actively used */
....@@ -126,6 +129,7 @@
126129 struct lpfc_vport *vport;
127130 struct lpfc_work_evt els_retry_evt;
128131 struct lpfc_work_evt dev_loss_evt;
132
+ struct lpfc_work_evt recovery_evt;
129133 struct kref kref;
130134 atomic_t cmd_pending;
131135 uint32_t cmd_qdepth;
....@@ -138,6 +142,7 @@
138142
139143 uint32_t nvme_fb_size; /* NVME target's supported byte cnt */
140144 #define NVME_FB_BIT_SHIFT 9 /* PRLI Rsp first burst in 512B units. */
145
+ uint32_t nlp_defer_did;
141146 };
142147 struct lpfc_node_rrq {
143148 struct list_head list;
....@@ -156,6 +161,7 @@
156161 /* Defines for nlp_flag (uint32) */
157162 #define NLP_IGNR_REG_CMPL 0x00000001 /* Rcvd rscn before we cmpl reg login */
158163 #define NLP_REG_LOGIN_SEND 0x00000002 /* sent reglogin to adapter */
164
+#define NLP_RELEASE_RPI 0x00000004 /* Release RPI to free pool */
159165 #define NLP_SUPPRESS_RSP 0x00000010 /* Remote NPort supports suppress rsp */
160166 #define NLP_PLOGI_SND 0x00000020 /* sent PLOGI request for this entry */
161167 #define NLP_PRLI_SND 0x00000040 /* sent PRLI request for this entry */
....@@ -165,6 +171,7 @@
165171 #define NLP_ELS_SND_MASK 0x000007e0 /* sent ELS request for this entry */
166172 #define NLP_NVMET_RECOV 0x00001000 /* NVMET auditing node for recovery. */
167173 #define NLP_FCP_PRLI_RJT 0x00002000 /* Rport does not support FCP PRLI. */
174
+#define NLP_UNREG_INP 0x00008000 /* UNREG_RPI cmd is in progress */
168175 #define NLP_DEFER_RM 0x00010000 /* Remove this ndlp if no longer used */
169176 #define NLP_DELAY_TMO 0x00020000 /* delay timeout is running for node */
170177 #define NLP_NPR_2B_DISC 0x00040000 /* node is included in num_disc_nodes */
....@@ -293,4 +300,4 @@
293300 #define NLP_EVT_DEVICE_RM 0xb /* Device not found in NS / ALPAmap */
294301 #define NLP_EVT_DEVICE_RECOVERY 0xc /* Device existence unknown */
295302 #define NLP_EVT_MAX_EVENT 0xd
296
-
303
+#define NLP_EVT_NOTHING_PENDING 0xff