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 89AC1A00C4; Mon, 25 Jul 2022 12:03:14 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 73DF140684; Mon, 25 Jul 2022 12:03:14 +0200 (CEST) Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTP id DC1144067C for ; Mon, 25 Jul 2022 12:03:13 +0200 (CEST) Received: by inbox.dpdk.org (Postfix, from userid 33) id C99F7A00C5; Mon, 25 Jul 2022 12:03:13 +0200 (CEST) From: bugzilla@dpdk.org To: dev@dpdk.org Subject: [Bug 1059] proc-info -- 0x10 --xstats do not show the correct statistics Date: Mon, 25 Jul 2022 10:03:13 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: DPDK X-Bugzilla-Component: other X-Bugzilla-Version: 21.11 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: 779198444@qq.com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: dev@dpdk.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.dpdk.org/ Auto-Submitted: auto-generated X-Auto-Response-Suppress: All MIME-Version: 1.0 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 https://bugs.dpdk.org/show_bug.cgi?id=3D1059 Bug ID: 1059 Summary: proc-info -- 0x10 --xstats do not show the correct statistics Product: DPDK Version: 21.11 Hardware: All OS: All Status: UNCONFIRMED Severity: normal Priority: Normal Component: other Assignee: dev@dpdk.org Reporter: 779198444@qq.com Target Milestone: --- when call dpdk-proc-info -- 0x10 --xstats it show the following message ###### NIC extended statistics for port 4 ######### #################################################### rx_good_packets: 0 tx_good_packets: 0 rx_good_bytes: 0 tx_good_bytes: 0 rx_missed_errors: 0 rx_errors: 0 tx_errors: 0 rx_mbuf_allocation_errors: 0 rx_crc_errors: 0 rx_align_errors: 0 rx_symbol_errors: 0 rx_missed_packets: 0 tx_single_collision_packets: 0 tx_multiple_collision_packets: 0 tx_excessive_collision_packets: 0 tx_late_collisions: 0 tx_total_collisions: 0 tx_deferred_packets: 0 tx_no_carrier_sense_packets: 0 rx_carrier_ext_errors: 0 rx_length_errors: 0 rx_xon_packets: 0 tx_xon_packets: 0 rx_xoff_packets: 0 tx_xoff_packets: 0 rx_flow_control_unsupported_packets: 0 rx_size_64_packets: 0 rx_size_65_to_127_packets: 0 rx_size_128_to_255_packets: 0 rx_size_256_to_511_packets: 0 rx_size_512_to_1023_packets: 0 rx_size_1024_to_max_packets: 0 rx_broadcast_packets: 0 rx_multicast_packets: 0 rx_undersize_errors: 0 rx_fragment_errors: 0 rx_oversize_errors: 0 rx_jabber_errors: 0 rx_management_packets: 0 rx_management_dropped: 0 tx_management_packets: 0 rx_total_packets: 0 tx_total_packets: 0 rx_total_bytes: 0 tx_total_bytes: 0 tx_size_64_packets: 0 tx_size_65_to_127_packets: 0 tx_size_128_to_255_packets: 0 tx_size_256_to_511_packets: 0 tx_size_512_to_1023_packets: 0 tx_size_1023_to_max_packets: 0 tx_multicast_packets: 0 tx_broadcast_packets: 0 tx_tso_packets: 0 tx_tso_errors: 0 rx_sent_to_host_packets: 0 tx_sent_by_host_packets: 0 rx_code_violation_packets: 0 interrupt_assert_count: 0 #################################################### Cannot close started device (port 0) Cannot close started device (port 1) Cannot close started device (port 2) Cannot close started device (port 3) Cannot close started device (port 4) while my realy active port is port 0,and when i use the 18.05 static linked dpdk-procinfo,it perfomance like this: EAL: Detected CPU lcores: 4 EAL: Detected NUMA nodes: 1 EAL: Detected static linkage of DPDK EAL: Multi-process socket /var/run/dpdk/rte/mp_socket_18418_1ca2b26784c9a EAL: Selected IOVA mode 'PA' EAL: Probe PCI driver: net_e1000_igb (8086:1539) device: 0000:01:00.0 (sock= et 0) EAL: Probe PCI driver: net_e1000_igb (8086:1539) device: 0000:02:00.0 (sock= et 0) EAL: Probe PCI driver: net_e1000_igb (8086:1539) device: 0000:03:00.0 (sock= et 0) EAL: Probe PCI driver: net_e1000_igb (8086:1539) device: 0000:04:00.0 (sock= et 0) EAL: Probe PCI driver: net_e1000_igb (8086:1539) device: 0000:05:00.0 (sock= et 0) ###### NIC extended statistics for port 0 ######### #################################################### rx_good_packets: 575003997 tx_good_packets: 0 rx_good_bytes: 167108158830 tx_good_bytes: 0 rx_missed_errors: 1053260836 rx_errors: 0 tx_errors: 0 rx_mbuf_allocation_errors: 1007413345 rx_crc_errors: 0 rx_align_errors: 0 rx_symbol_errors: 0 rx_missed_packets: 1053260536 tx_single_collision_packets: 0 tx_multiple_collision_packets: 0 tx_excessive_collision_packets: 0 tx_late_collisions: 0 tx_total_collisions: 0 tx_deferred_packets: 0 tx_no_carrier_sense_packets: 0 rx_carrier_ext_errors: 0 rx_length_errors: 0 rx_xon_packets: 0 tx_xon_packets: 892174 rx_xoff_packets: 0 tx_xoff_packets: 1054152715 rx_flow_control_unsupported_packets: 0 rx_size_64_packets: 70505511 rx_size_65_to_127_packets: 369577561 rx_size_128_to_255_packets: 36315460 rx_size_256_to_511_packets: 11032467 rx_size_512_to_1023_packets: 12071014 rx_size_1024_to_max_packets: 75501984 rx_broadcast_packets: 33533668 rx_multicast_packets: 6365832 rx_undersize_errors: 0 rx_fragment_errors: 0 rx_oversize_errors: 0 rx_jabber_errors: 0 rx_management_packets: 0 rx_management_dropped: 0 tx_management_packets: 0 rx_total_packets: 1628264571 tx_total_packets: 1055044925 rx_total_bytes: 283445230373 tx_total_bytes: 63302695756 tx_size_64_packets: 0 tx_size_65_to_127_packets: 0 tx_size_128_to_255_packets: 0 tx_size_256_to_511_packets: 0 tx_size_512_to_1023_packets: 0 tx_size_1023_to_max_packets: 0 tx_multicast_packets: 0 tx_broadcast_packets: 0 tx_tso_packets: 0 tx_tso_errors: 0 rx_sent_to_host_packets: 31492 tx_sent_by_host_packets: 0 rx_code_violation_packets: 0 interrupt_assert_count: 1 .......... #################################################### ###### NIC extended statistics for port 4 ######### #################################################### rx_good_packets: 0 tx_good_packets: 0 rx_good_bytes: 0 tx_good_bytes: 0 rx_missed_errors: 0 rx_errors: 0 tx_errors: 0 rx_mbuf_allocation_errors: 0 rx_crc_errors: 0 rx_align_errors: 0 rx_symbol_errors: 0 rx_missed_packets: 0 tx_single_collision_packets: 0 tx_multiple_collision_packets: 0 tx_excessive_collision_packets: 0 tx_late_collisions: 0 tx_total_collisions: 0 tx_deferred_packets: 0 tx_no_carrier_sense_packets: 0 rx_carrier_ext_errors: 0 rx_length_errors: 0 rx_xon_packets: 0 tx_xon_packets: 0 rx_xoff_packets: 0 tx_xoff_packets: 0 rx_flow_control_unsupported_packets: 0 rx_size_64_packets: 0 rx_size_65_to_127_packets: 0 rx_size_128_to_255_packets: 0 rx_size_256_to_511_packets: 0 rx_size_512_to_1023_packets: 0 rx_size_1024_to_max_packets: 0 rx_broadcast_packets: 0 rx_multicast_packets: 0 rx_undersize_errors: 0 rx_fragment_errors: 0 rx_oversize_errors: 0 rx_jabber_errors: 0 rx_management_packets: 0 rx_management_dropped: 0 tx_management_packets: 0 rx_total_packets: 0 tx_total_packets: 0 rx_total_bytes: 0 tx_total_bytes: 0 tx_size_64_packets: 0 tx_size_65_to_127_packets: 0 tx_size_128_to_255_packets: 0 tx_size_256_to_511_packets: 0 tx_size_512_to_1023_packets: 0 tx_size_1023_to_max_packets: 0 tx_multicast_packets: 0 tx_broadcast_packets: 0 tx_tso_packets: 0 tx_tso_errors: 0 rx_sent_to_host_packets: 0 tx_sent_by_host_packets: 0 rx_code_violation_packets: 0 interrupt_assert_count: 0 #################################################### by reading the code ,there just need to change one symbol here is the solution: in app/proc-info/main.c - enabled_port_mask =3D 1ul << i; + enabled_port_mask +=3D 1ul << i; the same problem found in 22.03 --=20 You are receiving this mail because: You are the assignee for the bug.=