From patchwork Sat Sep 30 08:51:17 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lijun Ou X-Patchwork-Id: 9979299 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 CC67A60327 for ; Sat, 30 Sep 2017 08:51:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ADCBD29508 for ; Sat, 30 Sep 2017 08:51:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A2A4129598; Sat, 30 Sep 2017 08:51:49 +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 E9AA529591 for ; Sat, 30 Sep 2017 08:51:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751160AbdI3Ivr (ORCPT ); Sat, 30 Sep 2017 04:51:47 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:7513 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750933AbdI3Ivr (ORCPT ); Sat, 30 Sep 2017 04:51:47 -0400 Received: from 172.30.72.59 (EHLO DGGEMS406-HUB.china.huawei.com) ([172.30.72.59]) by dggrg05-dlp.huawei.com (MOS 4.4.6-GA FastPath queued) with ESMTP id DIH93251; Sat, 30 Sep 2017 16:51:44 +0800 (CST) Received: from localhost.localdomain (10.67.212.75) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.301.0; Sat, 30 Sep 2017 16:51:40 +0800 From: Lijun Ou To: , CC: Subject: [PATCH rdma-core] libhns: Update the size and member order of hns_roce_create_qp structure Date: Sat, 30 Sep 2017 16:51:17 +0800 Message-ID: <1506761477-47350-1-git-send-email-oulijun@huawei.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 X-Originating-IP: [10.67.212.75] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A090205.59CF5B21.0001, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0, ip=0.0.0.0, so=2014-11-16 11:51:01, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: 021ac7f9772ff3a951b093de64fdb05b 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 In order to keep the size and member order with the hns_roce_ib_create_qp sturcture of the kernel driver, it need 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) --- providers/hns/hns_roce_u_abi.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/providers/hns/hns_roce_u_abi.h b/providers/hns/hns_roce_u_abi.h index e78f967..276d29d 100644 --- a/providers/hns/hns_roce_u_abi.h +++ b/providers/hns/hns_roce_u_abi.h @@ -61,9 +61,10 @@ struct hns_roce_create_cq_resp { struct hns_roce_create_qp { struct ibv_create_qp ibv_cmd; __u64 buf_addr; + __u64 rsv; __u8 log_sq_bb_count; __u8 log_sq_stride; - __u8 reserved[5]; + __u8 reserved[6]; }; #endif /* _HNS_ROCE_U_ABI_H */