From patchwork Wed Jun 7 07:41:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jie Hai X-Patchwork-Id: 128272 Return-Path: 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 946CB42C4A; Wed, 7 Jun 2023 09:45:26 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1ACDC40A84; Wed, 7 Jun 2023 09:45:26 +0200 (CEST) Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by mails.dpdk.org (Postfix) with ESMTP id AC6B440695 for ; Wed, 7 Jun 2023 09:45:23 +0200 (CEST) Received: from kwepemi500020.china.huawei.com (unknown [172.30.72.53]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4QbfQT3DqFzqTqX for ; Wed, 7 Jun 2023 15:40:33 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by kwepemi500020.china.huawei.com (7.221.188.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Wed, 7 Jun 2023 15:45:21 +0800 From: Jie Hai To: CC: , Subject: [PATCH v2 00/13] support telemetry query ethdev info Date: Wed, 7 Jun 2023 15:41:55 +0800 Message-ID: <20230607074209.4798-1-haijie1@huawei.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20230530090510.56812-1-haijie1@huawei.com> References: <20230530090510.56812-1-haijie1@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.69.192.56] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To kwepemi500020.china.huawei.com (7.221.188.8) 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 patchset supports querying information about ethdev. The information includes MAC addresses, RxTx offload, flow ctrl, Rx|Tx queue, firmware version, DCB, RSS, FEC, VLAN, etc. v1->v2: 1. Fix incorrect argument of calloc. 2. Extract telemetry codes to a file. 3. Extract codes parsing port id as a function. 4. Use malloc instead of rte_malloc. 5. Fix codecheck warnings and build errors reported by CI. 6. Use 'int' instead of 'unsigned' in help info. Dengdui Huang (1): ethdev: support telemetry query MAC addresses Jie Hai (12): ethdev: fix incorrect argument of calloc ethdev: extract telemetry codes to a file ethdev: extract codes parsing port ID as a function ethdev: support RxTx offload display ethdev: support telemetry query flow ctrl info ethdev: support telemetry query Rx queue info ethdev: support telemetry query Tx queue info ethdev: add firmware version in telemetry info command ethdev: support telemetry query DCB info ethdev: support telemetry query RSS info ethdev: support telemetry query FEC info ethdev: support telemetry query VLAN info lib/ethdev/meson.build | 1 + lib/ethdev/rte_ethdev.c | 332 --------- lib/ethdev/rte_ethdev_telemetry.c | 1063 +++++++++++++++++++++++++++++ lib/ethdev/sff_telemetry.c | 4 +- 4 files changed, 1066 insertions(+), 334 deletions(-) create mode 100644 lib/ethdev/rte_ethdev_telemetry.c Acked-by: Ferruh Yigit