linux開發板 arm32 arm64 收不到網絡包(校驗和不對) ethtool關閉接收檢驗和

參考博客鏈接:

https://blog.csdn.net/qqliyunpeng/article/details/92384479

 

1.配置編譯選項

–host 指定軟件編譯環境是arm-linux,表示的是嵌入式中使用,會使用CC來編譯程序
–CC 指定交叉編譯器

./configure --host=arm-linux CC=arm-linux-gnueabihf-gcc

或 ./configure --host=arm-linux CC=aarch64-linux-gnu-gcc

2.關閉收數校驗

rx-checksum off

[root@rk3328:/userdata]# /mnt/ethtool -K eth0 rx-checksum off
Actual changes:
rx-checksumming: off
[root@rk3328:/userdata]# /mnt/ethtool -k eth0
Features for eth0:
rx-checksumming: off
tx-checksumming: off
        tx-checksum-ipv4: off [requested on]
        tx-checksum-ip-generic: off [fixed]
        tx-checksum-ipv6: off [requested on]
        tx-checksum-fcoe-crc: off [fixed]
        tx-checksum-sctp: off [fixed]
scatter-gather: on
        tx-scatter-gather: on
        tx-scatter-gather-fraglist: off [fixed]
tcp-segmentation-offload: off
        tx-tcp-segmentation: off [fixed]
        tx-tcp-ecn-segmentation: off [fixed]
        tx-tcp6-segmentation: off [fixed]
udp-fragmentation-offload: off [fixed]
generic-segmentation-offload: on
generic-receive-offload: on
large-receive-offload: off [fixed]
rx-vlan-offload: off [fixed]
tx-vlan-offload: off [fixed]
ntuple-filters: off [fixed]
receive-hashing: off [fixed]
highdma: on [fixed]
rx-vlan-filter: off [fixed]
vlan-challenged: off [fixed]
tx-lockless: off [fixed]
netns-local: off [fixed]
tx-gso-robust: off [fixed]
tx-fcoe-segmentation: off [fixed]
tx-gre-segmentation: off [fixed]
tx-ipip-segmentation: off [fixed]
tx-sit-segmentation: off [fixed]
tx-udp_tnl-segmentation: off [fixed]
fcoe-mtu: off [fixed]
tx-nocache-copy: off
loopback: off [fixed]
rx-fcs: off [fixed]
rx-all: off [fixed]
tx-vlan-stag-hw-insert: off [fixed]
rx-vlan-stag-hw-parse: off [fixed]
rx-vlan-stag-filter: off [fixed]
l2-fwd-offload: off [fixed]
busy-poll: off [fixed]

3.查看網卡速度

ethtool enp2s0 | grep \Speed
    Speed: 1000Mb/s

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章