epcap icon indicating copy to clipboard operation
epcap copied to clipboard

Intel DPDK Support for epcap

Open mmanoj opened this issue 5 years ago • 2 comments

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.

mmanoj avatar Feb 07 '20 09:02 mmanoj

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#L184

    PF_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

msantos avatar Feb 07 '20 15:02 msantos

Hi @msantos ,

Thanks for quick support, I will test and update you on the results.

mmanoj avatar Feb 07 '20 15:02 mmanoj