leoll2 / UDPDK

A minimal UDP stack based on DPDK
Other
83 stars 35 forks source link

use dpdk send only #3

Closed ktprime closed 2 years ago

ktprime commented 2 years ago

can I use your lib send udp packet only, and recv udp packet from epoll(linux kernel)?

leoll2 commented 2 years ago

Hello! Yes, the packets generated by UDPDK are technically well-formed UDP ones, so you should be able to receive them on a different interface even if it's driven by the linux kernel.

ktprime commented 2 years ago

Thanks for your details explain, UDPDK is a good design and it's api easy to use. I've plan to send quic(udp) packets by using dpdk to accelerate. (according my benchmark linux udp's api sendmmsg is quite slow than tcp), my program is single thread (multiple process) which runs on linux server. can your udpdk lib runs on multi process environment?

leoll2 commented 2 years ago

While UDPDK itself is two-process framework, it's not possible yet to share the same poller (secondary process) across multiple primary processes. On the other hand, if your cores run independent applications, with a proper DPDK configuration you may be able to run multiple instances of UDPDK in parallel (provided you have enough hw resources).