From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 6DB84A00C4; Thu, 5 May 2022 10:08:38 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 022EC42820; Thu, 5 May 2022 10:08:34 +0200 (CEST) Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by mails.dpdk.org (Postfix) with ESMTP id 439AA40C35 for ; Thu, 5 May 2022 10:08:31 +0200 (CEST) Received: from dggpeml500024.china.huawei.com (unknown [172.30.72.57]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4Kv5sz0xW8zhYwC; Thu, 5 May 2022 16:08:07 +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; Thu, 5 May 2022 16:08:28 +0800 From: Chengwen Feng To: , , , , , , CC: , , Subject: [PATCH v3 00/10] bugfix for ethdev telemetry Date: Thu, 5 May 2022 16:02:23 +0800 Message-ID: <20220505080233.12737-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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org This patch set contains nine bugfix for ethdev telemetry. Chengwen Feng (10): ethdev: define retval when xstats is null of get xstats ethdev: optimize xstats-get API's implementation net/hns3: adjust retval when xstats is null of get xstats net/ipn3ke: adjust retval when xstats is null of get xstats net/mvpp2: adjust retval when xstats is null of get xstats net/axgbe: adjust retval when xstats is null of get xstats ethdev: fix memory leak when telemetry xstats ethdev: support auto-filled flag when telemetry stats ethdev: fix possible null pointer access net/cnxk: fix telemetry possible null pointer access --- 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 | 2 +- drivers/net/cnxk/cnxk_ethdev_telemetry.c | 2 ++ drivers/net/hns3/hns3_stats.c | 7 ++---- drivers/net/ipn3ke/ipn3ke_representor.c | 5 +---- drivers/net/mvpp2/mrvl_ethdev.c | 2 +- lib/ethdev/rte_ethdev.c | 28 ++++++++++++------------ lib/ethdev/rte_ethdev.h | 3 ++- 7 files changed, 23 insertions(+), 26 deletions(-) -- 2.33.0