epcap
epcap copied to clipboard
Intel DPDK Support for epcap
Hello Team,
I really appreciate your great work, I would like to know if any plan for DPDK support implementation is planned like PF_RING ?
If No I would like to start it, please give some guidelines to get started, like highlighting code portions required to focus and zoom in.
Hey @mmanoj! No immediate plans to support DPDK, so thank you for offering to work on it!
Since epcap is compiled against libpcap, DPDK support will depend on libpcap. There seems to be support: https://github.com/the-tcpdump-group/libpcap/blob/master/pcap-dpdk.c
-
compile epcap against libpcap with dpkd support
-
src/epcap.erl: modify to pass dpdk arguments (
{dpdk_cfg, string()}
) to port. https://github.com/msantos/epcap/blob/master/src/epcap.erl#L184PF_RING and dpdk are configured using environment variables.
https://github.com/the-tcpdump-group/libpcap/blob/master/pcap-dpdk.c#L75
-
test epcap, should be using dpdk!
epcap:start_link([{interface, "dpdk:0"}, {dpdk_cfg, "--log-level=debug -l0 -dlibrte_pmd_e1000.so -dlibrte_pmd_ixgbe.so -dlibrte_mempool_ring.so"}])
- update the README
Hi @msantos ,
Thanks for quick support, I will test and update you on the results.