]> git.ipfire.org Git - thirdparty/kernel/stable.git/blobdiff - drivers/scsi/lpfc/lpfc.h
scsi: lpfc: Introduce FC_RSCN_MEMENTO flag for tracking post RSCN completion
[thirdparty/kernel/stable.git] / drivers / scsi / lpfc / lpfc.h
index f0cf8ffdc5f3ea7f6c0ba38ca04146c2ed6e256a..a62cf1a19280836a5a20f80a1aa2608b71fa3f68 100644 (file)
@@ -604,6 +604,7 @@ struct lpfc_vport {
 #define FC_VFI_REGISTERED      0x800000 /* VFI is registered */
 #define FC_FDISC_COMPLETED     0x1000000/* FDISC completed */
 #define FC_DISC_DELAYED                0x2000000/* Delay NPort discovery */
+#define FC_RSCN_MEMENTO                0x4000000/* RSCN cmd processed */
 
        uint32_t ct_flags;
 #define FC_CT_RFF_ID           0x1      /* RFF_ID accepted by switch */
@@ -897,6 +898,11 @@ enum lpfc_irq_chann_mode {
        NHT_MODE,
 };
 
+enum lpfc_hba_bit_flags {
+       FABRIC_COMANDS_BLOCKED,
+       HBA_PCI_ERR,
+};
+
 struct lpfc_hba {
        /* SCSI interface function jump table entries */
        struct lpfc_io_buf * (*lpfc_get_scsi_buf)
@@ -1043,7 +1049,6 @@ struct lpfc_hba {
                                         * Firmware supports Forced Link Speed
                                         * capability
                                         */
-#define HBA_PCI_ERR            0x80000 /* The PCI slot is offline */
 #define HBA_FLOGI_ISSUED       0x100000 /* FLOGI was issued */
 #define HBA_SHORT_CMF          0x200000 /* shorter CMF timer routine */
 #define HBA_CGN_DAY_WRAP       0x400000 /* HBA Congestion info day wraps */
@@ -1350,7 +1355,6 @@ struct lpfc_hba {
        atomic_t fabric_iocb_count;
        struct timer_list fabric_block_timer;
        unsigned long bit_flags;
-#define        FABRIC_COMANDS_BLOCKED  0
        atomic_t num_rsrc_err;
        atomic_t num_cmd_success;
        unsigned long last_rsrc_error_time;