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.
工具/软件:Linux
您好!
在以432MHz 运行的 DM368上、是否有关于以太网接口性能的任何文档?
我们看到以太网的性能特别差-单向流量(发送或接收)不是太差、但当我们有双向流量(发送和接收)时、性能会显著下降。
我还应该能够期望 ethtool 在 DM36x 上工作吗?
您好 Dwarakesh、
我没有看到该文档、谢谢您-它看起来很有用!
关于 ethtool:
root@DM365-EVM:~#./ethtool eth0
eth0的设置:
检测到链接:是
root@DM365-EVM:~#./ethtool -版本
ethtool 版本4.5
我想我应该获得更多信息(如速度、双工等)? 我还从手册中了解到 EMAC 支持 TX 和 RX 校验和卸载、但 ethtool 声称不支持该功能-当我尝试设置它时。 实际上、ethtool 说我尝试的所有内容都不受支持... 您会想到这一点吗? 或者、您认为我可能有编译/版本问题吗? 或缺少内核选项?
/ethtool -K eth0 TX 打开
无法设置器件 TX 校验和设置:不支持操作
使用 iperf、我获得了各种各样的结果、例如:
# iperf -c 192.168.8.10 -d -t 60
----------------------------------------
服务器侦听 TCP 端口5001
TCP 窗口大小:85.3KByte (默认值)
----------------------------------------
----------------------------------------
客户端连接到192.168.8.8、TCP 端口5001
TCP 窗口大小:25.4KByte (默认值)
----------------------------------------
[3] 本地192.168.8.23端口42617与192.168.8.10端口5001相连
[5] 本地192.168.8.23端口5001与192.168.8.10端口50680连接
[ ID]间隔 传输 带宽
[3] 0.0-60.0秒 102MB 14.2Mbit/s
[5] 0.0-60.0秒 304 MB 42.5 Mbit/s
root@DM365-EVM:~# iperf -c 192.168.8.10 -d -t 60
----------------------------------------
服务器侦听 TCP 端口5001
TCP 窗口大小:85.3KByte (默认值)
----------------------------------------
----------------------------------------
客户端连接到192.168.8.8、TCP 端口5001
TCP 窗口大小:29.1KB (默认值)
----------------------------------------
[3] 本地192.168.8.23端口42618与192.168.8.10端口5001相连
[5] 本地192.168.8.23端口5001与192.168.8.10端口50688相连
[ ID]间隔 传输 带宽
[3] 0.0 - 60.0秒 193 MB 27.0 MB /秒
[5] 0.0-60.4s 207 MB 28.7 MB /秒
我还没有尝试过直接连接到 PC 的交叉连接、我会去尝试一下、看看是否有任何改进。
谢谢、
Martin
尊敬的 Martin:
我签入了 drivers/net/Davinci_emac.c、并且只能看到这些命令已定义。 您将会遇到错误
静态常量结构 ethtool_ops ethtool_ops ={
get_drvinfo = emac_get_drvinfo、
get_settings = EMAC_GET_settings、
Set_settings = EMAC_SET_SETTINGS、
get_link = ethtool_op_get_link、
get_coalesce = EMAC_get_coalesce、
Set_COALESCE= EMAC_SET_COALESCE,
};
因此、没有用于设置 TX 校验和检查的 ethtool 选项
对于速度、双工等,您可以检查/sys/条目,例如 ls /sys/devices/platform /net/eth0/speed /net/eth0/duplex.或 ls /sys/devices/platform 如果找不到确切的路径,则可以找到/sys。 -iname 双工。 这应该会提供它。