]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
[SCSI] qla4xxx: Rename ACB_STATE macros with IP_ADDRSTATE macros
authorNilesh Javali <nilesh.javali@qlogic.com>
Mon, 16 Dec 2013 11:49:36 +0000 (06:49 -0500)
committerJames Bottomley <JBottomley@Parallels.com>
Sat, 15 Mar 2014 17:19:12 +0000 (10:19 -0700)
Signed-off-by: Nilesh Javali <nilesh.javali@qlogic.com>
Signed-off-by: Vikas Chaudhary <vikas.chaudhary@qlogic.com>
Reviewed-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/qla4xxx/ql4_fw.h
drivers/scsi/qla4xxx/ql4_isr.c

index 8d4092b33c070e694678aa34bbb3f0e870c94df9..e3242df75b98543bd391a8e8bb56bb46678f2655 100644 (file)
@@ -528,14 +528,14 @@ struct qla_flt_region {
 #define ACB_CONFIG_DISABLE             0x00
 #define ACB_CONFIG_SET                 0x01
 
-/* ACB State Defines */
-#define ACB_STATE_UNCONFIGURED 0x00
-#define ACB_STATE_INVALID      0x01
-#define ACB_STATE_ACQUIRING    0x02
-#define ACB_STATE_TENTATIVE    0x03
-#define ACB_STATE_DEPRICATED   0x04
-#define ACB_STATE_VALID                0x05
-#define ACB_STATE_DISABLING    0x06
+/* ACB/IP Address State Defines */
+#define IP_ADDRSTATE_UNCONFIGURED      0
+#define IP_ADDRSTATE_INVALID           1
+#define IP_ADDRSTATE_ACQUIRING         2
+#define IP_ADDRSTATE_TENTATIVE         3
+#define IP_ADDRSTATE_DEPRICATED                4
+#define IP_ADDRSTATE_PREFERRED         5
+#define IP_ADDRSTATE_DISABLING         6
 
 /* FLASH offsets */
 #define FLASH_SEGMENT_IFCB     0x04000000
@@ -698,14 +698,6 @@ struct addr_ctrl_blk {
        uint8_t ipv6_lnk_lcl_addr_state;/* 222 */
        uint8_t ipv6_addr0_state;       /* 223 */
        uint8_t ipv6_addr1_state;       /* 224 */
-#define IP_ADDRSTATE_UNCONFIGURED      0
-#define IP_ADDRSTATE_INVALID           1
-#define IP_ADDRSTATE_ACQUIRING         2
-#define IP_ADDRSTATE_TENTATIVE         3
-#define IP_ADDRSTATE_DEPRICATED                4
-#define IP_ADDRSTATE_PREFERRED         5
-#define IP_ADDRSTATE_DISABLING         6
-
        uint8_t ipv6_dflt_rtr_state;    /* 225 */
 #define IPV6_RTRSTATE_UNKNOWN                   0
 #define IPV6_RTRSTATE_MANUAL                    1
index a3c8bc7706c298a03810eb608550fa6e53ff7529..e56c6b4778cc42a35a8d7956258e397e5c9798dc 100644 (file)
@@ -781,21 +781,21 @@ static void qla4xxx_isr_decode_mailbox(struct scsi_qla_host * ha,
                                                    mbox_sts[3]);
                        /* mbox_sts[2] = Old ACB state
                         * mbox_sts[3] = new ACB state */
-                       if ((mbox_sts[3] == ACB_STATE_VALID) &&
-                           ((mbox_sts[2] == ACB_STATE_TENTATIVE) ||
-                           (mbox_sts[2] == ACB_STATE_ACQUIRING))) {
+                       if ((mbox_sts[3] == IP_ADDRSTATE_PREFERRED) &&
+                           ((mbox_sts[2] == IP_ADDRSTATE_TENTATIVE) ||
+                            (mbox_sts[2] == IP_ADDRSTATE_ACQUIRING))) {
                                set_bit(DPC_GET_DHCP_IP_ADDR, &ha->dpc_flags);
-                       } else if ((mbox_sts[3] == ACB_STATE_ACQUIRING) &&
-                                  (mbox_sts[2] == ACB_STATE_VALID)) {
+                       } else if ((mbox_sts[3] == IP_ADDRSTATE_ACQUIRING) &&
+                                  (mbox_sts[2] == IP_ADDRSTATE_PREFERRED)) {
                                if (is_qla80XX(ha))
                                        set_bit(DPC_RESET_HA_FW_CONTEXT,
                                                &ha->dpc_flags);
                                else
                                        set_bit(DPC_RESET_HA, &ha->dpc_flags);
-                       } else if (mbox_sts[3] == ACB_STATE_DISABLING) {
+                       } else if (mbox_sts[3] == IP_ADDRSTATE_DISABLING) {
                                ql4_printk(KERN_INFO, ha, "scsi%ld: %s: ACB in disabling state\n",
                                           ha->host_no, __func__);
-                       } else if ((mbox_sts[3] == ACB_STATE_UNCONFIGURED)) {
+                       } else if (mbox_sts[3] == IP_ADDRSTATE_UNCONFIGURED) {
                                complete(&ha->disable_acb_comp);
                                ql4_printk(KERN_INFO, ha, "scsi%ld: %s: ACB state unconfigured\n",
                                           ha->host_no, __func__);