[dpdk-dev] KNI sample application running procedure

2015-12-07 Thread Abdul, Jaffar
Hi Nishant,

Thanks for your suggestions but even it did not work, In the meanwhile, I will 
see what can I do from my side. Any other suggestions from the community is 
also really helpful at this time

root at x10sdv-f:/opt/dpdk/x86_64-native-linuxapp-gcc/app# ./kni -c 0x0f -n 2 
-- -P -p 0x3 --config="(0,2,3),(1,0,1)"
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: Detected lcore 4 as core 4 on socket 0
EAL: Detected lcore 5 as core 5 on socket 0
EAL: Detected lcore 6 as core 6 on socket 0
EAL: Detected lcore 7 as core 7 on socket 0
EAL: Detected lcore 8 as core 0 on socket 0
EAL: Detected lcore 9 as core 1 on socket 0
EAL: Detected lcore 10 as core 2 on socket 0
EAL: Detected lcore 11 as core 3 on socket 0
EAL: Detected lcore 12 as core 4 on socket 0
EAL: Detected lcore 13 as core 5 on socket 0
EAL: Detected lcore 14 as core 6 on socket 0
EAL: Detected lcore 15 as core 7 on socket 0
EAL: Support maximum 16 logical core(s) by configuration.
EAL: Detected 16 lcore(s)
EAL: VFIO modules not all loaded, skip VFIO support...
EAL: Setting up physically contiguous memory...
EAL: Ask a virtual area of 0x20 bytes
EAL: Virtual area found at 0x7ff6be40 (size = 0x20)
EAL: Ask a virtual area of 0x20 bytes
EAL: Virtual area found at 0x7ff6be00 (size = 0x20)
EAL: Ask a virtual area of 0x3c40 bytes
EAL: Virtual area found at 0x7ff681a0 (size = 0x3c40)
EAL: Ask a virtual area of 0x360 bytes
EAL: Virtual area found at 0x7ff67e20 (size = 0x360)
EAL: Ask a virtual area of 0x20 bytes
EAL: Virtual area found at 0x7ff67de0 (size = 0x20)
EAL: Ask a virtual area of 0xc000 bytes
EAL: Virtual area found at 0x7ff5bdc0 (size = 0xc000)
EAL: Requesting 2048 pages of size 2MB from socket 0
EAL: TSC frequency is ~201 KHz
EAL: Master lcore 0 is ready (tid=bf8028c0;cpuset=[0])
EAL: lcore 3 is ready (tid=bcbfd700;cpuset=[3])
EAL: lcore 1 is ready (tid=bdbff700;cpuset=[1])
EAL: lcore 2 is ready (tid=bd3fe700;cpuset=[2])
EAL: PCI device :03:00.0 on NUMA socket -1
EAL:   probe driver: 8086:15ad rte_ixgbe_pmd
EAL:   Not managed by a supported kernel driver, skipped
EAL: PCI device :03:00.1 on NUMA socket -1
EAL:   probe driver: 8086:15ad rte_ixgbe_pmd
EAL:   Not managed by a supported kernel driver, skipped
EAL: PCI device :05:00.0 on NUMA socket -1
EAL:   probe driver: 8086:1521 rte_igb_pmd
EAL:   PCI memory mapped at 0x7ff6be60
EAL:   PCI memory mapped at 0x7ff6be62
PMD: eth_igb_dev_init(): port_id 0 vendorID=0x8086 deviceID=0x1521
EAL: PCI device :05:00.1 on NUMA socket -1
EAL:   probe driver: 8086:1521 rte_igb_pmd
EAL:   PCI memory mapped at 0x7ff6be624000
EAL:   PCI memory mapped at 0x7ff6be644000
PMD: eth_igb_dev_init(): port_id 1 vendorID=0x8086 deviceID=0x1521
APP: Port ID: 0
APP: Rx lcore ID: 2, Tx lcore ID: 3
APP: Port ID: 1
APP: Rx lcore ID: 0, Tx lcore ID: 1
EAL: Error - exiting with code: 1
  Cause: portmask is not consistent to port ids specified in --config
root at x10sdv-f:/opt/dpdk/x86_64-native-linuxapp-gcc/app#

Thanks
Jaffar

From: Nishant Verma [mailto:vnis...@gmail.com]
Sent: Monday, December 07, 2015 1:58 PM
To: Abdul, Jaffar
Cc: dev at dpdk.org; Ismail, Aws
Subject: Re: [dpdk-dev] KNI sample application running procedure

