iw_cxgb4: Check for send WR also while posting write with completion WR
authorPotnuri Bharat Teja <bharat@chelsio.com>
Mon, 24 Dec 2018 15:24:51 +0000 (20:54 +0530)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 7 Jan 2019 19:02:45 +0000 (12:02 -0700)
commite6b7b7d8a9b999ffed814267b34443155fae1245
treedd66a65c858d30b8fafe3a60e99bf4ae14cfb71f
parent5aad26a7eac5a15f6a87ab83da8bebc3500c1915
iw_cxgb4: Check for send WR also while posting write with completion WR

Inorder to optimize the NVMEoF read IOPs, iw_cxgb4 posts a FW Write with
Completion WQE that combines an RDMA Write WR and the subsequent RDMA Send
with Invalidate WR.

This patch is an extension to it, where it posts a Write with completion
for RDMA WRITE WR + RDMA SEND WR combination as well.

Reviewed-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Potnuri Bharat Teja <bharat@chelsio.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/cxgb4/qp.c