F-Stack / f-stack

F-Stack is an user space network development kit with high performance based on DPDK, FreeBSD TCP/IP stack and coroutine API.
http://www.f-stack.org
Other
3.82k stars 891 forks source link

Why should tx checksum offload be closed in bonding mode? #733

Closed ghpass closed 1 year ago

ghpass commented 1 year ago

Bonding mode 4 is adpoted in my testing(two Interl 82599ES 10GE NIC ). The version of f-stack is 1.22. Everything is ok when "tx_csum_offoad_skip" is set as 1 . But if "tx_csum_offoad_skip" is set as 0, each package sent from f-stack will be dropped by peer. The IP checksum is incorrect (zero). So the tx checksum offload is not valid. I look through the code about 'TX ip checksum offload' in init_port_start(void) and can't find anything wrong.
If 'TX ip checksum offload' is disabled, the usage of cpu will be higher. Any suggestion is appreciated.

jfb8856606 commented 1 year ago

F-Stack 1.22 use DPDK 20.11, which not support tx checksum offload.

See https://patches.dpdk.org/project/dpdk/patch/1619171202-28486-2-git-send-email-tangchengchang@huawei.com/

ghpass commented 1 year ago

Thanks!