From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] eal: remove vdev probe by dev args Date: Thu, 08 Jun 2017 22:45:55 +0200 Message-ID: <136091512.oDuubpNRB2@xps> References: <20170510110104.70838-1-ferruh.yigit@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, Jan Blunck , Gaetan Rivet , Tetsuya Mukawa , Declan Doherty To: Ferruh Yigit Return-path: Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by dpdk.org (Postfix) with ESMTP id 95CB02BA1 for ; Thu, 8 Jun 2017 22:45:57 +0200 (CEST) In-Reply-To: <20170510110104.70838-1-ferruh.yigit@intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 10/05/2017 13:01, Ferruh Yigit: > Virtual device/driver probing done via name. > > A new alternative method introduced to probe the device with providing > driver name in devargs as "driver=". > > This patch removes alternative method and fixes virtual device usages > with proper device names. > > Fixes: 87c3bf29c642 ("test: do not short-circuit null device creation") > Fixes: d39670086a63 ("eal: parse driver argument before probing drivers") > > Signed-off-by: Ferruh Yigit > --- [...] > static int > vdev_probe_all_drivers(struct rte_vdev_device *dev) > { > const char *name; > - char *drv_name; > struct rte_vdev_driver *driver; > int ret = 1; > > - drv_name = parse_driver_arg(rte_vdev_device_args(dev)); > - name = drv_name ? drv_name : rte_vdev_device_name(dev); > + name = rte_vdev_device_name(dev); It seems you are reverting the commit d39670086a63: eal: parse driver argument before probing drivers In some cases the virtual device name should be totally different than the driver being used for the device. Therefore lets parse the devargs for the "driver" argument before probing drivers in vdev_probe_all_drivers(). Is this "driver" option useless?