As par error message, it seems error lies in validation. But it seems right
Can you try to run the app without kthread option. if you haven't tried that. 
just to pin point the problem.

./kni -c 0x0f -n 2 -- -P -p 0x3 --config="(0,2,3),(1,0,1)"
while executing, load kni module with single mode option.


On Mon, Dec 7, 2015 at 3:48 PM, Abdul, Jaffar mailto:jabdul at ciena.com>> wrote:
Hi Guys,

I am trying to run the KNI sample application according to the DPDK 
documentation which is given below.

http://dpdk.org/doc/guides/sample_app_ug/kernel_nic_interface.html#running-the-application

I am not able to run the app successfully,

I don't have this problem with any other DPDK example application and I also 
verified that I have loaded the *.ko files properly (rte_kni.ko, igb_uio.ko, 
etc.)

I have also loaded rte_kni.ko with kthread_mode single/multiple but both 
results are same.

I am using two 1G ports in this example which are port 0 and port 1 and it has 
been attached to DPDK through (dpdk_nic_bind.py) script.

Output of the dpdk_nic_bind.py

root at x10sdv-f:/# /opt/dpdk/tools/dpdk_nic_bind.py --status

Network devices using DPDK-compatible driver

:05:00.0 'I350 Gigabit Network Connection' drv=igb_uio unused=
:05:00.1 'I350 Gigabit Network Connection' drv=igb_uio unused=

Network devices using kernel driver
===
:03:00.0 'Device 15ad' if=eth2 drv=ixgbe unused=igb_uio
:03:00.1 'Device 15ad' if=eth3 drv=ixgbe unused=igb_

[dpdk-dev] KNI sample application running procedure

2015-12-07 Thread Nishant Verma
As par error message, it seems error lies in validation. But it seems right
Can you try to run the app without kthread option. if you haven't tried
that. just to pin point the problem.

./kni -c 0x0f -n 2 -- -P -p 0x3 --config="(0,2,3),(1,0,1)"
while executing, load kni module with single mode option.


On Mon, Dec 7, 2015 at 3:48 PM, Abdul, Jaffar  wrote:

