Part Number: AM3356
Other Parts Discussed in Thread: DP83822I, AM3358
We are using the PRUs on the AM3356 for two additional Ethernet interfaces with DP83822i PHYs. The CPU runs at 300MHz and our maximum UDP throughput without any errors using the PRU Ethernet interfaces is ~40Mbit/s; above 40Mbit/s we see increasingly more lost packets in direction to the DUT. Overclocking the CPU leads to slightly better results so we suspect that the CPU is the bottleneck here.
However, we are confused by the "frame" value of ifconfig:
root@DUT:~# ifconfig eth2
eth2 Link encap:Ethernet HWaddr XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
inet addr:192.168.XXX.XXX Bcast:192.168.XXX.XXX Mask:255.255.255.0
inet6 addr: fe80::a0e8:11ff:feac:47d6/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:821369 errors:0 dropped:0 overruns:0 frame:425
TX packets:189814 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1219881292 (1.1 GiB) TX bytes:279577183 (266.6 MiB)
This value is increasing only if we increase the datarate, e.g. iperf3 [...] -b80M. Here is some additional information:
root@DUT:~# ethtool -S eth2
NIC statistics:
txBcast: 1
txMcast: 29
txUcast: 189823
txOctets: 280342003
rxBcast: 74
rxMcast: 0
rxUcast: 821329
rxOctets: 1223170114
tx64byte: 23
tx65_127byte: 1540
tx128_255byte: 764
tx256_511byte: 90
tx512_1023byte: 3
tx1024byte: 187433
rx64byte: 68
rx65_127byte: 2414
rx128_255byte: 331
rx256_511byte: 41
rx512_1023byte: 0
rx1024byte: 818549
lateColl: 0
singleColl: 0
multiColl: 0
excessColl: 0
rxMisAlignmentFrames: 0
stormPrevCounter: 0
macRxError: 0
SFDError: 0
defTx: 0
macTxError: 0
rxOverSizedFrames: 0
rxUnderSizedFrames: 0
rxCRCFrames: 0
droppedPackets: 8
txHWQOverFlow: 0
txHWQUnderFlow: 0
emacMulticastDropped: 4
emacVlanDropped: 0
root@DUT:~# mii -i eth2 -d 2 MII-Address 0x02 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 3100 786D 2000 A240 01E1 C5E1 000D 2001 4806 0000 0100 100B 0000 0000 0000 0000 10 11 12 13 14 15 16 17 18 19 1A 1B 1C 1D 1E 1F 4615 0108 0000 0000 0000 0000 0100 0049 0400 8C22 0000 007D 05EE 0000 0102 0000
We are worried that ifconfig's "frame" value may indicate a HW error. How can we exclude a hardware issue here?