summaryrefslogtreecommitdiff
path: root/drivers/scsi/be2iscsi/be_main.h
diff options
context:
space:
mode:
authorJitendra Bhivare <jitendra.bhivare@broadcom.com>2017-03-24 14:11:45 +0530
committerMartin K. Petersen <martin.petersen@oracle.com>2017-03-27 22:03:39 -0400
commit1e2931f134d44e413281dfc458b537d170e98596 (patch)
tree67500e8a5c44770c05a87831284bfb25da8d90b4 /drivers/scsi/be2iscsi/be_main.h
parentfecc3824696c18dbaf95abe8f3d2480b6aee76f0 (diff)
downloadlwn-1e2931f134d44e413281dfc458b537d170e98596.tar.gz
lwn-1e2931f134d44e413281dfc458b537d170e98596.zip
scsi: be2iscsi: Use num_cons field in Rx CQE
FW runs out of buffer if buffers are not posted back soon. ASYNC Rx CQE indicates that FW has consumed 8 RQEs. Use it to post back buffers instead of waiting for buffers to be processed and freed by driver. Signed-off-by: Jitendra Bhivare <jitendra.bhivare@broadcom.com> Reviewed-by: Tomas Henzl <thenzl@redhat.com> Reviewed-by: Chris Leech <cleech@redhat.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/be2iscsi/be_main.h')
-rw-r--r--drivers/scsi/be2iscsi/be_main.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/be2iscsi/be_main.h b/drivers/scsi/be2iscsi/be_main.h
index 216f9b4b7c7b..cebacac0a07f 100644
--- a/drivers/scsi/be2iscsi/be_main.h
+++ b/drivers/scsi/be2iscsi/be_main.h
@@ -634,6 +634,7 @@ struct hd_async_buf_context {
* They are posted back to FW in groups of 8.
*/
struct list_head free_list;
+ u16 pi;
};
/**