RDMA/hns: Bugfix for CM test
authorLijun Ou <oulijun@huawei.com>
Sun, 30 Sep 2018 09:00:30 +0000 (17:00 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 3 Oct 2018 22:21:17 +0000 (16:21 -0600)
It will print the warning when the MSB bit of SLID is not zero running
cm_req_handler function that test CM. It needs to fixed zero when test
RoCE device.

Signed-off-by: Lijun Ou <oulijun@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c

index b543720c775e581e193587f1de8935858807ac63..20cc866200639b53bd1e8e7320d185849228d652 100644 (file)
@@ -2321,6 +2321,7 @@ static int hns_roce_v2_poll_one(struct hns_roce_cq *hr_cq,
                wc->src_qp = (u8)roce_get_field(cqe->byte_32,
                                                V2_CQE_BYTE_32_RMT_QPN_M,
                                                V2_CQE_BYTE_32_RMT_QPN_S);
+               wc->slid = 0;
                wc->wc_flags |= (roce_get_bit(cqe->byte_32,
                                              V2_CQE_BYTE_32_GRH_S) ?
                                              IB_WC_GRH : 0);