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 3008441E96; Wed, 15 Mar 2023 03:40:03 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 11BBB40A7A; Wed, 15 Mar 2023 03:40:03 +0100 (CET) Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by mails.dpdk.org (Postfix) with ESMTP id 19005400EF for ; Wed, 15 Mar 2023 03:40:00 +0100 (CET) Received: from dggpeml500024.china.huawei.com (unknown [172.30.72.56]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4Pbvk824QHzKmvN; Wed, 15 Mar 2023 10:39:44 +0800 (CST) Received: from localhost.localdomain (10.50.163.32) 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.2507.21; Wed, 15 Mar 2023 10:39:58 +0800 From: Chengwen Feng To: , , Aman Singh , Yuying Zhang CC: Subject: [PATCH] app/testpmd: dump private info in 'show port info' Date: Wed, 15 Mar 2023 02:33:27 +0000 Message-ID: <20230315023328.35980-1-fengchengwen@huawei.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230314115035.33356-1-fengchengwen@huawei.com> References: <20230314115035.33356-1-fengchengwen@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.50.163.32] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) 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 adds dump private info in 'show port info [port_id]' cmd. Signed-off-by: Chengwen Feng --- app/test-pmd/config.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c index 018536f177..ab5199f223 100644 --- a/app/test-pmd/config.c +++ b/app/test-pmd/config.c @@ -938,6 +938,11 @@ port_infos_display(portid_t port_id) printf("unknown\n"); break; } + printf("Device private info:\n"); + ret = rte_eth_dev_priv_dump(port_id, stdout); + if (ret < 0) + fprintf(stderr, " Failed to dump private info with error (%d): %s\n", + ret, strerror(-ret)); } void -- 2.17.1