Skip to content

Commit e128271

Browse files
Prasanna MumbaiJames Bottomley
authored andcommitted
[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 <[email protected]> Signed-off-by: Prasanna Mumbai <[email protected]> Signed-off-by: Ravi Anand <[email protected]> Signed-off-by: James Bottomley <[email protected]>
1 parent 4cd83cb commit e128271

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/scsi/qla4xxx/ql4_isr.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,8 @@ static void qla4xxx_isr_decode_mailbox(struct scsi_qla_host * ha,
554554
/* mbox_sts[2] = Old ACB state
555555
* mbox_sts[3] = new ACB state */
556556
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)))
558559
set_bit(DPC_GET_DHCP_IP_ADDR, &ha->dpc_flags);
559560
else if ((mbox_sts[3] == ACB_STATE_ACQUIRING) &&
560561
(mbox_sts[2] == ACB_STATE_VALID))

0 commit comments

Comments
 (0)