Message ID | 20220513025357.52275-1-fengchengwen@huawei.com (mailing list archive) |
---|---|
Headers |
Return-Path: <dev-bounces@dpdk.org> X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 8B21CA00C3; Fri, 13 May 2022 04:59:55 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7E75740DDE; Fri, 13 May 2022 04:59:55 +0200 (CEST) Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by mails.dpdk.org (Postfix) with ESMTP id 8203F40DDE for <dev@dpdk.org>; Fri, 13 May 2022 04:59:53 +0200 (CEST) Received: from dggpeml500024.china.huawei.com (unknown [172.30.72.55]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4KztY22b2fzCs11; Fri, 13 May 2022 10:55:02 +0800 (CST) Received: from localhost.localdomain (10.67.165.24) by dggpeml500024.china.huawei.com (7.185.36.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Fri, 13 May 2022 10:59:51 +0800 From: Chengwen Feng <fengchengwen@huawei.com> To: <thomas@monjalon.net>, <ferruh.yigit@xilinx.com>, <andrew.rybchenko@oktetlabs.ru>, <ndabilpuram@marvell.com>, <kirankumark@marvell.com>, <skori@marvell.com>, <skoteshwar@marvell.com> CC: <mb@smartsharesystems.com>, <stephen@networkplumber.org>, <dev@dpdk.org> Subject: [PATCH v4 0/9] bugfix for ethdev telemetry Date: Fri, 13 May 2022 10:53:48 +0800 Message-ID: <20220513025357.52275-1-fengchengwen@huawei.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20220416010747.40714-1-fengchengwen@huawei.com> References: <20220416010747.40714-1-fengchengwen@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.67.165.24] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To dggpeml500024.china.huawei.com (7.185.36.10) X-CFilter-Loop: Reflected X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org |
Series |
bugfix for ethdev telemetry
|
|
Message
Chengwen Feng
May 13, 2022, 2:53 a.m. UTC
This patch set contains nine bugfix for ethdev telemetry. Chengwen Feng (9): ethdev: specify return value of xstats-get API ethdev: optimize xstats-get API's implementation net/hns3: adjust return value of xstats-get ops net/ipn3ke: adjust return value of xstats-get ops net/mvpp2: adjust return value of xstats-get ops net/axgbe: adjust return value of xstats-get ops ethdev: fix memory leak when telemetry xstats ethdev: fix possible null pointer access net/cnxk: fix telemetry possible null pointer access --- v4: * refine the return value definitions of rte_eth_xstats_get() and the implementation of related drivers is corrected. * drop auto-filled flag patch. v3: * refine the descriptor of return value when xstats is null of rte_eth_xstats_get(). * add patch for optimize xstats-get API's implementation. v2: * define return value when xstats is null of get xstats. * fix more bugs when deepin ethdev telemetry. drivers/net/axgbe/axgbe_ethdev.c | 8 ++++---- drivers/net/cnxk/cnxk_ethdev_telemetry.c | 2 ++ drivers/net/hns3/hns3_stats.c | 9 +++++---- drivers/net/ipn3ke/ipn3ke_representor.c | 3 --- drivers/net/mvpp2/mrvl_ethdev.c | 11 ++++++----- lib/ethdev/rte_ethdev.c | 18 ++++++++---------- lib/ethdev/rte_ethdev.h | 6 +++++- 7 files changed, 30 insertions(+), 27 deletions(-)
Comments
> From: Chengwen Feng [mailto:fengchengwen@huawei.com] > Sent: Friday, 13 May 2022 04.54 > > This patch set contains nine bugfix for ethdev telemetry. > > Chengwen Feng (9): > ethdev: specify return value of xstats-get API > ethdev: optimize xstats-get API's implementation > net/hns3: adjust return value of xstats-get ops > net/ipn3ke: adjust return value of xstats-get ops > net/mvpp2: adjust return value of xstats-get ops > net/axgbe: adjust return value of xstats-get ops > ethdev: fix memory leak when telemetry xstats > ethdev: fix possible null pointer access > net/cnxk: fix telemetry possible null pointer access > > --- Series-acked-by: Morten Brørup <mb@smartsharesystems.com>
On 5/16/22 11:43, Morten Brørup wrote: >> From: Chengwen Feng [mailto:fengchengwen@huawei.com] >> Sent: Friday, 13 May 2022 04.54 >> >> This patch set contains nine bugfix for ethdev telemetry. >> >> Chengwen Feng (9): >> ethdev: specify return value of xstats-get API >> ethdev: optimize xstats-get API's implementation >> net/hns3: adjust return value of xstats-get ops >> net/ipn3ke: adjust return value of xstats-get ops >> net/mvpp2: adjust return value of xstats-get ops >> net/axgbe: adjust return value of xstats-get ops >> ethdev: fix memory leak when telemetry xstats >> ethdev: fix possible null pointer access >> net/cnxk: fix telemetry possible null pointer access >> >> --- > > Series-acked-by: Morten Brørup <mb@smartsharesystems.com> > Series-reviewed-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru> I did some fixes in patches summary and description, please, double-check in next-net. Applied, thanks.