From patchwork Tue Mar 10 11:17:59 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Weihang Li X-Patchwork-Id: 11429173 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 B179B1874 for ; Tue, 10 Mar 2020 11:21:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9C6062468E for ; Tue, 10 Mar 2020 11:21:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726395AbgCJLV4 (ORCPT ); Tue, 10 Mar 2020 07:21:56 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:53492 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726252AbgCJLV4 (ORCPT ); Tue, 10 Mar 2020 07:21:56 -0400 Received: from DGGEMS411-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 01D5543C1A6A5B411A42; Tue, 10 Mar 2020 19:21:53 +0800 (CST) Received: from localhost.localdomain (10.67.165.24) by DGGEMS411-HUB.china.huawei.com (10.3.19.211) with Microsoft SMTP Server id 14.3.487.0; Tue, 10 Mar 2020 19:21:42 +0800 From: Weihang Li To: , CC: , , Subject: [PATCH v3 for-next 0/5] RDMA/hns: Refactor wqe related codes Date: Tue, 10 Mar 2020 19:17:59 +0800 Message-ID: <1583839084-31579-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 Process of wqe is hard to understand and maintain in hns, this series refactor wqe related code, especially in hns_roce_v2_post_send(). Previous discussion could be found at: - v2: https://patchwork.kernel.org/cover/11422963/ - v1: https://patchwork.kernel.org/cover/11415395/ Changes since v2: - Remove a redundant assignment of "NULL" in patch 4/5. Changes since v1: - Fix comments from Leon about the inplementation of to_hr_opcode() in patch 3/5. - Patch 4/5 couldn't be applied. Just do a rebase. Xi Wang (5): RDMA/hns: Rename wqe buffer related functions RDMA/hns: Optimize wqe buffer filling process for post send RDMA/hns: Optimize the wr opcode conversion from ib to hns RDMA/hns: Optimize base address table config flow for qp buffer RDMA/hns: Optimize wqe buffer set flow for post send drivers/infiniband/hw/hns/hns_roce_device.h | 10 +- drivers/infiniband/hw/hns/hns_roce_hem.c | 16 +- drivers/infiniband/hw/hns/hns_roce_hw_v1.c | 9 +- drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 588 ++++++++++++++-------------- drivers/infiniband/hw/hns/hns_roce_qp.c | 48 +-- 5 files changed, 319 insertions(+), 352 deletions(-)