scsi: qedi: Limit number for CQ queues.
authorManish Rangankar <manish.rangankar@cavium.com>
Thu, 10 Aug 2017 13:32:17 +0000 (06:32 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 25 Aug 2017 02:28:50 +0000 (22:28 -0400)
commit42d7c10f23786ed8521338ba6fd905a2459fa1e0
treef1504fd48f6bfdfb66b1430579b75854177645c7
parent30b67de31bc6c0cdc80c03358dc94b44cc178ba9
scsi: qedi: Limit number for CQ queues.

[qed_sp_iscsi_func_start:189(host_7-0)]Cannot satisfy CQ amount. Queues
requested 8, CQs available 4. Aborting function start

Above condition will resolve as management firmware is capable of
telling us the number of CQs available for a given PF, qed will
communicate the same number to qedi, So that qedi will know how much CQs
are allowed.

Signed-off-by: Manish Rangankar <manish.rangankar@cavium.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qedi/qedi.h
drivers/scsi/qedi/qedi_iscsi.c
drivers/scsi/qedi/qedi_main.c