RDMA/hns: Modify the usage of cmd_sn in hip08
authoroulijun <oulijun@huawei.com>
Fri, 10 Nov 2017 08:55:53 +0000 (16:55 +0800)
committerDoug Ledford <dledford@redhat.com>
Fri, 10 Nov 2017 17:32:43 +0000 (12:32 -0500)
commit26beb85f4168dba76a197883065398a55ce11cf4
tree4698ae9976d10886a61cc40b5ddd8dbec863a14d
parent0203b14c4f32b9b6e526db910844222705fc6e5f
RDMA/hns: Modify the usage of cmd_sn in hip08

The cmd_sn field of CQ doorbell inits for 0. It should be
increment on each first db rung after a completion Event.
if the cmd_sn of notify doorbell Adjacent two times is the
same, the hardware will distinguish it for the same notify
request and update its type according to the priority level
of next event and solicited event.

Signed-off-by: Lijun Ou <oulijun@huawei.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hns/hns_roce_cq.c
drivers/infiniband/hw/hns/hns_roce_device.h
drivers/infiniband/hw/hns/hns_roce_hw_v2.c