baidu / dperf

dperf is a 100Gbps network load tester.
https://dperf.org
Apache License 2.0
5.05k stars 519 forks source link

[Bug] kni queue racing may cause kernel panic #458

Closed fkcrazy001 closed 3 months ago

fkcrazy001 commented 4 months ago

Describe the bug 在当前dpdk版本中,kni的tx/rx队列只有一个,但看起来会被多个dperf worker同时读取或者写入。

To Reproduce dperf运行足够长时间,kernel可能会panic

Additional context 此外,kni模块已经被废除,推荐使用内核的vhost-net模块,如果有需要我可以提pr

pengjianzhang commented 4 months ago

欢迎提PR

  1. 请修复kni bug,对于老的DPDK版本还是需要KNI的
  2. 支持vhost-net,对于新的DPDK版本
fkcrazy001 commented 4 months ago

pr已放于 https://github.com/baidu/dperf/pull/459

pengjianzhang commented 4 months ago

谢谢 正在review

fkcrazy001 commented 3 months ago

将评审中出现的commit合并,提交到新的pr

https://github.com/baidu/dperf/pull/481