[dpdk-dev] [Bug 196] IXGBE Driver Tx Packet/Bytes counters Sent returns Zero even though link-partner received valid packets

bugzilla at dpdk.org bugzilla at dpdk.org
Tue Jan 29 07:21:01 CET 2019


https://bugs.dpdk.org/show_bug.cgi?id=196

            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 at dpdk.org
          Reporter: madiwalar at hpe.com
  Target Milestone: ---

Created attachment 28
  --> https://bugs.dpdk.org/attachment.cgi?id=28&action=edit
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-partner
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 four
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 runs
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 Port
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

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the dev mailing list