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 397B5A034F; Thu, 25 Feb 2021 23:09:33 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id EC86B1608D9; Thu, 25 Feb 2021 23:09:32 +0100 (CET) Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTP id 5F2531608D7 for ; Thu, 25 Feb 2021 23:09:32 +0100 (CET) Received: by inbox.dpdk.org (Postfix, from userid 33) id 384D2A0547; Thu, 25 Feb 2021 23:09:32 +0100 (CET) From: bugzilla@dpdk.org To: dev@dpdk.org Date: Thu, 25 Feb 2021 22:09:31 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: DPDK X-Bugzilla-Component: ethdev X-Bugzilla-Version: 20.11 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: brian90013@gmail.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 attachments.created 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 Subject: [dpdk-dev] [Bug 641] bnxt: rte_eth_stats_get() returning zeros between valid counts 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 Sender: "dev" https://bugs.dpdk.org/show_bug.cgi?id=3D641 Bug ID: 641 Summary: bnxt: rte_eth_stats_get() returning zeros between valid counts Product: DPDK Version: 20.11 Hardware: x86 OS: All Status: UNCONFIRMED Severity: normal Priority: Normal Component: ethdev Assignee: dev@dpdk.org Reporter: brian90013@gmail.com Target Milestone: --- Created attachment 145 --> https://bugs.dpdk.org/attachment.cgi?id=3D145&action=3Dedit testpmd log showing issue Hello, I am testing with DPDK-20.11 and a Broadcom P2100G NIC. I observed this pro= blem on FreeBSD-12.2 and Ubuntu 20. My application occasionally reports invalid packet and byte counts. These statistics are obtained from the rte_eth_stats_get() function and my code is checking the return value. When I added some debugging, I observed that occasionally the ipackets and ibytes fields would be set to zero even though the function call returned z= ero (success). The calls before and after would have increasing values so it is clear the internal registers weren't reset, just invalid values on this one call. I have also seen this same behavior for the opackets and obytes field= s. The attached testpmd run shows the problem. I show several seconds of stats, then snip to several seconds before the problem occurred. Port 0 showed: RX-packets: 435792933 RX-missed: 0 RX-bytes: 27890747712 the next second it reported: RX-packets: 0 RX-missed: 0 RX-bytes: 0 and the following: RX-packets: 450562244 RX-missed: 0 RX-bytes: 28835983616 The test was running at 7.3Mpps while the difference between the first and = last stats output is 14.7Mpps (7.3*2) for a duration of 2s. So I believe the hardware is properly incrementing the counters. It seems like the returned values aren't being set properly under certain conditions. I have reviewed = the code but was unable to determine how this could happen. --=20 You are receiving this mail because: You are the assignee for the bug.=