No Ethernet ports while creating new DPMAC with ls-addni

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

No Ethernet ports while creating new DPMAC with ls-addni

2,430 Views
prabhat_shukla
Contributor I

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.

Labels (2)
Tags (2)
0 Kudos
Reply
5 Replies

2,231 Views
yipingwang
NXP TechSupport
NXP TechSupport

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

0 Kudos
Reply

2,231 Views
prabhat_shukla
Contributor I

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

0 Kudos
Reply

2,231 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello Prabhat,

You could create a script to run dynamic_dpl.sh when the system bootup.

  1. Create a script in folder /etc/init.d/run_dpl
  2. sudo chmod 755 /etc/init.d/run_dpl
  3. sudo update-rc.d run_dpl default

 

Thanks,

Yiping

0 Kudos
Reply

2,231 Views
prabhat_shukla
Contributor I

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

0 Kudos
Reply

2,231 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello Prabhat,

You could configure these DPMAC objects in DPL files in  dprc.2 container.

Thanks,

Yiping

0 Kudos
Reply