From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by dpdk.org (Postfix, from userid 33) id 8E4D75A4A; Tue, 29 Jan 2019 07:21:02 +0100 (CET) From: bugzilla@dpdk.org To: dev@dpdk.org Date: Tue, 29 Jan 2019 06:21:01 +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: 18.08 X-Bugzilla-Keywords: X-Bugzilla-Severity: major X-Bugzilla-Who: madiwalar@hpe.com X-Bugzilla-Status: CONFIRMED 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 196] IXGBE Driver Tx Packet/Bytes counters Sent returns Zero even though link-partner received valid packets X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Jan 2019 06:21:02 -0000 https://bugs.dpdk.org/show_bug.cgi?id=3D196 Bug ID: 196 Summary: IXGBE Driver Tx Packet/Bytes counters Sent returns Zero even though link-partner received valid packets Product: DPDK Version: 18.08 Hardware: x86 OS: Linux Status: CONFIRMED Severity: major Priority: Normal Component: ethdev Assignee: dev@dpdk.org Reporter: madiwalar@hpe.com Target Milestone: --- Created attachment 28 --> https://bugs.dpdk.org/attachment.cgi?id=3D28&action=3Dedit IXGBE Stats Mismatch between Port 0 Tx and Port 1 Rx We are using Denverton(Harisonville, C3000) Based SOC in the test we did. We are observing Tx Packet/Bytes stats returns as Zero even though link-par= tner received valid Packets/Bytes(stats). This behavior is random. Test Scenario: 1. IXGBE driver in the DPDK is configured in SGMII Mode. We have total of f= our ports. External Cat5e cable is connected back to back ports(i.e Port 0 is connected to Port1 and Port 2 is connected to Port 3). 2. Testpmd application is used for the test. Where Packet fwd is configured= as flowgen(testpmd cmd: set fwd flowgen). 3. Packet stats were cleared prior to start of the traffic. Traffic test ru= ns for about 30 minutes 4. As IXGBE stats are Read on clear and Likely to rollover so we use 'show = port stats all' to read Hardware stats to DPDK hwstats periodically (Every 10 minutes, as we have seen counters are rolled over in 15 minutes in our SGMII Mode configuration). 5. At about 30 minutes, we stop the traffic in testpmd and match counters between ports manually. Issue Observed: 1. Port 0 Tx Packet/Bytes counters reported as Zero(0) while Port 1(link-partner) Rx Packet/Bytes received valid frames and bytes. 2. Port 0 Rx Packet/Bytes Counters reported fine and were matching to the P= ort 1(link-partner) Tx Packet/Bytes. 3. With above observation it is fact that Port 0 actually transmitted the packets that are captured in Port 1 Rx stats, But Port 0 Tx Stats are shown always zero in the case. Below is brief log of port 0 and port 1 stats. testpmd> show port stats 0 ######################## NIC statistics for port 0 #####################= ### RX-packets: 1877202080 RX-missed: 0 RX-bytes: 112632124800 RX-errors: 0 RX-nombuf: 0 TX-packets: 0 TX-errors: 0 TX-bytes: 0 Throughput (since last show) Rx-pps: 0 Tx-pps: 0 #########################################################################= ### testpmd> show port stats 1 ######################## NIC statistics for port 1 #####################= ### RX-packets: 1877202080 RX-missed: 0 RX-bytes: 112632124800 RX-errors: 0 RX-nombuf: 0 TX-packets: 1877202080 TX-errors: 0 TX-bytes: 112632124800 Throughput (since last show) Rx-pps: 0 Tx-pps: 0 #########################################################################= ### testpmd> Complete xtats for port 0 and port 1 is attached. Regards, Sadashiv Madiwalar --=20 You are receiving this mail because: You are the assignee for the bug.=