Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp1882797rdg; Sun, 15 Oct 2023 01:16:05 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHVN0NNP8KfYmq7LO9GA0v6e63sxTKJWgSXkmEX2Tpu/B9+1V1TKLN8FaFkZz/imUTjtLvk X-Received: by 2002:a05:6902:3d1:b0:d90:c424:53ee with SMTP id g17-20020a05690203d100b00d90c42453eemr28068722ybs.9.1697357764732; Sun, 15 Oct 2023 01:16:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697357764; cv=none; d=google.com; s=arc-20160816; b=zFgC226QJEEPwaosIRYd1NkVWXfJIZTMYcEuYnm0iOInJXP5aO8hGbqDr6yk8XuDsC fXQ5bZbZkrW4YI/q+BbpiJ0/jqh7yfYxRp9DlCfG9c+lIshwyV7vTtGYwQGw6ekeFgcq 3AOXQ+haTbgYiRCMNoFA33WdKl50xzhhzgga2S0dkHFLBcTb82cSQKH5VptkDQuZ+nx1 tF2ENYEpnMW+khWJC1uIU/IZDMufGnSnsH+mznqpheK7QN/8R07VsFfEvLZ2RfR75RDl 3ocAS29wLgEYEjPE+RYwGzbwVCuNCXMd8uKwdh6u5tso9AYlxBjLirqCEgFUbpkTRbdo NOsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=vjQU2VP4muFh0YlVL/n1YbHWQlQAKIK+jhVLDF7YK6o=; fh=1jj82TdK/LdfRrVk4wPz9G39d0+5NU+oWLPVxAhEDIo=; b=uy9K/qpZziSP0e+v6Qp4YqdOXxAaUgU9wirususOEwxLap4IQ4avojYf+EvJmgMvT6 ASd7pCnLR6lcfPojyo9EsQIEfwN8IVkBeYun61NIGpnGWDZA0v6kT6IU9T8Ya6c2qHXw cc7YsNZHSe0nCPfWtnDnCIMEBcyg9R8BLIxpTb/mjofGuAk19imCbIzFicJqlU0csI1t +lG9AhViqD97IchRFrLxOEMWYkB8kqMN4U9l43oj+BOSdUhCIhQXO3Vfhvj5Kfi72Nlr arIvX0zUXTVspnYrPLuNO3RS15yC9xa2MeD9ohrvb43QAFHCgju1xeKlTvd1MSSEenzG atjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AjbdxBQ6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id a13-20020a056a000c8d00b0068e256c6366si20880830pfv.352.2023.10.15.01.16.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Oct 2023 01:16:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AjbdxBQ6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 5C6B28057E7A; Sun, 15 Oct 2023 01:15:47 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233519AbjJOIPP (ORCPT + 99 others); Sun, 15 Oct 2023 04:15:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51486 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233521AbjJOIPO (ORCPT ); Sun, 15 Oct 2023 04:15:14 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A374E4; Sun, 15 Oct 2023 01:15:12 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3517AC43395; Sun, 15 Oct 2023 08:15:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697357711; bh=jt5hQedCcw87t+vMPrrY68DJg6v3/zL7YyUGJol01WA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=AjbdxBQ6bkom7FjtqyTD+uNU6MByuiwS5zesLfgwK8Z0aL8kGbvzQi311guozIadg cDj+yea2MYbiIKUpT6eDfrrD4qqfG3bxsk5S4lXG10zhC2HxeU1ZI35ueLrUKK6kwd L6bRsUJRdF8dfhK2MzGf152BSEiaSgJlkmv0Z4UvJLCoYePoMMf0XIxTBXMN8Qsf9s iuAU5rliSCRCqKFcPLAUP7ObtKBvdT/2TPAPVRtOZuyHSIe6CKmPKEgx6qQl2cqOM/ x6rQ7AN27aHLaIRqjSHTAiu0PfAR8aaGOhidGb4g+aPdDC9Es8di0FOSuu64wubMpX EhCZbYelG/NRg== Date: Sun, 15 Oct 2023 11:15:07 +0300 From: Leon Romanovsky To: Junxian Huang Cc: jgg@ziepe.ca, dsahern@gmail.com, stephen@networkplumber.org, netdev@vger.kernel.org, linux-rdma@vger.kernel.org, linuxarm@huawei.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 iproute2-next 2/2] rdma: Add support to dump SRQ resource in raw format Message-ID: <20231015081507.GB25776@unreal> References: <20231010075526.3860869-1-huangjunxian6@hisilicon.com> <20231010075526.3860869-3-huangjunxian6@hisilicon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231010075526.3860869-3-huangjunxian6@hisilicon.com> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, 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 howler.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 (howler.vger.email [0.0.0.0]); Sun, 15 Oct 2023 01:15:47 -0700 (PDT) On Tue, Oct 10, 2023 at 03:55:26PM +0800, Junxian Huang wrote: > From: wenglianfa > > Add support to dump SRQ resource in raw format. > > This patch relies on the corresponding kernel commit aebf8145e11a > ("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/res-srq.c | 20 ++++++++++++++++++-- > rdma/res.h | 2 ++ > 2 files changed, 20 insertions(+), 2 deletions(-) > Thanks, Reviewed-by: Leon Romanovsky