From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id D17A82A58 for ; Mon, 12 Jun 2017 15:25:09 +0200 (CEST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga105.jf.intel.com with ESMTP; 12 Jun 2017 06:25:08 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.39,333,1493708400"; d="scan'208";a="98441956" Received: from bricha3-mobl3.ger.corp.intel.com ([10.237.221.28]) by orsmga002.jf.intel.com with SMTP; 12 Jun 2017 06:25:06 -0700 Received: by (sSMTP sendmail emulation); Mon, 12 Jun 2017 14:25:06 +0100 Date: Mon, 12 Jun 2017 14:25:06 +0100 From: Bruce Richardson To: Ferruh Yigit Cc: dev@dpdk.org Message-ID: <20170612132505.GA66316@bricha3-MOBL3.ger.corp.intel.com> References: <20170606151008.62680-1-ferruh.yigit@intel.com> <20170609175120.77652-1-ferruh.yigit@intel.com> <20170609175120.77652-2-ferruh.yigit@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170609175120.77652-2-ferruh.yigit@intel.com> Organization: Intel Research and =?iso-8859-1?Q?De=ACvel?= =?iso-8859-1?Q?opment?= Ireland Ltd. User-Agent: Mutt/1.8.1 (2017-04-11) Subject: Re: [dpdk-dev] [PATCH v3 2/3] net/ring: create vdev from PMD specific API 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: Mon, 12 Jun 2017 13:25:10 -0000 On Fri, Jun 09, 2017 at 06:51:19PM +0100, Ferruh Yigit wrote: > When ring PMD created via PMD specific API instead of EAL abstraction > it is missing the virtual device creation done by EAL vdev. > > And this makes eth_dev unusable exact same as other PMDs used, because > of some missing fields, like rte_device->name. > > Now API creates a virtual device and sets proper fields, not all, and it > still won't be linked in the virtual device list eal keeps track. But > makes PMD usable in usual manner. > > Signed-off-by: Ferruh Yigit > --- Is a better fix not to have this API call into the EAL to create the vdev and add it to the lists as with other vdevs? [If it makes it easier, the extra parameters passed in to the library-local function can be saved in a context that can be accessed when the EAL calls back into the driver, rather than having to flatten them out into devargs and re-parsed again.] Regards, /Bruce