Linux-RT SDK 8.2 on TMDX654IDKEVM:
ICSSG interface statistics tx_total_bytes for eth1 don't match rx_total_bytes.for eth3 when sending from eth1 to eth3.
root@am65xx-evm:~# ethtool -S eth1 | grep '\(good\|bytes\)'
rx_good_frames: 0
rx_total_bytes: 0
rx_tx_total_bytes: 1526000000
tx_good_frames: 1000000
tx_total_bytes: 1526000000
root@am65xx-evm:~# ethtool -S eth3 | grep '\(good\|bytes\)'
rx_good_frames: 1000000
rx_total_bytes: 1518000000
rx_tx_total_bytes: 1518000000
tx_good_frames: 0
tx_total_bytes: 0
Steps to reproduce:
set SDK_VERSION=08_02_00_01
============================================================================================================================================
STEP 1.
SDK Download & Instalation for AM65x
------------------------------------
1.1 Download
Goto "">www.ti.com/.../PROCESSOR-SDK-AM65X"
click on Download options of PROCESSOR-SDK-LINUX-RT-AM65X — Linux-RT processor SDK for AM65x
click on "ti-processor-sdk-linux-rt-am65xx-evm-"$SDK_VERSION"-Linux-x86-Install.bin"
set executable permissions : chmod 777 ti-processor-sdk-linux-rt-am65xx-evm-"$SDK_VERSION"-Linux-x86-Install.bin
Execute bin file : ./ti-processor-sdk-linux-rt-am65xx-evm-"$SDK_VERSION"-Linux-x86-Install.bin
Choose Destination location : <path>
wait for completion.
============================================================================================================================================
STEP 2.
Prepare sdcard with Prebuilt Images
-----------------------------------
2.1 Connect sdcard and find device file /dev/sdx for the sdcard from lsblk or "cat /proc/mounts"
2.2 Flash Prebuilt images using below commands:
$ cd <path>/ti-processor-sdk-linux-rt-am65xx-evm-"$SDK_VERSION"/bin
$ sudo ./mksdboot.sh --sdk <path>/ti-processor-sdk-linux-rt-am65xx-evm-"$SDK_VERSION"/ --device /dev/sd<x>
$ sync
After completing, unmount Sd-card and eject.
============================================================================================================================================
STEP 3.
3.1 Run AM65x IDK and login as root
3.2 Connect eth1 and eth3
3.3. transmit frames from eth1 to eth3
3.4. check statistics
root@am65xx-evm:~# ethtool -S eth1 | grep '\(good\|bytes\)'
rx_good_frames: 0
rx_total_bytes: 0
rx_tx_total_bytes: 1526000000
tx_good_frames: 1000000
tx_total_bytes: 1526000000
root@am65xx-evm:~# ethtool -S eth3 | grep '\(good\|bytes\)'
rx_good_frames: 1000000
rx_total_bytes: 1518000000
rx_tx_total_bytes: 1518000000
tx_good_frames: 0
tx_total_bytes: 0