mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-11 09:50:12 +00:00
Fix WWNN/WWPN generation for virtual channels.
MFC after: 1 week
This commit is contained in:
parent
3e92f72cfa
commit
2731e062b5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=275124
@ -6138,10 +6138,9 @@ isp_default_wwn(ispsoftc_t * isp, int chan, int isactive, int iswwnn)
|
||||
return (seed);
|
||||
}
|
||||
return (0x400000007F000009ull);
|
||||
} else {
|
||||
seed = iswwnn ? fc->def_wwnn : fc->def_wwpn;
|
||||
}
|
||||
|
||||
seed = iswwnn ? fc->def_wwnn : fc->def_wwpn;
|
||||
|
||||
/*
|
||||
* For channel zero just return what we have. For either ACTIVE or
|
||||
@ -6164,11 +6163,9 @@ isp_default_wwn(ispsoftc_t * isp, int chan, int isactive, int iswwnn)
|
||||
if (seed) {
|
||||
return (seed);
|
||||
}
|
||||
if (isactive) {
|
||||
seed = iswwnn ? ISP_FC_PC(isp, 0)->def_wwnn : ISP_FC_PC(isp, 0)->def_wwpn;
|
||||
if (seed == 0)
|
||||
seed = iswwnn ? FCPARAM(isp, 0)->isp_wwnn_nvram : FCPARAM(isp, 0)->isp_wwpn_nvram;
|
||||
} else {
|
||||
seed = iswwnn ? ISP_FC_PC(isp, 0)->def_wwnn : ISP_FC_PC(isp, 0)->def_wwpn;
|
||||
}
|
||||
|
||||
if (((seed >> 60) & 0xf) == 2) {
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user