From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 2992D69FA for ; Thu, 31 Mar 2016 11:55:36 +0200 (CEST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga103.jf.intel.com with ESMTP; 31 Mar 2016 02:55:35 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,421,1455004800"; d="scan'208";a="945132163" Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.237.221.39]) ([10.237.221.39]) by orsmga002.jf.intel.com with ESMTP; 31 Mar 2016 02:55:34 -0700 To: ALeX Wang , dev@dpdk.org References: From: Ferruh Yigit Message-ID: <56FCF415.6090301@intel.com> Date: Thu, 31 Mar 2016 10:55:33 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Subject: Re: [dpdk-dev] Must kni be associated with a dpdk port? 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: Thu, 31 Mar 2016 09:55:36 -0000 On 3/30/2016 6:20 PM, ALeX Wang wrote: > Hi, > > I want to use 'rte_kni_alloc()' to create a kernel iface and > use it to test application rx. From the api and example in > 'examples/kni/main.c', i saw the 'conf' argument is assigned > with pci info of a dpdk port. > > Want to ask if this is compulsory... Must kni always be > used together with a dpdk port? > > Thanks, > Hi Alex, You don't have to associate kni with dpdk port. pci info is required for ethtool support, if you are only interested in data transfer, you don't have to provide pci information. Regards, ferruh