mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
Use MPT_MAX_LUNS as maximium number of LUNs, not 7, for SAS and FC cases.
This matches Linux driver behavior. Discussed with: scottl Approved by: re (kensmith) MFC after: 1 month
This commit is contained in:
parent
1635f0499e
commit
c4f739ec0c
1 changed files with 4 additions and 1 deletions
|
|
@ -3588,7 +3588,10 @@ mpt_action(struct cam_sim *sim, union ccb *ccb)
|
|||
if (mpt->is_spi && cpi->max_target > 15) {
|
||||
cpi->max_target = 15;
|
||||
}
|
||||
cpi->max_lun = 7;
|
||||
if (mpt->is_spi)
|
||||
cpi->max_lun = 7;
|
||||
else
|
||||
cpi->max_lun = MPT_MAX_LUNS;
|
||||
cpi->initiator_id = mpt->mpt_ini_id;
|
||||
cpi->bus_id = cam_sim_bus(sim);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue