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 A158B4889E; Fri, 3 Oct 2025 13:03:00 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 41F154042E; Fri, 3 Oct 2025 13:02:38 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.13]) by mails.dpdk.org (Postfix) with ESMTP id 6390C4025F for ; Fri, 3 Oct 2025 13:02:33 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1759489354; x=1791025354; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=E2BHBFOdGONM8HvvMC9T0t+4aXEqytlHLBm4AODD000=; b=IBoZee87uM9dOncD6NorexurubCkl4qDMWMneL8hwYYRYRoDvgujG0KK eRQwIdX6QVuyiE95y891ZVlvWxR4VvDPBe6W5q0ivm7jPHgBkX37rnoAu ZBPjX7Cmdwus6hPJm3sWHyVOd94xY/3WCRBft7IFgLS91zfbAMqlmMQMO aXSQtJHDB+OputMXE7XcNW7n8IIwU5/XzrVULBjV1g9PEOVXJW3GD9chg h1oCGIZbpCkH/EWHzmbSbhyfhEj4PVbHlGUngDKW0+q1nFPgLR3EEGUP9 jPaJOP/Z37Nwoq1Nx9W/0zbE6EqSPZsGf3pP4uR8hWctzEp/3KTYbOkcW g==; X-CSE-ConnectionGUID: I0HL7qVxS1661Rjr2OAsww== X-CSE-MsgGUID: Be30ehM+RzyG3sskqiP1DA== X-IronPort-AV: E=McAfee;i="6800,10657,11570"; a="72873498" X-IronPort-AV: E=Sophos;i="6.18,312,1751266800"; d="scan'208";a="72873498" Received: from orviesa007.jf.intel.com ([10.64.159.147]) by orvoesa105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Oct 2025 04:02:23 -0700 X-CSE-ConnectionGUID: 9F/oBcKGRxeZAO+0rIKlXQ== X-CSE-MsgGUID: 1G+R1ckORqqwfgww7ez9ng== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.18,312,1751266800"; d="scan'208";a="179077674" Received: from silpixa00401385.ir.intel.com ([10.20.224.226]) by orviesa007.jf.intel.com with ESMTP; 03 Oct 2025 04:02:21 -0700 From: Bruce Richardson To: dev@dpdk.org Cc: stephen@networkplumber.org, thomas@monjalon.net, Bruce Richardson Subject: [PATCH v3 5/7] app: remove queue stats from eth stats Date: Fri, 3 Oct 2025 12:01:59 +0100 Message-ID: <20251003110201.1541183-6-bruce.richardson@intel.com> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20251003110201.1541183-1-bruce.richardson@intel.com> References: <20250923141207.10403-1-bruce.richardson@intel.com> <20251003110201.1541183-1-bruce.richardson@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Adjust applications to take account of the fact that queue stats are no longer part of ethdev stats. - For proc-info, we have to drop the output of the stats, since they are no longer present. - For the virtual_pmd in the test app, we adjust our stats_get function. - For testpmd, we can no longer reference the queue stats counter to check it, however, the range is checked in the ethdev APIs anyway, so just remove the check. Signed-off-by: Bruce Richardson --- app/proc-info/main.c | 16 ---------------- app/test-pmd/config.c | 6 ------ app/test/virtual_pmd.c | 3 ++- 3 files changed, 2 insertions(+), 23 deletions(-) diff --git a/app/proc-info/main.c b/app/proc-info/main.c index be67386658..1b9979b7c8 100644 --- a/app/proc-info/main.c +++ b/app/proc-info/main.c @@ -657,7 +657,6 @@ static void nic_stats_display(uint16_t port_id) { struct rte_eth_stats stats; - uint8_t i; static const char *nic_stats_border = "########################"; @@ -673,21 +672,6 @@ nic_stats_display(uint16_t port_id) " TX-bytes: %-10"PRIu64"\n", stats.opackets, stats.oerrors, stats.obytes); - printf("\n"); - for (i = 0; i < RTE_ETHDEV_QUEUE_STAT_CNTRS; i++) { - printf(" Stats reg %2d RX-packets: %-10"PRIu64 - " RX-errors: %-10"PRIu64 - " RX-bytes: %-10"PRIu64"\n", - i, stats.q_ipackets[i], stats.q_errors[i], stats.q_ibytes[i]); - } - - printf("\n"); - for (i = 0; i < RTE_ETHDEV_QUEUE_STAT_CNTRS; i++) { - printf(" Stats reg %2d TX-packets: %-10"PRIu64 - " TX-bytes: %-10"PRIu64"\n", - i, stats.q_opackets[i], stats.q_obytes[i]); - } - printf(" %s############################%s\n", nic_stats_border, nic_stats_border); } diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c index c1bd6921ea..ff170159a1 100644 --- a/app/test-pmd/config.c +++ b/app/test-pmd/config.c @@ -6727,12 +6727,6 @@ set_qmap(portid_t port_id, uint8_t is_rx, uint16_t queue_id, uint8_t map_value) if (is_rx ? (rx_queue_id_is_invalid(queue_id)) : (tx_queue_id_is_invalid(queue_id))) return; - if (map_value >= RTE_ETHDEV_QUEUE_STAT_CNTRS) { - fprintf(stderr, "map_value not in required range 0..%d\n", - RTE_ETHDEV_QUEUE_STAT_CNTRS - 1); - return; - } - if (!is_rx) { /* tx */ ret = rte_eth_dev_set_tx_queue_stats_mapping(port_id, queue_id, map_value); diff --git a/app/test/virtual_pmd.c b/app/test/virtual_pmd.c index b7d74a467a..aa37e4073c 100644 --- a/app/test/virtual_pmd.c +++ b/app/test/virtual_pmd.c @@ -181,7 +181,8 @@ virtual_ethdev_link_update_fail(struct rte_eth_dev *bonding_eth_dev __rte_unused } static int -virtual_ethdev_stats_get(struct rte_eth_dev *dev, struct rte_eth_stats *stats) +virtual_ethdev_stats_get(struct rte_eth_dev *dev, struct rte_eth_stats *stats, + struct eth_queue_stats *qstats __rte_unused) { struct virtual_ethdev_private *dev_private = dev->data->dev_private; -- 2.48.1