RDMA/hns: Support flush cqe for hip08 in kernel space
authorYixian Liu <liuyixian@huawei.com>
Thu, 2 Aug 2018 02:38:05 +0000 (10:38 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 3 Aug 2018 02:03:25 +0000 (20:03 -0600)
commit0425e3e6e0c7f92f2c2a396d902871b7a81da0eb
tree594792579c94790180b2afec208bc46c6d7a86ee
parent75da96067ade4e7854379ec2f7834f3497652b1a
RDMA/hns: Support flush cqe for hip08 in kernel space

According to IB protocol, there are some cases that work requests must
return the flush error completion status through the completion queue. Due
to hardware limitation, the driver needs to assist the flush process.

This patch adds the support of flush cqe for hip08 in the cases that
needed, such as poll cqe, post send, post recv and aeqe handle.

The patch also considered the compatibility between kernel and user space.

Signed-off-by: Yixian Liu <liuyixian@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hns/hns_roce_db.c
drivers/infiniband/hw/hns/hns_roce_device.h
drivers/infiniband/hw/hns/hns_roce_hw_v2.c
drivers/infiniband/hw/hns/hns_roce_qp.c
include/uapi/rdma/hns-abi.h