I test this project with pktegn in the same machine, pktgen in docker and dpdk-suricata in host.
I build a clear docker envrioment mounting hugepages folder and /tmp/virtio/, where I plan to save my virtio socks on host.
Then I run this command in docker
`./pktgen -l 1-5 -n 3 --socket-mem 1024 --vdev 'eth_vhost0,iface=/tmp/virtio/sock0' --file-prefix=test --no-pci -- -P -m "5.0"
It seems pktgen works well in container, and there it is a sock0 file in /tmp/virtio/
And I test this for sure in host:
sudo ./testpmd -l 0-1 -n 1 --socket-mem 1024 --vdev 'virtio_user0,path=/tmp/virtio/sock0' -- -i --forward-mode=io --auto-start
Testpmd can receive packte from pktgen(all packets can be received in order).
Then I run dpdk-suricata in host with config like this:
I test this project with pktegn in the same machine, pktgen in docker and dpdk-suricata in host. I build a clear docker envrioment mounting hugepages folder and /tmp/virtio/, where I plan to save my virtio socks on host. Then I run this command in docker `./pktgen -l 1-5 -n 3 --socket-mem 1024 --vdev 'eth_vhost0,iface=/tmp/virtio/sock0' --file-prefix=test --no-pci -- -P -m "5.0" It seems pktgen works well in container, and there it is a sock0 file in /tmp/virtio/
And I test this for sure in host:
sudo ./testpmd -l 0-1 -n 1 --socket-mem 1024 --vdev 'virtio_user0,path=/tmp/virtio/sock0' -- -i --forward-mode=io --auto-start
Testpmd can receive packte from pktgen(all packets can be received in order).Then I run dpdk-suricata in host with config like this:
Command: ./src/suricata -c suricata.yaml --dpdkintel But I got this error:
Then I locate this error in https://github.com/vipinpv85/DPDK-Suricata_3.0/blob/35358175edc538c244b4b7a3acfa734a1a69a03c/suricata-3.0/src/util-dpdk-setup.c#L164
And I notice there is a TODO saying that:
And the default configuration is:
I try to change default config in your code by imitating l2fwd's config, but failed. Now I am not sure if there is still a todo or not.