scsi: lpfc: revise nvme max queues to be hdwq count
authorJames Smart <jsmart2021@gmail.com>
Mon, 11 Nov 2019 23:04:00 +0000 (15:04 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 13 Nov 2019 03:21:33 +0000 (22:21 -0500)
commit542ddc9b346984cb5bbc2a923d3f3f27ae961ffa
tree1e6b47180a4023df5cf72fec258eb480d06339bf
parentbc227dde0d8b687aa525d01b0df5556d4d37eca3
scsi: lpfc: revise nvme max queues to be hdwq count

Driver is setting the initiator nvme template with a max hw queues value of
the present cpu count which is odd. It should be registering the number of
hdwq queues (queues created on the adapter).

Change to set nvme tempate, in all cases, to the number of hardware queues.

Link: https://lore.kernel.org/r/20191111230401.12958-6-jsmart2021@gmail.com
Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_nvme.c