Hi
I have been running l2fwd with interface fm1-mac5(ethernet@4) and I can receive data from dpdk. I can run l2fwd with interface fm1-mac9(ethernet@8) but I can't receive data from dpdk.
The config data file and the pcd file we used as below.
<classification name="dpdk_mac5_classif" masks="yes">
<key>
<fieldref name ="ipv4.nextp"/>
</key>
<entry>
<vsp name="dpdk_mac5_flows" />
<data>0x11</data>
<mask>0xFF</mask>
<queue base="0x900" count="1"/>
</entry>
<entry>
<vsp name="dpdk_mac5_flows" />
<data>0x32</data>
<mask>0xFF</mask>
<queue base="0x900" count="1"/>
</entry>
<action condition="on-miss" type="distribution" name="default_mac5_dist"/>
</classification>
<distribution name="dpdk_mac5_dist">
<vsp name="dpdk_mac5_flows" />
<protocols>
<protocolref name="ipv4"/>
</protocols>
<queue base="0x900" count="1"/>
<action type="classification" name="dpdk_mac5_classif" />
</distribution>
<distribution name="default_mac5_dist">
<vsp name="shared_mac_pool" />
<queue count="1" base="0x88"/>
</distribution>
<classification name="dpdk_mac9_classif" masks="yes">
<key>
<fieldref name ="ipv4.nextp"/>
</key>
<entry>
<vsp name="dpdk_mac9_flows" />
<data>0x11</data>
<mask>0xFF</mask>
<queue base="0xb00" count="1"/>
</entry>
<entry>
<vsp name="dpdk_mac9_flows" />
<data>0x32</data>
<mask>0xFF</mask>
<queue base="0xb00" count="1"/>
</entry>
<action condition="on-miss" type="distribution" name="default_mac9_dist"/>
</classification>
<distribution name="dpdk_mac9_dist">
<vsp name="dpdk_mac9_flows" />
<protocols>
<protocolref name="ipv4"/>
</protocols>
<queue base="0xb00" count="1"/>
<action type="classification" name="dpdk_mac9_classif" />
</distribution>
<distribution name="default_mac9_dist">
<vsp name="shared_mac_pool" />
<queue count="1" base="0x8a"/>
</distribution>
What can I check to know why the fm1-mac9 can't receive data from dpdk?
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
====================================================
For the TPM the mac9 and mac10 is used for 10g phy, in our side, we connect the 1g phy the same as the mac5, but mac5 can work, is there some limitation on mac9 with 1G phy for dpdk vsp mode?
mac9 with 1G phy cannot work.
what's the meaning of mac9 with 1G phy can't work? dpdk vsp can't work? What's the limitation on it?
If the negotiation between MAC9 and your 1G PHY is successful, then it can work in Linux Kernel, it could also work in the DPDK VSP scenario. VSP has no relation with the link of PHY MAC.
Based on our test, in kernel mode it is working, but vsp is not working with 1G Phy, and from the fman code in lsdk, we checked mac9 and mac10 is hardcode as 10G, does this configuration will casue the vsp not working with 1G phy? How can we debug further?
Please run debug_dump.sh script and send us the output.
This script is typically present in /usr/local/dpdk directory on the board.
Or you can copy it from dpdk/nxp/ source code.
Can you run it with following command as well:
/home/l2fwd -w fm1-mac9 -c 0x3 -n 1 --file-prefix=p1 --socket-mem=1024 --log-level=eal,8 --log-level=dpaa,8 -- -p 0x1 -q 1
This will give use dpaa bus related logs
Hi,
How to defined the queue base="0xb00" in the policy xml?
Did fm1-mac9 work normally when you use the default policy files provided in LSDK 21.08?
Did you use VSP scenario?
Did you boot the target board with dtb file fsl-ls1046a-rdb-usdpaa-shared.dtb?
Please setup VSP fmc configuration as the following to check whether ethernet@8 can receive data from DPDK.
$ fmc -c /usr/local/dpdk/dpaa/usdpaa_config_ls1046_shared_24g.xml -p /usr/local/dpdk/dpaa/usdpaa_policy_24g_classif_udp_ipsec_1queue.xml -a
Did you check whether fm1-mac9 can work in Linux?
Yes, I use the VSP scenario and boot the target board with dtb file fsl-ls1046a-rdb-usdpaa-shared.dtb.
I have setuped VSP fmc configuration as you saided.
I have checked fm1-mac9 can work in Linux(I can setup my device to connect mme and make ue attach, but can not ping the device form mme). So I confirmed I can receive data from kernel, but can not receive data from dpdk.
When I change to fm1-mac5(ethernet@4), I can receive data from dpdk.
BR
Do you have ls1046ardb demo board?
If yes, please run all your configurations on LS1046ARDB to do verification.
Please use fsl-ls1046a-rdb-usdpaa-shared.dtb and xml files /usr/local/dpdk/dpaa/usdpaa_config_ls1046_shared_24g.xml and /usr/local/dpdk/dpaa/usdpaa_policy_24g_classif_udp_ipsec_1queue.xm all from LSDK 21.08 default configuration, it seems that you have modified /usr/local/dpdk/dpaa/usdpaa_policy_24g_classif_udp_ipsec_1queue.xml.
Hi NXP,
One thing need highlight here is,in our project we used the mac9 and mac10 connect with 1G phy solution, not 10G phy,I think the reference board is 10G phy based, is there anything we need to change to support 1G phy on mac9 for dpaa vsp feature.