From patchwork Thu Feb 20 02:56:00 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Weihang Li X-Patchwork-Id: 11393139 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D0AC817EF for ; Thu, 20 Feb 2020 03:00:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id AFD7624676 for ; Thu, 20 Feb 2020 03:00:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727469AbgBTDAV (ORCPT ); Wed, 19 Feb 2020 22:00:21 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:10646 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727208AbgBTDAV (ORCPT ); Wed, 19 Feb 2020 22:00:21 -0500 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 171C6883C30BB2C6B99C; Thu, 20 Feb 2020 11:00:18 +0800 (CST) Received: from localhost.localdomain (10.67.165.24) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.439.0; Thu, 20 Feb 2020 11:00:07 +0800 From: Weihang Li To: , CC: , , Subject: [PATCH v3 for-next 0/7] RDMA/hns: Refactor qp related code Date: Thu, 20 Feb 2020 10:56:00 +0800 Message-ID: <1582167367-50380-1-git-send-email-liweihang@huawei.com> X-Mailer: git-send-email 2.8.1 MIME-Version: 1.0 X-Originating-IP: [10.67.165.24] X-CFilter-Loop: Reflected Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org This series refactor qp related code, including creating, destroying qp and so on to make the processs easier to understand and maintain. Previous disscussion can be found at: https://patchwork.kernel.org/cover/11372841/ https://patchwork.kernel.org/cover/11341265/ Changes since v2: - Change some macros into static inline functions as Jason suggested. - Unify all prints into format of "Failed to xxx". - Rebase against Jason's for-next branch. Changes since v1: - Reduce the number of prints as Leon suggested. - Fix a wrong function name in description of patch 4/7. Xi Wang (7): RDMA/hns: Optimize qp destroy flow RDMA/hns: Optimize qp context create and destroy flow RDMA/hns: Optimize qp number assign flow RDMA/hns: Optimize qp buffer allocation flow RDMA/hns: Optimize qp param setup flow RDMA/hns: Optimize kernel qp wrid allocation flow RDMA/hns: Optimize qp doorbell allocation flow drivers/infiniband/hw/hns/hns_roce_device.h | 6 +- drivers/infiniband/hw/hns/hns_roce_hw_v1.c | 19 +- drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 43 +- drivers/infiniband/hw/hns/hns_roce_qp.c | 808 ++++++++++++++++------------ 4 files changed, 465 insertions(+), 411 deletions(-)