summaryrefslogtreecommitdiff
path: root/sys/dev/isp/isp.c
diff options
context:
space:
mode:
authorKenneth D. Merry <ken@FreeBSD.org>2019-05-31 20:15:29 +0000
committerKenneth D. Merry <ken@FreeBSD.org>2019-05-31 20:15:29 +0000
commit7aacf0554b29d47d340eccf6dca1b31eba35dd61 (patch)
treed2f1b525509f0236041fd52e4889bd709d943e8f /sys/dev/isp/isp.c
parentc3069ab60e541611c806298f620854886aa26f62 (diff)
Notes
Diffstat (limited to 'sys/dev/isp/isp.c')
-rw-r--r--sys/dev/isp/isp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/isp/isp.c b/sys/dev/isp/isp.c
index 77f5045783e4..b81e3de28022 100644
--- a/sys/dev/isp/isp.c
+++ b/sys/dev/isp/isp.c
@@ -3251,7 +3251,8 @@ isp_pdb_add_update(ispsoftc_t *isp, int chan, isp_pdb_t *pdb)
if (lp->portid == pdb->portid &&
lp->handle == pdb->handle &&
lp->prli_word3 == pdb->prli_word3 &&
- ((pdb->prli_word0 & PRLI_WD0_EST_IMAGE_PAIR) == 0)) {
+ ((pdb->prli_word0 & PRLI_WD0_EST_IMAGE_PAIR) ==
+ (lp->prli_word0 & PRLI_WD0_EST_IMAGE_PAIR))) {
if (lp->state != FC_PORTDB_STATE_NEW)
lp->state = FC_PORTDB_STATE_VALID;
isp_prt(isp, ISP_LOG_SANCFG,
@@ -3282,6 +3283,7 @@ isp_pdb_add_update(ispsoftc_t *isp, int chan, isp_pdb_t *pdb)
lp->probational = 0;
lp->state = FC_PORTDB_STATE_NEW;
lp->portid = lp->new_portid = pdb->portid;
+ lp->prli_word0 = lp->new_prli_word0 = pdb->prli_word0;
lp->prli_word3 = lp->new_prli_word3 = pdb->prli_word3;
lp->handle = pdb->handle;
lp->port_wwn = wwpn;