From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 723E57CAF for ; Fri, 30 Jun 2017 19:06:26 +0200 (CEST) Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga104.jf.intel.com with ESMTP; 30 Jun 2017 10:06:25 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.40,287,1496127600"; d="scan'208";a="103237661" Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.237.220.91]) ([10.237.220.91]) by orsmga004.jf.intel.com with ESMTP; 30 Jun 2017 10:06:24 -0700 To: Stephen Hemminger Cc: "dev@dpdk.org" , "Burakov, Anatoly" , "Richardson, Bruce" References: <20170526165228.96919-1-ferruh.yigit@intel.com> <20170621110651.75299-1-ferruh.yigit@intel.com> <20170621110651.75299-5-ferruh.yigit@intel.com> <20170621082459.5e127994@xeon-e3> From: Ferruh Yigit Message-ID: <8d1fa96e-52e6-9afa-4537-fa7eb79ddc3c@intel.com> Date: Fri, 30 Jun 2017 18:06:23 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <20170621082459.5e127994@xeon-e3> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH v8 4/4] ethdev: add control interface support 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: Fri, 30 Jun 2017 17:06:26 -0000 On 6/21/2017 4:24 PM, Stephen Hemminger wrote: > On Wed, 21 Jun 2017 12:06:51 +0100 > Ferruh Yigit wrote: > >> To have the support corresponding kernel module (UNCI) needs to be >> inserted. If kernel module is not there, application will run as >> it is without kernel control path support. >> >> When UNCI module inserted, running application creates a virtual Linux >> network interface (dpdk$) per DPDK port. This interface can be used by >> traditional Linux tools. >> >> If Userspace Network Control Interface (UNCI) kernel module >> (rte_unci.ko) inserted, virtual interfaces created for each DPDK port >> for control purposes. >> >> Created interfaces are named as dpdk#, like: >> >> $ ifconfig dpdk0; ifconfig dpdk1 >> dpdk0: flags=4099 mtu 1500 >> ether 90:e2:ba:0e:49:b9 txqueuelen 1000 (Ethernet) >> RX packets 0 bytes 0 (0.0 B) >> RX errors 0 dropped 0 overruns 0 frame 0 >> TX packets 0 bytes 0 (0.0 B) >> TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 >> >> dpdk1: flags=4099 mtu 1500 >> ether 00:1b:21:76:fa:21 txqueuelen 1000 (Ethernet) >> RX packets 0 bytes 0 (0.0 B) >> RX errors 0 dropped 0 overruns 0 frame 0 >> TX packets 0 bytes 0 (0.0 B) >> TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 > > > If you get the sysfs network links correct, then udev should be able to > generate peristent network names. I didn't get this one, currently interface names are requested from userspace via IFLA_IFNAME, as dpdk# .