Microchip-Ethernet / EVB-KSZ9477

Repository for using Microchip EVB-KSZ9477 board. Product Supported: KSZ9477, KSZ9567, KSZ9897, KSZ9896, KSZ8567, KSZ8565, KSZ9893, KSZ9563, KSZ8563, LAN9646, Phys(KSZ9031/9131, LAN8770
76 stars 78 forks source link

2291 packets transmitted, 128 packets received, 94% packet loss #27

Open majicjq opened 5 years ago

majicjq commented 5 years ago

hi , I use ksz9477 switch , my controller connect port6 through rgmii interface. I ping my controller through port 1, this happend :“2291 packets transmitted, 128 packets received, 94% packet loss”

triha2work commented 4 years ago

Look into the MIB counters to see if there are CRC errors. For the switch side go to /sys/bus/spi/devices/spi0.0 and use the command "cat sw5/5_mib." For the MAC side use the command "ethtool -S eth0" to dump the MIB counters if the MAC driver supports that. The command "echo 0 > sw/mib" can be used to clear all MIB counters. There is no such command in ethtool. The MAC driver can clear the MIB counters by stopping the device and restarting, but this is discouraged by kernel developers and so may not work. A more drastic way is to unload the MAC driver.