目前情况是:
使用dpdk 绑定pcie网卡设备: pcie 网卡设备 dpaa: fm1-mac10 dpaa_sec-1 cryptodev init
如何使用一个dpdk 程序识别三个设备:
这是pci 找到网卡设备
root@:/home/user# lspci
00:00.0 PCI bridge: Freescale Semiconductor Inc Device 81c0 (rev 10)
01:00.0 Ethernet controller: Device 11c0:0809 (rev 02)
绑定上网卡
root@:/home/# dpdk-devbind.py -s
Network devices using DPDK-compatible driver
============================================
0000:01:00.0 'Device 0809 ' drv=uio_pci_generic unused=vfio-pci
单独运行 看不到 pcie 01:00.0网卡设备
root@:/home/# ./dpdk-test-sec
EAL: Detected 4 lcore(s)
EAL: Detected 1 NUMA nodes
EAL: Detected static linkage of DPDK
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL: Selected IOVA mode 'PA'
EAL: No available hugepages reported in hugepages-32768kB
EAL: No available hugepages reported in hugepages-64kB
EAL: No free hugepages reported in hugepages-1048576kB
EAL: No available hugepages reported in hugepages-1048576kB
EAL: Probing VFIO support...
EAL: VFIO support initialized
EAL: DPAA Bus Detected
PMD: Using FMC script mode,RXQs will be setup according to FMC configuration
PMD: net: dpaa: fm1-mac10: 00:e0:0c:40:41:59
PMD: dpaa_sec-1 cryptodev init
PMD: dpaa_sec-2 cryptodev init
PMD: dpaa_sec-3 cryptodev init
PMD: dpaa_sec-4 cryptodev init
EAL: No legacy callbacks, legacy socket not created
单独运行 添加-a 参数也看不到 pcie 01:00.0网卡设备
root@:/home/# ./dpdk-test-sec -c 0x3 -n 1 -a 01:00.0
EAL: Detected 4 lcore(s)
EAL: Detected 1 NUMA nodes
EAL: Detected static linkage of DPDK
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL: Selected IOVA mode 'PA'
EAL: No available hugepages reported in hugepages-32768kB
EAL: No available hugepages reported in hugepages-64kB
EAL: No free hugepages reported in hugepages-1048576kB
EAL: No available hugepages reported in hugepages-1048576kB
EAL: Probing VFIO support...
EAL: VFIO support initialized
EAL: DPAA Bus Detected
PMD: Using FMC script mode,RXQs will be setup according to FMC configuration
PMD: net: dpaa: fm1-mac10: 00:e0:0c:40:41:59
PMD: dpaa_sec-1 cryptodev init
PMD: dpaa_sec-2 cryptodev init
PMD: dpaa_sec-3 cryptodev init
PMD: dpaa_sec-4 cryptodev init
EAL: No legacy callbacks, legacy socket not create
使用网卡程序01:00.0 可以找网卡设备 但是找不到f1m-mac10 dpaa_sec-1
root@:/home/# ./dpdk-test
EAL: Detected 4 lcore(s)
EAL: Detected 1 NUMA nodes
EAL: Detected static linkage of DPDK
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL: Selected IOVA mode 'PA'
EAL: No available 32768 kB hugepages reported
EAL: No available 64 kB hugepages reported
EAL: No free 1048576 kB hugepages reported on node 0
EAL: No available 1048576 kB hugepages reported
EAL: VFIO support initialized
EAL: Probe PCI driver: net_pc0809 (11c0:0809) device: 0000:01:00.0 (socket 0)
使用网卡程序01:00.0 可以找网卡设备 但是找不到f1m-mac10 dpaa_sec-1
root@:/home/# ./dpdk-test --file-prefix=/tmp -a f1m-mac10 -a dpaa_sec-1
EAL: Detected 4 lcore(s)
EAL: Detected 1 NUMA nodes
EAL: Detected static linkage of DPDK
EAL: failed to parse device "f1m-mac10"
EAL: Unable to parse device 'f1m-mac10'
PANIC in main():
Please refer to the following commands.
dpdk-devbind --bind=uio_pci_generic 0000:01:00.0
l2fwd -c 0x3 -n 1 -w 0000:01:00.0 – -p 0x1 -q 1