The ports always returns 0 when I run suricata based dpdk

601 Views Asked by At

I have installed DPDK-19.11.1 LTS successfully as follows:

And the NIC I have bound as follows:

If I run an example (dpdk/dpdk-stable-19.11.3/examples/skeleton/build/basicfwd),the function rte_eth_dev_count_avail() returns the ports I bound with dpdk-devbind.py.

I have also installed Suricata-4.1.4 on Ubuntu 16.04 LTS,but when I run suricata,the dpdk ports always returns 0:

So I want to know how can I solve this problem?

2

There are 2 best solutions below

2
On BEST ANSWER

Checking the update in the ticket https://github.com/vipinpv85/DPDK_SURICATA-4_1_1/issues/11, the solution is already shared as can you please check if you are using the latest version? If yes please add support for 1G Intel NIC in your environment and update ASAP

hence please add the missing PMD for your use case.

[EDIT-2] the DPDK PMD used for 1G Intel NIC is rte_pmd_e1000

[EDIT-3] had live debug, show case the change to be added for Makfile. Tested and it works

0
On

Thanks for vipin's kind help. I have solve this problem successfully.

This is because in dpdk/suricata-4.1.4/src/Makefile, there is only support for i40e. So I add the -lrte_pmd_e1000 -Wl for i350.