Hello guys,
I am trying to receive packets from memif via DPDK.
In accordance with: libmemif: add testing application · FDio/vpp@7280e3f · GitHub
1)In VPP I create the memif interface:
create interface memif id 0 master
set int state memif0/0 up
set int l2 xconn GigabitEthernet5/0/0 memif0/0
set int l2 xconn memif0/0 GigabitEthernet5/0/0
…
set interface state GigabitEthernet5/0/0 up
2)This memif interface can be readed by test_app from libmemif: add testing application · FDio/vpp@7280e3f · GitHub
3)This memif interface can be readed by dpdk-testpmd:
test@vpp-desk:~$ sudo /home/test/projects/vpp/build-root/build-vpp-native/external/build-dpdk/app/dpdk-testpmd --vdev=net_memif0,role=slave,id=0,socket-abstract=no,socket=/run/vpp/memif.sock – -i
3)But I can’t configure the suricata to read this memif.
The suricata.yaml fragment is:
dpdk:
eal-params:
file-prefix: suri
proc-type: primary
vdev: ‘net_memif,role=slave,id=0,socket-abstract=no,socket=/run/vpp/memif.sock’
interfaces:
- interface: net_memif
checksum-checks: true
checksum-checks-offload: true
copy-iface: none
copy-mode: none
mempool-cache-size: 257
mempool-size: 65535
mtu: 1500
multicast: true
promisc: true
rss-hash-functions: auto
rx-descriptors: 1024
socket-id: 0
threads: 4
tx-descriptors: 1024
Suricata output:
i: suricata: This is Suricata version 7.0.0-rc2 RELEASE running in SYSTEM mode
W: exception-policy: exception-policy: auto not a valid config in IDS mode. Ignoring it.
W: detect: No rule files match the pattern /usr/local/var/lib/suricata/rules/suricata.rules
W: detect: 1 rule files specified, but no rules were loaded!
EAL: No available 1048576 kB hugepages reported
EAL: Cannot open /dev/vfio/noiommu-0: Device or resource busy
EAL: Failed to open VFIO group 0
EAL: Requested device 0000:05:00.0 cannot be used
TELEMETRY: No legacy callbacks, legacy socket not created
i: conf: unable to find interface default in DPDK config
E: dpdk: net_memif: invalid socket id (err: Operation not permitted)
E: dpdk: net_memif: failed to configure
The question is: Can the Suricata version 7.0.0-rc2 receive packets from memif via DPDK?
Is there something that I am doing wrong ?
Thank you for any hint/help