> Hi Guys,
>
> I am trying to run the KNI sample application according to the DPDK
> documentation which is given below.
>
>
> http://dpdk.org/doc/guides/sample_app_ug/kernel_nic_interface.html#running-the-application
>
> I am not able to run the app successfully,
>
> I don't have this problem with any other DPDK example application and I
> also verified that I have loaded the *.ko files properly (rte_kni.ko,
> igb_uio.ko, etc.)
>
> I have also loaded rte_kni.ko with kthread_mode single/multiple but both
> results are same.
>
> I am using two 1G ports in this example which are port 0 and port 1 and it
> has been attached to DPDK through (dpdk_nic_bind.py) script.
>
> Output of the dpdk_nic_bind.py
> 
> root at x10sdv-f:/# /opt/dpdk/tools/dpdk_nic_bind.py --status
>
> Network devices using DPDK-compatible driver
> 
> :05:00.0 'I350 Gigabit Network Connection' drv=igb_uio unused=
> :05:00.1 'I350 Gigabit Network Connection' drv=igb_uio unused=
>
> Network devices using kernel driver
> ===
> :03:00.0 'Device 15ad' if=eth2 drv=ixgbe unused=igb_uio
> :03:00.1 'Device 15ad' if=eth3 drv=ixgbe unused=igb_uio
>
> Other network devices
> =
> 
>
> Here is how I am loading the KNI sample application
> 
> root at x10sdv-f:/opt/dpdk/x86_64-native-linuxapp-gcc/app# ./kni -c 0x0f -n
> 2 -- -P -p 0x3 --config="(0,2,3,0),(1,0,1,0)"
> 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: Detected lcore 4 as core 4 on socket 0
> EAL: Detected lcore 5 as core 5 on socket 0
> EAL: Detected lcore 6 as core 6 on socket 0
> EAL: Detected lcore 7 as core 7 on socket 0
> EAL: Detected lcore 8 as core 0 on socket 0
> EAL: Detected lcore 9 as core 1 on socket 0
> EAL: Detected lcore 10 as core 2 on socket 0
> EAL: Detected lcore 11 as core 3 on socket 0
> EAL: Detected lcore 12 as core 4 on socket 0
> EAL: Detected lcore 13 as core 5 on socket 0
> EAL: Detected lcore 14 as core 6 on socket 0
> EAL: Detected lcore 15 as core 7 on socket 0
> EAL: Support maximum 16 logical core(s) by configuration.
> EAL: Detected 16 lcore(s)
> EAL: VFIO modules not all loaded, skip VFIO support...
> EAL: Setting up physically contiguous memory...
> EAL: Ask a virtual area of 0x20 bytes
> EAL: Virtual area found at 0x7fa27460 (size = 0x20)
> EAL: Ask a virtual area of 0x20 bytes
> EAL: Virtual area found at 0x7fa27420 (size = 0x20)
> EAL: Ask a virtual area of 0x3c40 bytes
> EAL: Virtual area found at 0x7fa237c0 (size = 0x3c40)
> EAL: Ask a virtual area of 0x360 bytes
> EAL: Virtual area found at 0x7fa23440 (size = 0x360)
> EAL: Ask a virtual area of 0x20 bytes
> EAL: Virtual area found at 0x7fa23400 (size = 0x20)
> EAL: Ask a virtual area of 0xc000 bytes
> EAL: Virtual area found at 0x7fa173e0 (size = 0xc000)
> EAL: Requesting 2048 pages of size 2MB from socket 0
> EAL: TSC frequency is ~201 KHz
> EAL: Master lcore 0 is ready (tid=75a328c0;cpuset=[0])
> EAL: lcore 3 is ready (tid=72dfd700;cpuset=[3])
> EAL: lcore 1 is ready (tid=73dff700;cpuset=[1])
> EAL: lcore 2 is ready (tid=735fe700;cpuset=[2])
> EAL: PCI device :03:00.0 on NUMA socket -1
> EAL:   probe driver: 8086:15ad rte_ixgbe_pmd
> EAL:   Not managed by a supported kernel driver, skipped
> EAL: PCI device :03:00.1 on NUMA socket -1
> EAL:   probe driver: 8086:15ad rte_ixgbe_pmd
> EAL:   Not managed by a supported kernel driver, skipped
> EAL: PCI device :05:00.0 on NUMA socket -1
> EAL:   probe driver: 8086:1521 rte_igb_pmd
> EAL:   PCI memory mapped at 0x7fa27480
> EAL:   PCI memory mapped at 0x7fa27482
> PMD: eth_igb_dev_init(): port_id 0 vendorID=0x8086 deviceID=0x1521
> EAL: PCI device :05:00.1 on NUMA socket -1
> EAL:   probe driver: 8086:1521 rte_igb_pmd
> EAL:   PCI memory mapped at 0x7fa274824000
> EAL:   PCI memory mapped at 0x7fa274844000
> PMD: eth_igb_dev_init(): port_id 1 vendorID=0x8086 deviceID=0x1521
> APP: Port ID: 0
> APP: Rx lcore ID: 2, Tx lcore ID: 3
> APP: Kernel thread lcore ID: 0
> APP: Port ID: 1
> APP: Rx lcore ID: 0, Tx lcore ID: 1
> APP: Kernel thread lcore ID: 0
> EAL: Error - exiting with code: 1
>   Cause: portmask is not consistent to port ids specified in --config
> root at x10sdv-f:/opt/dpdk/x86_64-native-linuxapp-gcc/app#
>
>
>
> we are using dpdk v2.1 at this moment, any suggestions to make this work

[dpdk-dev] KNI sample application running procedure

2015-12-07 Thread Abdul, Jaffar
Hi Guys,

I am trying to run the KNI sample application according to the DPDK 
documentation which is given below.

http://dpdk.org/doc/guides/sample_app_ug/kernel_nic_interface.html#running-the-application

I am not able to run the app successfully, 

I don't have this problem with any other DPDK example application and I also 
verified that I have loaded the *.ko files properly (rte_kni.ko, igb_uio.ko, 
etc.)

I have also loaded rte_kni.ko with kthread_mode single/multiple but both 
results are same.

I am using two 1G ports in this example which are port 0 and port 1 and it has 
been attached to DPDK through (dpdk_nic_bind.py) script.

Output of the dpdk_nic_bind.py

root at x10sdv-f:/# /opt/dpdk/tools/dpdk_nic_bind.py --status

Network devices using DPDK-compatible driver

:05:00.0 'I350 Gigabit Network Connection' drv=igb_uio unused=
:05:00.1 'I350 Gigabit Network Connection' drv=igb_uio unused=

Network devices using kernel driver
===
:03:00.0 'Device 15ad' if=eth2 drv=ixgbe unused=igb_uio 
:03:00.1 'Device 15ad' if=eth3 drv=ixgbe unused=igb_uio 

Other network devices
=


Here is how I am loading the KNI sample application

root at x10sdv-f:/opt/dpdk/x86_64-native-linuxapp-gcc/app# ./kni -c 0x0f -n 2 
-- -P -p 0x3 --config="(0,2,3,0),(1,0,1,0)"
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: Detected lcore 4 as core 4 on socket 0
EAL: Detected lcore 5 as core 5 on socket 0
EAL: Detected lcore 6 as core 6 on socket 0
EAL: Detected lcore 7 as core 7 on socket 0
EAL: Detected lcore 8 as core 0 on socket 0
EAL: Detected lcore 9 as core 1 on socket 0
EAL: Detected lcore 10 as core 2 on socket 0
EAL: Detected lcore 11 as core 3 on socket 0
EAL: Detected lcore 12 as core 4 on socket 0
EAL: Detected lcore 13 as core 5 on socket 0
EAL: Detected lcore 14 as core 6 on socket 0
EAL: Detected lcore 15 as core 7 on socket 0
EAL: Support maximum 16 logical core(s) by configuration.
EAL: Detected 16 lcore(s)
EAL: VFIO modules not all loaded, skip VFIO support...
EAL: Setting up physically contiguous memory...
EAL: Ask a virtual area of 0x20 bytes
EAL: Virtual area found at 0x7fa27460 (size = 0x20)
EAL: Ask a virtual area of 0x20 bytes
EAL: Virtual area found at 0x7fa27420 (size = 0x20)
EAL: Ask a virtual area of 0x3c40 bytes
EAL: Virtual area found at 0x7fa237c0 (size = 0x3c40)
EAL: Ask a virtual area of 0x360 bytes
EAL: Virtual area found at 0x7fa23440 (size = 0x360)
EAL: Ask a virtual area of 0x20 bytes
EAL: Virtual area found at 0x7fa23400 (size = 0x20)
EAL: Ask a virtual area of 0xc000 bytes
EAL: Virtual area found at 0x7fa173e0 (size = 0xc000)
EAL: Requesting 2048 pages of size 2MB from socket 0
EAL: TSC frequency is ~201 KHz
EAL: Master lcore 0 is ready (tid=75a328c0;cpuset=[0])
EAL: lcore 3 is ready (tid=72dfd700;cpuset=[3])
EAL: lcore 1 is ready (tid=73dff700;cpuset=[1])
EAL: lcore 2 is ready (tid=735fe700;cpuset=[2])
EAL: PCI device :03:00.0 on NUMA socket -1
EAL:   probe driver: 8086:15ad rte_ixgbe_pmd
EAL:   Not managed by a supported kernel driver, skipped
EAL: PCI device :03:00.1 on NUMA socket -1
EAL:   probe driver: 8086:15ad rte_ixgbe_pmd
EAL:   Not managed by a supported kernel driver, skipped
EAL: PCI device :05:00.0 on NUMA socket -1
EAL:   probe driver: 8086:1521 rte_igb_pmd
EAL:   PCI memory mapped at 0x7fa27480
EAL:   PCI memory mapped at 0x7fa27482
PMD: eth_igb_dev_init(): port_id 0 vendorID=0x8086 deviceID=0x1521
EAL: PCI device :05:00.1 on NUMA socket -1
EAL:   probe driver: 8086:1521 rte_igb_pmd
EAL:   PCI memory mapped at 0x7fa274824000
EAL:   PCI memory mapped at 0x7fa274844000
PMD: eth_igb_dev_init(): port_id 1 vendorID=0x8086 deviceID=0x1521
APP: Port ID: 0
APP: Rx lcore ID: 2, Tx lcore ID: 3
APP: Kernel thread lcore ID: 0
APP: Port ID: 1
APP: Rx lcore ID: 0, Tx lcore ID: 1
APP: Kernel thread lcore ID: 0
EAL: Error - exiting with code: 1
  Cause: portmask is not consistent to port ids specified in --config
root at x10sdv-f:/opt/dpdk/x86_64-native-linuxapp-gcc/app#



we are using dpdk v2.1 at this moment, any suggestions to make this work would 
be a great help for me.

Please let me know if you need more info on this

Thanks a lot in advance! 

Thanks
Jaffar