[dpdk-users] Issue on Running KNI application

Pattan, Reshma reshma.pattan at intel.com
Wed Dec 9 12:41:59 CET 2015


Hi Arun,

I see below EAL info from the given output, that means you have only 4 lcores on your board numbering 0, 1,2,3.
So you need to change the core mask and core numbering that you have passed  to --config.

> EAL: Detected 4 lcore(s)
> EAL: lcore 4 unavailable

Ex: if you want to use all 4 cores u need to try below command
 ./kni -c 0xf -n 4 -- -P -p 0x3 --config="(0,1,0),(1,2,3)"

-c 0xf 				==> enables all 4 cores 0,1,2,3
--config="(0,1,0),(1,2,3)" 	==>(0,1,0) core 1 is RX core and core 0 is TX core
				==>(1,2,3) core 2 is RX core and core 3 is TX core

You can change RX and TX core numbers to your choice,  I just gave an example. 
But whatever cores you wants to use make sure those exists on board and should be enabled in core mask and the same should be used in config option.
You can check how many lcores are there on your board by using ./too/cpu_layout.py

To check how to run KNI and understand command line options  take a look at KNI sample application section from Sample Application User guide.

Thanks,
Reshma

> -----Original Message-----
> From: P D, Arun (Nokia - IN/Bangalore) [mailto:arun.p_d at nokia.com]
> Sent: Wednesday, December 9, 2015 5:49 AM
> To: Pattan, Reshma
> Cc: users at dpdk.org
> Subject: RE: Issue on Running KNI application
> 
> Hi Reshma,
> 
> I am getting error, upon executing saying that it's an invalid core mask.
> 
> Also please let me know how you are calculating the hexadecimal bitmask for
> the cores.
> 
> ./kni -c 0x1E -n 4 -- -P -p 0x3 --config="(0,1,3),(1,2,4)"
> 
> EAL: Detected lcore 0 as core 0 on socket 0
> EAL: Detected lcore 1 as core 1 on socket 0
> EAL: Detected lcore 2 as core 2 on socket 0
> EAL: Detected lcore 3 as core 3 on socket 0
> EAL: Support maximum 128 logical core(s) by configuration.
> EAL: Detected 4 lcore(s)
> EAL: lcore 4 unavailable
> EAL: invalid coremask
> 
> Regards,
> Arun Raj
> 
> -----Original Message-----
> From: EXT Pattan, Reshma [mailto:reshma.pattan at intel.com]
> Sent: Wednesday, December 09, 2015 3:37 AM
> To: P D, Arun (Nokia - IN/Bangalore) <arun.p_d at nokia.com>; users at dpdk.org
> Subject: RE: Issue on Running KNI application
> 
> Hi Arun,
> 
> Core mask value i.e. -c value should be 0x1E in your command. Because you are
> using cores 1,2,3,4 so their respective bits must be set to 1 in -c value.
> 
> ./kni -c 0x1E -n 4 -- -P -p 0x3 --config="(0,1,3),(1,2,4)"
> 
> Thanks,
> Reshma
> 
> > -----Original Message-----
> > From: users [mailto:users-bounces at dpdk.org] On Behalf Of P D, Arun
> > (Nokia -
> > IN/Bangalore)
> > Sent: Tuesday, December 8, 2015 6:06 PM
> > To: users at dpdk.org
> > Subject: [dpdk-users] Issue on Running KNI application
> >
> > Hello,
> >
> > I am trying to run the KNI program in examples of dpdk.
> >
> > I am giving the following command and facing the error as  "Cause:
> > lcore id 1 for port 0 receiving not enabled".
> >
> > Please let me know if I am making any mistake at config parameters, or
> > I am missing something.
> >
> > ./kni -c 4 -n 4 -- -P -p 0x3 --config="(0,1,3),(1,2,4)"
> >
> > EAL: Detected lcore 0 as core 0 on socket 0
> > EAL: Detected lcore 1 as core 1 on socket 0
> > EAL: Detected lcore 2 as core 2 on socket 0
> > EAL: Detected lcore 3 as core 3 on socket 0
> > EAL: Support maximum 128 logical core(s) by configuration.
> > EAL: Detected 4 lcore(s)
> > EAL: Setting up physically contiguous memory...
> > EAL: Ask a virtual area of 0x200000 bytes
> > EAL: Virtual area found at 0x7fd603600000 (size = 0x200000)
> > EAL: Ask a virtual area of 0x1000000 bytes
> > EAL: Virtual area found at 0x7fd602400000 (size = 0x1000000)
> > EAL: Ask a virtual area of 0x3c00000 bytes
> > EAL: Virtual area found at 0x7fd5fe600000 (size = 0x3c00000)
> > EAL: Ask a virtual area of 0x50400000 bytes
> > EAL: Virtual area found at 0x7fd5ae000000 (size = 0x50400000)
> > EAL: Ask a virtual area of 0x29c00000 bytes
> > EAL: Virtual area found at 0x7fd584200000 (size = 0x29c00000)
> > EAL: Ask a virtual area of 0x1000000 bytes
> > EAL: Virtual area found at 0x7fd583000000 (size = 0x1000000)
> > EAL: Ask a virtual area of 0x200000 bytes
> > EAL: Virtual area found at 0x7fd582c00000 (size = 0x200000)
> > EAL: Requesting 1024 pages of size 2MB from socket 0
> > EAL: TSC frequency is ~3192614 KHz
> > EAL: Master lcore 2 is ready (tid=3cb98e0;cpuset=[2])
> > EAL: PCI device 0000:03:00.0 on NUMA socket -1
> > EAL:   probe driver: 8086:1533 rte_igb_pmd
> > EAL:   Not managed by a supported kernel driver, skipped
> > EAL: PCI device 0000:05:00.0 on NUMA socket -1
> > EAL:   probe driver: 8086:100e rte_em_pmd
> > EAL:   Not managed by a supported kernel driver, skipped
> > EAL: PCI device 0000:06:00.0 on NUMA socket -1
> > EAL:   probe driver: 8086:10d3 rte_em_pmd
> > EAL:   Not managed by a supported kernel driver, skipped
> > APP: Port ID: 0
> > APP: Rx lcore ID: 1, Tx lcore ID: 3
> > APP: Port ID: 1
> > APP: Rx lcore ID: 2, Tx lcore ID: 4
> > EAL: Error - exiting with code: 1
> >   Cause: lcore id 1 for port 0 receiving not enabled
> >
> > Regards,
> > Arun Raj



More information about the users mailing list