ethtool does not count PRU Ethernet TX frames

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Medium
    • Linux Core SDK
    • LCPD-39019
    • 08.06.00
    • 11.01
    • Hide
      am64xx-evm
      am64xx-hsevm
      Show
      am64xx-evm am64xx-hsevm

      ethtool -S is reporting TX frames for RGMII PRU Ethernet on AM64x, but NOT for MII PRU Ethernet. Tested so far on AM64x Linux SDK 8.6.

      Sample output:
      AM64x EVM, loading ti/k3-am642-evm-icssg1-dualemac-mii.dtbo

      root@am64xx-evm:~# ifconfig -a
      ...
      eth2: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500  metric 1
              inet 192.168.1.164  netmask 255.255.255.0  broadcast 192.168.1.255
              inet6 fe80::72ff:76ff:fe1f:3b33  prefixlen 64  scopeid 0x20<link>
              ether 70:ff:76:1f:3b:33  txqueuelen 1000  (Ethernet)
              RX packets 4437  bytes 1138522 (1.0 MiB)
              RX errors 0  dropped 0  overruns 0  frame 0
              TX packets 1153  bytes 364122 (355.5 KiB)
              TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
      ...
      root@am64xx-evm:~# ethtool -S eth2
      NIC statistics:
           rx_good_frames: 4439
           rx_broadcast_frames: 4305
           rx_multicast_frames: 4426
           rx_crc_error_frames: 0
           rx_mii_error_frames: 0
           rx_odd_nibble_frames: 0
           rx_frame_max_size: 518000
           rx_max_size_error_frames: 0
           rx_frame_min_size: 16576
           rx_min_size_error_frames: 0
           rx_overrun_frames: 0
           rx_class0_hits: 4439
           rx_class1_hits: 0
           rx_class2_hits: 0
           rx_class3_hits: 0
           rx_class4_hits: 0
           rx_class5_hits: 0
           rx_class6_hits: 0
           rx_class7_hits: 0
           rx_class8_hits: 4439
           rx_class9_hits: 4439
           rx_class10_hits: 0
           rx_class11_hits: 0
           rx_class12_hits: 0
           rx_class13_hits: 0
           rx_class14_hits: 0
           rx_class15_hits: 0
           rx_smd_frags: 0
           rx_bucket1_size: 16576
           rx_bucket2_size: 33152
           rx_bucket3_size: 66304
           rx_bucket4_size: 132608
           rx_64B_frames: 1120
           rx_bucket1_frames: 1120
           rx_bucket2_frames: 133
           rx_bucket3_frames: 26
           rx_bucket4_frames: 3160
           rx_bucket5_frames: 0
           rx_total_bytes: 1156673
           rx_tx_total_bytes: 1534679
           tx_good_frames: 0
           tx_broadcast_frames: 0
           tx_multicast_frames: 0
           tx_odd_nibble_frames: 0
           tx_underflow_errors: 0
           tx_frame_max_size: 518000
           tx_max_size_error_frames: 0
           tx_frame_min_size: 16576
           tx_min_size_error_frames: 0
           tx_bucket1_size: 16576
           tx_bucket2_size: 33152
           tx_bucket3_size: 66304
           tx_bucket4_size: 132608
           tx_64B_frames: 0
           tx_bucket1_frames: 0
           tx_bucket2_frames: 0
           tx_bucket3_frames: 0
           tx_bucket4_frames: 0
           tx_bucket5_frames: 0
           tx_total_bytes: 0
      

      Fix in 11.x:
      https://git.ti.com/cgit/ti-linux-kernel/ti-linux-kernel/commit/?h=ti-linux-6.12.y&id=6c2e06200216cee4b19e8a1692c9e3a4d986b016

            Assignee:
            TI User
            Reporter:
            TI User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Connection: Intermediate to External PROD System
                EXTSYNC-5851 - ethtool does not count PRU Ethernet...
                SYNCHRONIZED
                • Last Sync Date: