Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp566739rdb; Tue, 19 Sep 2023 04:08:27 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF5o7wO2fsQF93WgHSqW8r8iTlpKlZA/6ZIq76gY9uu1dGl3s7dh3sydtL5Brc/YDyOR5fJ X-Received: by 2002:a05:6a00:f8c:b0:68f:c8b4:1a2b with SMTP id ct12-20020a056a000f8c00b0068fc8b41a2bmr2755208pfb.17.1695121706936; Tue, 19 Sep 2023 04:08:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695121706; cv=none; d=google.com; s=arc-20160816; b=vqn2WTKyqPBdfU762BdW8FTDu0H7+rdZybOLpBVOcpcpjGKJ6o3+fJX0e1BJrkWJ6t m2YLzF7+k0NUBg3xAhpBbTPoO3rOti2EqSKoiPVoj2y6HoT8gO9xqVYwnpPBREG1PD0z 0FvTe9JiR0F8ChFPOJ0XVA/pLH3D/0EVr+g26HeXkJg4MjWeBGX/3RV5SaooZN3nXV1U DFEF9dG0kNIY1S9qeXW+62r9N+praBfKoN6RQG9W8xsFIqKaNHCv6Njxn//MxDdquajP kewNXmxlw3rFnDxY7OqU2EK2PPzDQxNL1eufToy+7p8wFdmK7uRnBNgxYfw8aZtbgNKc JDSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=/h//07PgpXK3p3oxntv8s/JcUlHA9IjOwnQx2XOI6os=; fh=jmmAQRyVbDdGLEmH69gRgnIUgv2PYZklGEA+l06uNAg=; b=lOT9LT75cUd/ozjIFv2VISNjCkyoPgwkeJCkaCGz+MgFdNwvEZeRjkphQnMnfivX1u 7kh5LtpS66TkIU4nGywIt6vULMzmCR74sMAz/4+qNvbO96grhAwHTSH+6xEIuY3VfZA+ PJfATLI4AdmSDNdSQCphUtnzQJa3/5cH/JsaQISWbey5LXG7Zh/cHJK/eSzB4n1rFJJW uOBk9tPeKseFCF6ZLZZJlNJPSfgmTFrFEsq5GKeuFQaWP63YCc4SZFsZgGFLKNIJ8b/f G6l00Y5uKZPbDZ/EFvQ5pQAULd3zPCnXyESrU/3AyxUxrgc2LJzDFns+rKEdQ9c9ZWkB RQDg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=hisilicon.com Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id ck10-20020a056a00328a00b0068fea8a6169si9453372pfb.404.2023.09.19.04.08.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Sep 2023 04:08:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=hisilicon.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 2A34B82372CF; Tue, 19 Sep 2023 03:57:24 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232020AbjISK5N (ORCPT + 99 others); Tue, 19 Sep 2023 06:57:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34564 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231994AbjISK4n (ORCPT ); Tue, 19 Sep 2023 06:56:43 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7270C1BD2; Tue, 19 Sep 2023 03:53:44 -0700 (PDT) Received: from kwepemi500006.china.huawei.com (unknown [172.30.72.56]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4Rqdjx5pW0zVl5x; Tue, 19 Sep 2023 18:50:45 +0800 (CST) Received: from [10.67.120.168] (10.67.120.168) by kwepemi500006.china.huawei.com (7.221.188.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.31; Tue, 19 Sep 2023 18:53:42 +0800 Message-ID: <1fdda70d-54bb-1a7c-08cc-80462afd6576@hisilicon.com> Date: Tue, 19 Sep 2023 18:53:41 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.1.0 Subject: Re: [PATCH RFC] rdma: Add support to dump SRQ resource in raw format Content-Language: en-US To: Mark Zhang , , CC: , , References: <20230918131140.4037213-1-huangjunxian6@hisilicon.com> From: Junxian Huang In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.67.120.168] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To kwepemi500006.china.huawei.com (7.221.188.68) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-2.2 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Tue, 19 Sep 2023 03:57:24 -0700 (PDT) On 2023/9/19 13:34, Mark Zhang wrote: > On 9/18/2023 9:11 PM, Junxian Huang wrote: >> External email: Use caution opening links or attachments >> >> >> From: wenglianfa >> >> Add support to dump SRQ resource in raw format. >> >> This patch relies on the corresponding kernel patch: >> RDMA/core: Add support to dump SRQ resource in RAW format >> >> Example: >> $ rdma res show srq -r >> dev hns3 149000... >> >> $ rdma res show srq -j -r >> [{"ifindex":0,"ifname":"hns3","data":[149,0,0,...]}] >> >> Signed-off-by: wenglianfa >> --- >>   rdma/include/uapi/rdma/rdma_netlink.h |  2 ++ >>   rdma/res-srq.c                        | 17 ++++++++++++++++- >>   rdma/res.h                            |  2 ++ >>   3 files changed, 20 insertions(+), 1 deletion(-) >> >> diff --git a/rdma/include/uapi/rdma/rdma_netlink.h b/rdma/include/uapi/rdma/rdma_netlink.h >> index 92c528a0..84f775be 100644 >> --- a/rdma/include/uapi/rdma/rdma_netlink.h >> +++ b/rdma/include/uapi/rdma/rdma_netlink.h >> @@ -299,6 +299,8 @@ enum rdma_nldev_command { >> >>          RDMA_NLDEV_CMD_STAT_GET_STATUS, >> >> +       RDMA_NLDEV_CMD_RES_SRQ_GET_RAW, >> + >>          RDMA_NLDEV_NUM_OPS >>   }; >> > > Usually this file is submitted as a separate patch. > Thanks. Will fix it in the formal patch. Junxian