From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io0-f177.google.com (mail-io0-f177.google.com [209.85.223.177]) by dpdk.org (Postfix) with ESMTP id 4617111C5 for ; Mon, 7 Dec 2015 22:58:00 +0100 (CET) Received: by ioc74 with SMTP id 74so4898843ioc.2 for ; Mon, 07 Dec 2015 13:57:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=HIu6xw8Bdl3BtNCy61h2Z+WGVl5SC9WM8kGa6TIy+qg=; b=S/Cxk5B7171rjxmmEUkJVIgIzCT8iuejMEzjJI1cP7uJymxLz514wrcrJYaqLZAmPI PBPNLShvJw6D7/1zkYN5zzkRmjGBLSKa7OtemgAmLj2SvZIisF5n3+e0ZL97sju85mx7 WncnAT8lze9CoqDDijsJhtllLev49A1Mv7jC6O0NWExtAzU5PU6XwZ3Ing8u7iG+gM4x bPRukl2pIr4DcWJI1bhjWxz6hER9FB1/Pdlg5l3zpsiIMvTv4O7QXkXAz47qYZxIMBZf uERnWltOaVnwb7tgmGLSQRSkNWWzZIfNNidw0l+I31k0XvIg5azwcyI6/pZ84In6RnxK +1kw== MIME-Version: 1.0 X-Received: by 10.107.168.77 with SMTP id r74mr645785ioe.126.1449525479797; Mon, 07 Dec 2015 13:57:59 -0800 (PST) Received: by 10.107.46.165 with HTTP; Mon, 7 Dec 2015 13:57:59 -0800 (PST) In-Reply-To: <23903483D1A9B04AB5D759C6C845237F043A3639BC@ONWVEXCHMB05.ciena.com> References: <23903483D1A9B04AB5D759C6C845237F043A3639BC@ONWVEXCHMB05.ciena.com> Date: Mon, 7 Dec 2015 16:57:59 -0500 Message-ID: From: Nishant Verma To: "Abdul, Jaffar" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Cc: "dev@dpdk.org" , "Ismail, Aws" Subject: Re: [dpdk-dev] KNI sample application running procedure X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Dec 2015 21:58:00 -0000 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@x10sdv-f:/# /opt/dpdk/tools/dpdk_nic_bind.py --status > > Network devices using DPDK-compatible driver > ============================================ > 0000:05:00.0 'I350 Gigabit Network Connection' drv=igb_uio unused= > 0000:05:00.1 'I350 Gigabit Network Connection' drv=igb_uio unused= > > Network devices using kernel driver > =================================== > 0000:03:00.0 'Device 15ad' if=eth2 drv=ixgbe unused=igb_uio > 0000: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@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 0x200000 bytes > EAL: Virtual area found at 0x7fa274600000 (size = 0x200000) > EAL: Ask a virtual area of 0x200000 bytes > EAL: Virtual area found at 0x7fa274200000 (size = 0x200000) > EAL: Ask a virtual area of 0x3c400000 bytes > EAL: Virtual area found at 0x7fa237c00000 (size = 0x3c400000) > EAL: Ask a virtual area of 0x3600000 bytes > EAL: Virtual area found at 0x7fa234400000 (size = 0x3600000) > EAL: Ask a virtual area of 0x200000 bytes > EAL: Virtual area found at 0x7fa234000000 (size = 0x200000) > EAL: Ask a virtual area of 0xc0000000 bytes > EAL: Virtual area found at 0x7fa173e00000 (size = 0xc0000000) > EAL: Requesting 2048 pages of size 2MB from socket 0 > EAL: TSC frequency is ~2000001 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 0000: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 0000: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 0000:05:00.0 on NUMA socket -1 > EAL: probe driver: 8086:1521 rte_igb_pmd > EAL: PCI memory mapped at 0x7fa274800000 > EAL: PCI memory mapped at 0x7fa274820000 > PMD: eth_igb_dev_init(): port_id 0 vendorID=0x8086 deviceID=0x1521 > EAL: PCI device 0000: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@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 > > -- Rgds, Nishant