I have build kernel (linux-qoriq - kenel version 6.1) and core-minimal-rootfs for ls1043ARDB using yocto base layerscape SDK and also enabled FMC and dpdk packages. I had refere Layerscape_Linux_distribution_POC_user_guide (LLDPU0G_RevL6.1.1_1.0.0_23.08.pdf) for setup and cross-compilation process.
I am trying to integrate DPAA network engine with DPDK but facing problem to bind ethernet interface with DPDK and set IPv4 address for those interfaces.
I have boot through fsl-ls1043a-rdb-usdpaa.dtb and run below command after getting control as root login.
>> fmc -x
>> fmc -c /usr/share/dpdk/dpaa/usdpaa_config_ls1043.xml -p /usr/share/dpdk/dpaa/usdpaa_policy_hash_ipv4_1queue.xml
When I run dpdk-tools i can see log and observe that 4 interface configured in dtb is available and rest 2 interface are attached with linux network stack as below.
================================================================================
root@ls1043ardb:~ dpdk-testpmd
EAL: Detected CPU lcores: 4
EAL: Detected NUMA nodes: 1
EAL: Detected static linkage of DPDK
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL: lsx_pciep:SoC(0x87920000) not supported
EAL: Scan for (lsx_pciep) bus failed.
EAL: Selected IOVA mode 'PA'
EAL: No available 32768 kB hugepages reported
EAL: No available 64 kB hugepages reported
EAL: No available 1048576 kB hugepages reported
EAL: VFIO support initialized
Nov 8 14:44:12 ls1043ardb daemon.info dpdk-testpmd[349]: EAL: VFIO support initialized
EAL: DPAA Bus Detected
Nov 8 14:44:12 ls1043ardb daemon.notice dpdk-testpmd[349]: EAL: DPAA Bus Detected
PMD: net: dpaa: fm1-mac1: 00:04:9F:04:F0:D4
Nov 8 14:44:12 ls1043ardb daemon.info dpdk-testpmd[349]: PMD: net: dpaa: fm1-mac1: 00:04:9F:04:F0:D4
PMD: net: dpaa: fm1-mac2: 00:04:9F:04:F0:D5
Nov 8 14:44:12 ls1043ardb daemon.info dpdk-testpmd[349]: PMD: net: dpaa: fm1-mac2: 00:04:9F:04:F0:D5
PMD: net: dpaa: fm1-mac5: 00:04:9F:04:F0:D8
Nov 8 14:44:12 ls1043ardb daemon.info dpdk-testpmd[349]: PMD: net: dpaa: fm1-mac5: 00:04:9F:04:F0:D8
PMD: net: dpaa: fm1-mac6: 00:04:9F:04:F0:D9
Nov 8 14:44:12 ls1043ardb daemon.info dpdk-testpmd[349]: PMD: net: dpaa: fm1-mac6: 00:04:9F:04:F0:D9
PMD: net: dpaa: fm1-mac9: 00:04:9F:04:F0:DA
Nov 8 14:44:12 ls1043ardb daemon.info dpdk-testpmd[349]: PMD: net: dpaa: fm1-mac9: 00:04:9F:04:F0:DA
PMD: dpaa_sec-1 cryptodev init
Nov 8 14:44:13 ls1043ardb daemon.info dpdk-testpmd[349]: PMD: dpaa_sec-1 cryptodev init
PMD: dpaa_sec-2 cryptodev init
Nov 8 14:44:13 ls1043ardb daemon.info dpdk-testpmd[349]: PMD: dpaa_sec-2 cryptodev init
PMD: dpaa_sec-3 cryptodev init
Nov 8 14:44:13 ls1043ardb daemon.info dpdk-testpmd[349]: PMD: dpaa_sec-3 cryptodev init
PMD: dpaa_sec-4 cryptodev init
Nov 8 14:44:13 ls1043ardb daemon.info dpdk-testpmd[349]: PMD: dpaa_sec-4 cryptodev init
TELEMETRY: No legacy callbacks, legacy socket not created
Nov 8 14:44:13 ls1043ardb daemon.warn dpdk-testpmd[349]: TELEMETRY: No legacy callbacks, legacy socket not created
EAL: Error - exiting with code: 1
Cause: Nov 8 14:44:13 ls1043ardb daemon.crit dpdk-testpmd[349]: EAL: Error - exiting with code: 1 Cause:
No cores defined for forwarding
Check the core mask argument
Nov 8 14:44:13 ls1043ardb daemon.crit dpdk-testpmd[349]: No c[ 2639.670223] audit: type=1701 audit(1667918653.412:24): auid=4294967295 uid=0 gid=0 ses=4294967295 pid=349 comm="dpdk-1
ores defined for forwarding Check the core mask argument
[ 2643.058669] USDPAA release: 16417 FQIDs
[ 2643.246818] USDPAA release: 5 CGRIDs
Segmentation fault
================================================================================
root@ls1043ardb:~ ifconfig
eth0 Link encap:Ethernet HWaddr 00:04:9F:04:F0:D6
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Memory:1ae4000-1ae4fff
eth1 Link encap:Ethernet HWaddr 00:04:9F:04:F0:D7
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Memory:1ae6000-1ae6fff
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
================================================================================
Below bind command is not working
root@ls1043ardb:~ dpdk-devbind.py --bind=uio_pci_generic 0000:01:00.0 root@ls1043ardb:~ dpdk-devbind.py --bind=uio_pci_generic fm1-mac6 root@ls1043ardb:~ dpdk-devbind.py --bind=uio_pci_generic eth0
================================================================================
My question are below.
1. How I can bind eth0 and eth1 with DPDK and remove from network stack ?
2. How to set ip address of all 6 interface in DPDK mode ?
3 How to check ping response of all 6 interface in DPDK mode?
4. how I can forward packet from one ethernet interface to another one interface using DPDK ?
5. What is optimal way todo packet forward using DPAA network engine ?
6 which driver name should i have to use in below command
>> dpdk-devbind.py --bind=driver_name eth0