Hi,
I have a custom LS1046A board and we are running on LSDK20.04 version.
Our scenario is that we can only use one network port(e.g., say we were using fm1-mac9 only). For this port there are multiple applications sharing it. One of the application will use DPDK feature so we simply alias one interface for DPDK use e.g.,
fm1-mac9 <ip#1> --> for system interface used.
fm1-mac9:1 <ip#2> --> for DPDK application used.
------------------------------------------------------------------------------------
In the dts file we declared one interface is for kernel VSP(i.e., ethernet-shared properties). And the other is for DPDK VSP. So that DPDK will not fully take control for whole interface.
Test setup is our board directly connected to a PC.
Below is the command we used to test DPDK. Test was performed by issuing ping command from PC.
"l2fwd -c 0xa -n 1 -- -p 0x1" and logs are,
EAL: Detected 4 lcore(s)
EAL: Detected 1 NUMA nodes
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL: Selected IOVA mode 'PA'
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-mac9: 00:04:9f:04:ad:99
PMD: dpaa_sec-1 cryptodev init
PMD: dpaa_sec-2 cryptodev init
PMD: dpaa_sec-3 cryptodev init
PMD: dpaa_sec-4 cryptodev init
MAC updating enabled
Notice: odd number of ports in portmask.
Lcore 1: RX port 0
Initializing port 0... done:
Port 0, MAC address: 00:04:9F:04:AD:99
Checking link statusdone
Port0 Link Up. Speed 10000 Mbps - full-duplex
L2FWD: lcore 3 has nothing to do
L2FWD: entering main loop on lcore 1
L2FWD: -- lcoreid=1 portid=0
[2J[1;1H
Port statistics ====================================
Statistics for port 0 ------------------------------
Packets sent: 0
Packets received: 0
Packets dropped: 0
Aggregate statistics ===============================
Total packets sent: 0
Total packets received: 0
Total packets dropped: 0
====================================================
[2J[1;1H
Port statistics ====================================
Statistics for port 0 ------------------------------
Packets sent: 2
Packets received: 2
Packets dropped: 0
Aggregate statistics ===============================
Total packets sent: 2
Total packets received: 2
Total packets dropped: 0
====================================================
[2J[1;1H
Port statistics ====================================
Statistics for port 0 ------------------------------
Packets sent: 4
Packets received: 4
Packets dropped: 0
Aggregate statistics ===============================
Total packets sent: 4
Total packets received: 4
Total packets dropped: 0
====================================================
Looks like DPDK interface is able to received packet from PC we can see packets increasing.
Question here is : Why we can't see icmp packets replied from DPDK binded interface( fm1-mac9:1)?
But we can get icmp responses from fm1-mac9. Are there some setting issues ?
Thanks,
Darren