From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 8F70A1F28 for ; Tue, 20 Mar 2018 14:56:26 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Mar 2018 06:56:25 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.48,335,1517904000"; d="scan'208";a="35349242" Received: from fyigit-mobl.ger.corp.intel.com (HELO [10.237.221.63]) ([10.237.221.63]) by FMSMGA003.fm.intel.com with ESMTP; 20 Mar 2018 06:56:24 -0700 To: Yasuhiro Ohara , dev@dpdk.org References: <20180319.101041.604023037230225350.yasu@nttv6.jp> From: Ferruh Yigit Message-ID: Date: Tue, 20 Mar 2018 13:56:23 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180319.101041.604023037230225350.yasu@nttv6.jp> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] KNI PCIe number and VLAN Stripping X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Mar 2018 13:56:27 -0000 On 3/19/2018 1:10 AM, Yasuhiro Ohara wrote: > > Hi. > > It is much appreciated if someone could answer the following questions. > > 1. Regarding KNI, what is the reasoning of giving the PCI device > number information when setting kni I/F ? Can the data be blank or > dummy ? I would like to create a virtual I/F inside my application > and its corresponding kni, which may not have the corresponding > physical PCIe slot. For KNI pci address information is for ethtool support [1] and it can be blank, for example KNI PMD uses it blank. [1] ethtool support is only for igb and ixgbe only. And this support is by default disabled in config, need to enable CONFIG_RTE_KNI_KMOD_ETHTOOL config option for it. > > 2. the ETHER/VLAN/ARP packet looks not-supported both > in mbuf_ptype(RTE_PTYPE_XXX in m->packet_type) and > in PKT_RX_VLAN_STRIPPED situation. > 2a. How can we encode in m->packet_type to indicate there are > arp_hdr after the (ether_hdr,vlan_hdr) pair ? > 2b. How can we get the next header value (i.e. ether_proto in > vlan_hdr) when the vlan_hdr is stripped by the NIC ? > > Thanks in advance. > > Best regards, > Yasu >