From patchwork Sun Oct 1 20:17:09 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Wei Hu (Xavier)" X-Patchwork-Id: 9979889 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 14408602A0 for ; Sun, 1 Oct 2017 20:17:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0B138289C2 for ; Sun, 1 Oct 2017 20:17:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F3F2428A60; Sun, 1 Oct 2017 20:17:36 +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=-6.9 required=2.0 tests=BAYES_00,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 DD927289C2 for ; Sun, 1 Oct 2017 20:17:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751819AbdJAURe (ORCPT ); Sun, 1 Oct 2017 16:17:34 -0400 Received: from smtprz15.163.net ([106.3.154.248]:25399 "HELO smtp.tom.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with SMTP id S1751805AbdJAURe (ORCPT ); Sun, 1 Oct 2017 16:17:34 -0400 Received: from smtp.tom.com (unknown [172.25.16.41]) by my-app03.tom.com (SMTP) with ESMTP id 5E3B7178051F for ; Mon, 2 Oct 2017 04:17:24 +0800 (CST) Authentication-Results: my-fxspam02 smtp.user=xavier.huwei@tom.com; auth=pass (LOGIN) Received: from [120.31.149.194] ([120.31.149.194:58302] helo=localhost.localdomain) by my-fxspam02 (envelope-from ) (ecelerity 3.6.25.56547 r(Core:3.6.25.0)) with ESMTPA id B9/A1-13716-35D41D95; Mon, 02 Oct 2017 04:17:24 +0800 From: "Wei Hu (Xavier)" To: leon@kernel.org, dledford@redhat.com Cc: linux-rdma@vger.kernel.org, oulijun@huawei.com, xavier.huwei@huawei.com, haifeng.wei@huawei.com, charles.chenxin@huawei.com, xavier.huwei@tom.com Subject: [PATCH V2 rdma-core] libhns: Update the size and member order of hns_roce_create_qp structure Date: Mon, 2 Oct 2017 04:17:09 +0800 Message-Id: <1506889029-25168-1-git-send-email-xavier.huwei@tom.com> X-Mailer: git-send-email 1.9.1 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 From: "Wei Hu (Xavier)" In order to keep the size and member order with the hns_roce_ib_create_qp sturcture of the kernel driver, it needs to update hns_roce_create_qp's structure members. Otherwise, it will run fail. Signed-off-by: Lijun Ou Signed-off-by: Wei Hu (Xavier) --- Patch V2: Address comments by Jason: https://patchwork.kernel.org/patch/9979299/ Patch V1: Initial Submit --- providers/hns/hns_roce_u_abi.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/providers/hns/hns_roce_u_abi.h b/providers/hns/hns_roce_u_abi.h index e78f967..2a57f46 100644 --- a/providers/hns/hns_roce_u_abi.h +++ b/providers/hns/hns_roce_u_abi.h @@ -61,8 +61,10 @@ struct hns_roce_create_cq_resp { struct hns_roce_create_qp { struct ibv_create_qp ibv_cmd; __u64 buf_addr; + __u64 db_addr; __u8 log_sq_bb_count; __u8 log_sq_stride; + __u8 sq_no_prefetch; __u8 reserved[5]; };