From patchwork Wed Jul 25 07:29:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lijun Ou X-Patchwork-Id: 10543505 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5022314BC for ; Wed, 25 Jul 2018 06:58:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 40A59297C0 for ; Wed, 25 Jul 2018 06:58:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 350B2297D4; Wed, 25 Jul 2018 06:58:53 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DAA70297C0 for ; Wed, 25 Jul 2018 06:58:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728481AbeGYIJG (ORCPT ); Wed, 25 Jul 2018 04:09:06 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:59236 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728366AbeGYIJF (ORCPT ); Wed, 25 Jul 2018 04:09:05 -0400 Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 61CB7B0AE45CC; Wed, 25 Jul 2018 14:58:45 +0800 (CST) Received: from linux-ioko.site (10.71.200.31) by DGGEMS403-HUB.china.huawei.com (10.3.19.203) with Microsoft SMTP Server id 14.3.382.0; Wed, 25 Jul 2018 14:58:42 +0800 From: Lijun Ou To: , CC: , Subject: [PATCH for-next 00/13] Updates hns for v4.19 Date: Wed, 25 Jul 2018 15:29:28 +0800 Message-ID: <1532503781-45205-1-git-send-email-oulijun@huawei.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 X-Originating-IP: [10.71.200.31] X-CFilter-Loop: Reflected Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch series mainly optimizes some lines for hns, included return correct errono and some bugfixes as well as expose modify cq verbs for user. Lijun Ou (13): RDMA/hns: Only assgin the fields of av if IB_QP_AV bit is set RDMA/hns: Optimized the verb of creating ah RDMA/hns: Fix the bug for init cmq RDMA/hns: Assign the value for vlan field of qp context RDMA/hns: Add 50GE type of hnae3 device match RDMA/hns: Modify qp will return errno When qp type is illegal RDMA/hns: Use macro instead of magic number RDMA/hns: Return correct result with hns_roce_v1_rsv_lp_qp function RDMA/hns: Add illegal hop_num judgement RDMA/hns: Use delay instead of usleep RDMA/hns: Some updates for the fields of address handle RDMA/hns: Update the data type of immediate data RDMA/hns: Only enable modify cq if uverbs_ex_cmd_mask set drivers/infiniband/hw/hns/hns_roce_ah.c | 74 +++++++----- drivers/infiniband/hw/hns/hns_roce_device.h | 2 +- drivers/infiniband/hw/hns/hns_roce_hem.c | 7 +- drivers/infiniband/hw/hns/hns_roce_hw_v1.c | 11 +- drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 176 ++++++++++++++++++++-------- drivers/infiniband/hw/hns/hns_roce_hw_v2.h | 13 +- drivers/infiniband/hw/hns/hns_roce_main.c | 6 +- 7 files changed, 202 insertions(+), 87 deletions(-)