diff options
author | Prasanna Mumbai <prasanna.mumbai@qlogic.com> | 2010-12-03 01:12:43 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-12-21 13:24:41 -0500 |
commit | e128271b7bcb9c8955cadbf2e18f8af288979e6b (patch) | |
tree | 167c47f2ea50836d1a37e9f79f05a8074151a4f6 /drivers/scsi/qla4xxx | |
parent | 4cd83cbef878b5d0d4c65ac0a20d12a8bf9f551d (diff) |
[SCSI] qla4xxx: cache new IP address acquired via DHCP
Prior to firmware state change from ACQUIRING to READY, an
0x8029 AEN is received. Added code to check previous state
being ACQUIRING in order to update the ip address in the driver.
Signed-off-by: Vikas Chaudhary <vikas.chaudhary@qlogic.com>
Signed-off-by: Prasanna Mumbai <prasanna.mumbai@qlogic.com>
Signed-off-by: Ravi Anand <ravi.anand@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/qla4xxx')
-rw-r--r-- | drivers/scsi/qla4xxx/ql4_isr.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/scsi/qla4xxx/ql4_isr.c b/drivers/scsi/qla4xxx/ql4_isr.c index ca862b12a8db..90a217ff3a3f 100644 --- a/drivers/scsi/qla4xxx/ql4_isr.c +++ b/drivers/scsi/qla4xxx/ql4_isr.c | |||
@@ -554,7 +554,8 @@ static void qla4xxx_isr_decode_mailbox(struct scsi_qla_host * ha, | |||
554 | /* mbox_sts[2] = Old ACB state | 554 | /* mbox_sts[2] = Old ACB state |
555 | * mbox_sts[3] = new ACB state */ | 555 | * mbox_sts[3] = new ACB state */ |
556 | if ((mbox_sts[3] == ACB_STATE_VALID) && | 556 | if ((mbox_sts[3] == ACB_STATE_VALID) && |
557 | (mbox_sts[2] == ACB_STATE_TENTATIVE)) | 557 | ((mbox_sts[2] == ACB_STATE_TENTATIVE) || |
558 | (mbox_sts[2] == ACB_STATE_ACQUIRING))) | ||
558 | set_bit(DPC_GET_DHCP_IP_ADDR, &ha->dpc_flags); | 559 | set_bit(DPC_GET_DHCP_IP_ADDR, &ha->dpc_flags); |
559 | else if ((mbox_sts[3] == ACB_STATE_ACQUIRING) && | 560 | else if ((mbox_sts[3] == ACB_STATE_ACQUIRING) && |
560 | (mbox_sts[2] == ACB_STATE_VALID)) | 561 | (mbox_sts[2] == ACB_STATE_VALID)) |