1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-24 07:40:52 +00:00

Allocated MFI frames should be same as MPT frames reserved for DCMDs

Submitted by: Sumit Saxena <sumit.saxena@broadcom.com>
Reviewed by:  Kashyap Desai <Kashyap.Desai@broadcom.com>
Approved by:  Ken
MFC after:  3 days
Sponsored by:   Broadcom Inc
This commit is contained in:
Kashyap D Desai 2019-03-12 09:29:01 +00:00
parent 96fdbc90b2
commit 54f784f59a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=345058

View File

@ -2558,8 +2558,7 @@ mrsas_init_adapter(struct mrsas_softc *sc)
/* Decrement the max supported by 1, to correlate with FW */
sc->max_fw_cmds = sc->max_fw_cmds - 1;
sc->max_scsi_cmds = sc->max_fw_cmds -
(MRSAS_FUSION_INT_CMDS + MRSAS_MAX_IOCTL_CMDS);
sc->max_scsi_cmds = sc->max_fw_cmds - MRSAS_MAX_MFI_CMDS;
/* Determine allocation size of command frames */
sc->reply_q_depth = ((sc->max_fw_cmds + 1 + 15) / 16 * 16) * 2;