From patchwork Wed Oct 26 09:50:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Haoyue Xu X-Patchwork-Id: 13020412 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A73BCC38A2D for ; Wed, 26 Oct 2022 09:51:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233389AbiJZJvz (ORCPT ); Wed, 26 Oct 2022 05:51:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54200 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230327AbiJZJvy (ORCPT ); Wed, 26 Oct 2022 05:51:54 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C49E5B7F41 for ; Wed, 26 Oct 2022 02:51:51 -0700 (PDT) Received: from dggemv703-chm.china.huawei.com (unknown [172.30.72.54]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4My3qh2TpJzmV87; Wed, 26 Oct 2022 17:46:56 +0800 (CST) Received: from kwepemm600013.china.huawei.com (7.193.23.68) by dggemv703-chm.china.huawei.com (10.3.19.46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Wed, 26 Oct 2022 17:51:49 +0800 Received: from localhost.localdomain (10.67.165.2) by kwepemm600013.china.huawei.com (7.193.23.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Wed, 26 Oct 2022 17:51:48 +0800 From: Haoyue Xu To: , CC: , , Subject: [PATCH v2 for-rc 0/5] Fix sge_num bug and add cqe inline, refactor rq inline Date: Wed, 26 Oct 2022 17:50:49 +0800 Message-ID: <20221026095054.2384620-1-xuhaoyue1@hisilicon.com> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 X-Originating-IP: [10.67.165.2] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To kwepemm600013.china.huawei.com (7.193.23.68) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org From: Luoyouming The patchset mainly fixes and refactors the code relate to inline features and supports cqe inline in user space. 1.#1-2: Fix the problem of sge 2.#3-4: Remove enable rq inline in kernel and add compatibility handling 3.#5: Support CQE inline in user space The user space part is named "libhns: Support cqe inline, handle rq inline compatibility, fix sge_num bug". Luoyouming (5): RDMA/hns: Fix ext_sge num error when post send RDMA/hns: Fix the problem of sge nums RDMA/hns: Remove enable rq inline in kernel and add compatibility handling RDMA/hns: Support cqe inline in user space RDMA/hns: Remove rq inline in kernel drivers/infiniband/hw/hns/hns_roce_device.h | 26 +-- drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 93 ++++------ drivers/infiniband/hw/hns/hns_roce_hw_v2.h | 3 +- drivers/infiniband/hw/hns/hns_roce_main.c | 28 ++- drivers/infiniband/hw/hns/hns_roce_qp.c | 180 +++++++++++--------- include/uapi/rdma/hns-abi.h | 21 +++ 6 files changed, 186 insertions(+), 165 deletions(-)