Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1742163
| Path | csiph.com!news.mixmin.net!feeds.phibee-telecom.net!news.panservice.it!bofh.it!news.nic.it!robomod |
|---|---|
| From | "Wei Hu (Xavier)" <xavier.huwei@huawei.com> |
| Newsgroups | linux.kernel |
| Subject | [PATCH V2 for-next 4/8] RDMA/hns: Set mask for destination qp field of qp context assignment |
| Date | Fri, 29 Sep 2017 16:50:02 +0200 |
| Message-ID | <uv4M2-7tm-17@gated-at.bofh.it> (permalink) |
| References | <uv4M2-7tm-15@gated-at.bofh.it> |
| X-Mailer | git-send-email 1.9.1 |
| MIME-Version | 1.0 |
| Content-Type | text/plain |
| X-Originating-IP | [10.71.200.31] |
| X-Cfilter-Loop | Reflected |
| X-Mirapoint-Virus-Rapid-Raw | score=unknown(0), refid=str=0001.0A020205.59CE5BC5.00A3,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0, ip=0.0.0.0, so=2014-11-16 11:51:01, dmn=2013-03-21 17:37:32 |
| X-Mirapoint-Loop-ID | 943493910379f8c91c97f4e3e5abbd36 |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 34 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | <linux-rdma@vger.kernel.org>, <xavier.huwei@huawei.com>, <lijun_nudt@163.com>, <oulijun@huawei.com>, <charles.chenxin@huawei.com>, <liuyixian@huawei.com>, <xushaobo2@huawei.com>, <zhangxiping3@huawei.com>, <linuxarm@huawei.com>, <linux-kernel@vger.kernel.org>, <shaobohsu@163.com> |
| X-Original-Date | Fri, 29 Sep 2017 23:10:10 +0800 |
| X-Original-Message-ID | <1506697814-98432-5-git-send-email-xavier.huwei@huawei.com> |
| X-Original-References | <1506697814-98432-1-git-send-email-xavier.huwei@huawei.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1742163 |
Show key headers only | View raw
From: Lijun Ou <oulijun@huawei.com> When only set IB_QP_DEST_QPN flag for attr_mask, the operation of assigning the dest_qp_num for dest_qp field of qp context is valid. Signed-off-by: Lijun Ou <oulijun@huawei.com> Signed-off-by: Wei Hu (Xavier) <xavier.huwei@huawei.com> Signed-off-by: Shaobo Xu <xushaobo2@huawei.com> --- drivers/infiniband/hw/hns/hns_roce_hw_v1.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/infiniband/hw/hns/hns_roce_hw_v1.c b/drivers/infiniband/hw/hns/hns_roce_hw_v1.c index 6f309f7..10d828c 100644 --- a/drivers/infiniband/hw/hns/hns_roce_hw_v1.c +++ b/drivers/infiniband/hw/hns/hns_roce_hw_v1.c @@ -2888,10 +2888,11 @@ static int hns_roce_v1_m_qp(struct ib_qp *ibqp, const struct ib_qp_attr *attr, QP_CONTEXT_QPC_BYTES_32_RESPONDER_RESOURCES_S, ilog2((unsigned int)attr->max_dest_rd_atomic)); - roce_set_field(context->qpc_bytes_36, - QP_CONTEXT_QPC_BYTES_36_DEST_QP_M, - QP_CONTEXT_QPC_BYTES_36_DEST_QP_S, - attr->dest_qp_num); + if (attr_mask & IB_QP_DEST_QPN) + roce_set_field(context->qpc_bytes_36, + QP_CONTEXT_QPC_BYTES_36_DEST_QP_M, + QP_CONTEXT_QPC_BYTES_36_DEST_QP_S, + attr->dest_qp_num); /* Configure GID index */ port_num = rdma_ah_get_port_num(&attr->ah_attr); -- 1.9.1
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH V2 for-next 4/8] RDMA/hns: Set mask for destination qp field of qp context assignment "Wei Hu (Xavier)" <xavier.huwei@huawei.com> - 2017-09-29 16:50 +0200 Re: [PATCH V2 for-next 4/8] RDMA/hns: Set mask for destination qp field of qp context assignment Doug Ledford <dledford@redhat.com> - 2017-09-29 18:10 +0200
csiph-web