I am facing problem while creating the new DPMAC object.
if i use dynamic_dpl.sh script file to create the new DPMAC object ,l2fwd or any example application can successfully detect this DPMAC as Ethernet port.
But if i create the new DPMAC object with ls-addni command , i got error saying no Ethernet ports.
ex-
ls-addni dpmac.4
Created interface: eth2 (object:dpni.2, endpoint: dpmac.4)
But this DPMAC.4 is not available as Ethernet port
while if i use ./dynamic_dpl.sh dpmac.4 , then this DPMAC.4 is available as Ethernet port.
I want to know what is difference between these two way of object creation?
Basically my goal is to create some DPMAC object and port this into DPL file and flash into target to remain the changes persistently.
Hello Prabhat Kumar Shukla,
The command ls-addni is used in Kernel space, the created objects are put in dprc.1.
The script dynamic_dpl.sh is used in DPDK, the created objects are put in dprc.2.
Thanks,
Yiping
Hello Yiping,
Thank you for your ans.
I understood the difference between the way the ls-addni and dynamic_dpl.sh creating new object.
But is there any way to configure new DPMAC object (created by dynamic_dpl.sh) to be present persistently into the target even after bootup?
I want to use these port to be use by DPDK application.
Regards,
Prabhat
Hello Prabhat,
You could create a script to run dynamic_dpl.sh when the system bootup.
Thanks,
Yiping
Hello Yiping,
Yes, Currently I am handling the DPMAC object creation kind of in this way only.
Rather than using the script in /etc/init.d , I am using service which is going to invoke my script.
So in every boot , my script first create the DPMAC object and then invoke my application.
But I don’t want int this way , Because it take some time to create the DPMAC object before invoking my application and I want to optimize the booting time for my application.
For that reason I ask is there anyway to configure these DPMAC permanently into target ?
Best Regards,
Prabhat
Hello Prabhat,
You could configure these DPMAC objects in DPL files in dprc.2 container.
Thanks,
Yiping