This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Ethernet Statistics by ifconfig in Linux Processor SDK

In Sitara processers, the CPSW has a set of statistics that record events associated with frame traffic on selected switch ports. The statistics are shown by a set of the CPSW_STATS registers that is common for all the ports.

In Linux Processor SDK, the CPSW driver seems to support the hardware statistics.

http://processors.wiki.ti.com/index.php/Linux_Core_CPSW_User%27s_Guide#Dual_Standalone_EMAC_mode
"Hardware statistics is common for all the ports"

For the statistics shown by ifconfig, are they the statistics shown by the CPSW_STATS registers? Are they same for all the ports?

Best regards,

Daisuke

  • Hi Daisuke,

    The statistics shown by the ifconfig command are per port statistics and also they are different then STATS registers values which are same for all the ports. This difference can be verified by disabling the ethernet statistics by the relevant register configuration (For example set 0x00 to CPSW_STAT_PORT_EN register on am572x processor) but the ifconfig statistics continue updating.
    Therefore the processor which you are using should be specified because on the different processors the ethernet subsystems are not same.

    BR
    Tsvetolin Shulev
  • Hi Tsvetolin Shulev,

    Thank you for your reply.

    Best regards,

    Daisuke