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.

[参考译文] AM62A7:通过 CPSW 获取以太网数据包丢弃计数器

Guru**** 2476375 points
Other Parts Discussed in Thread: AM62A7

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1462182/am62a7-get-drop-counter-of-ethernet-packet-with-cpsw

器件型号:AM62A7

工具与软件:

您好、TI

现在、我使用 AM62A7 SOC 的 CPSW 作为网卡。

我想从 CPSW 读取丢弃以太网数据包

摘自产品说明书的 第11章。我只得到 CPSW 可以获得下图所示的丢弃以太网数据包。   

但是、我无法理解如何获得价值。 用户空间中哪个寄存器或哪个接口的消息。

请帮助告诉我这些信息

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好!

    如果将 Linux 用于操作系统、则可以使用以下命令 ethtool -S eth0来获取帧丢弃计数器、其中 eth0表示正在使用的以太网接口。

    此致、

    Schuyler