From patchwork Thu Oct 6 12:05:11 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dongdong Liu X-Patchwork-Id: 117457 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 0FA6EA00C2; Thu, 6 Oct 2022 14:07:05 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C7E6F42C3C; Thu, 6 Oct 2022 14:07:04 +0200 (CEST) Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by mails.dpdk.org (Postfix) with ESMTP id 7CEE142B70 for ; Thu, 6 Oct 2022 14:07:03 +0200 (CEST) Received: from kwepemi500017.china.huawei.com (unknown [172.30.72.54]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4Mjqql46whzJmxT; Thu, 6 Oct 2022 20:04:35 +0800 (CST) Received: from localhost.localdomain (10.28.79.22) by kwepemi500017.china.huawei.com (7.221.188.110) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Thu, 6 Oct 2022 20:07:00 +0800 From: Dongdong Liu To: , , , , , , CC: Dongdong Liu Subject: [PATCH v5 0/3] support ethdev Rx/Tx descriptor dump Date: Thu, 6 Oct 2022 20:05:11 +0800 Message-ID: <20221006120514.28830-1-liudongdong3@huawei.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20220527023351.40577-1-humin29@huawei.com> References: <20220527023351.40577-1-humin29@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.28.79.22] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To kwepemi500017.china.huawei.com (7.221.188.110) 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 Support ethdev Rx/Tx descriptor dump by using procinfo tool. Thanks to Ferruh, Andrew and Reshma help to review the patchset. NOTE: October 1st to October 7th is China's National Day holiday. I don't have a test environment available at the moment. I will test this patchset on October 8th. Current compile is ok. v4->v5: - Rename the Rx/Tx descriptor dump API and provide 'offset' parameter. - Refactor procinfo dump descriptor code as Reshma suggested. v3->v4: - Modify the desc dump API to dump specified number of descriptors. - Modify the hn3 pmd implementation and procinfo part Dongdong Liu (3): ethdev: introduce ethdev desc dump API net/hns3: support Rx/Tx bd dump app/procinfo: support descriptor dump app/proc-info/main.c | 80 +++++++++++++++++++++++ doc/guides/rel_notes/release_22_11.rst | 6 ++ drivers/net/hns3/hns3_dump.c | 88 ++++++++++++++++++++++++++ drivers/net/hns3/hns3_dump.h | 5 ++ drivers/net/hns3/hns3_ethdev.c | 2 + drivers/net/hns3/hns3_ethdev_vf.c | 2 + lib/ethdev/ethdev_driver.h | 53 ++++++++++++++++ lib/ethdev/rte_ethdev.c | 52 +++++++++++++++ lib/ethdev/rte_ethdev.h | 55 ++++++++++++++++ lib/ethdev/version.map | 2 + 10 files changed, 345 insertions(+) --- 2.22.0