From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f47.google.com (mail-wm0-f47.google.com [74.125.82.47]) by dpdk.org (Postfix) with ESMTP id 9C73695FD for ; Thu, 19 May 2016 18:44:58 +0200 (CEST) Received: by mail-wm0-f47.google.com with SMTP id n129so239295421wmn.1 for ; Thu, 19 May 2016 09:44:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:user-agent:in-reply-to :references:mime-version:content-transfer-encoding; bh=JdZ0nxR0boGQVGKopFMP/0NEKrKXRMl92YHzT5YmBp8=; b=md/fEpmSoe3FDumKkdXK041j/R23PBX8q/acnPQV6jvcxU4by922HAJRM++rCiUKg/ 9bnew3bi2GjZjx3K6YhmkxLGKI/fgHjZqkcQEbB8M5yzZDIkDSOb2DalPmY6C8B2UkAS UjKdaV3p3qJiJIfLs4mSNBwuVGMTa+ok73eH1exUZuTupPU72YGslonHT0VI+yLioNjl p5URUb0WbxKQcZavKbcMrfr80I6gnKdz/RXuC/pvovvfPyTx3W+BFYwR5DmpP4SDVM7Q J13pe9dOqnD5ijgVgUPblKG2SNjwFqjTfykzD6wFcNmFDuzyjtOGrezs2aT2smFxVjC0 Jaew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:user-agent :in-reply-to:references:mime-version:content-transfer-encoding; bh=JdZ0nxR0boGQVGKopFMP/0NEKrKXRMl92YHzT5YmBp8=; b=bAwgccGhE1XedAhe879EgkoCh0GIU9+Dtf5lZsIckTtdQLqzVL4BFiXmxP7QBM302S eUmagGbnEZLn3+IdBeXWmGA+o84z0e6LB0BqRwlfTU4+gWhmgIzSrfV5AwrjUnAcYUdj IhGD05vNoAQJa5v+jNb08o0omXohbmGogpPBdV5H89VWpwOLDUJZY8DRFxuX71E9XaRa y5wPV349Le1msyCutKk2RvSwxhekR8yrF+E1kcUYV06zQhy54iI+qhQUKWqbOcJlMfAi 9yOvB+cB7Hd7RSqb8NkvltK5K6wK4K1u5qVFqcShkRFGFMd0VpwlJ1Zgjo0ODaS6OBEf IY4w== X-Gm-Message-State: AOPr4FVR6J0NBzN4z47SIFpGx3mvNnzjgJU7ZMyp6wqCtlt8hMB2ImunXFBUintdoVeYr1S2 X-Received: by 10.194.38.67 with SMTP id e3mr14537663wjk.127.1463676298458; Thu, 19 May 2016 09:44:58 -0700 (PDT) Received: from xps13.localnet (113.202.154.77.rev.sfr.net. [77.154.202.113]) by smtp.gmail.com with ESMTPSA id o73sm80535wme.16.2016.05.19.09.44.57 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 19 May 2016 09:44:57 -0700 (PDT) From: Thomas Monjalon To: Ferruh Yigit Cc: dev@dpdk.org, Tetsuya Mukawa , Yuanhan Liu Date: Thu, 19 May 2016 18:44:44 +0200 Message-ID: <1891939.OmQDtN0y3O@xps13> User-Agent: KMail/4.14.10 (Linux/4.1.6-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: <573DE9BE.4070807@intel.com> References: <20160509213124.GK5641@yliu-dev.sh.intel.com> <38538365.t1P5Ut1YhZ@xps13> <573DE9BE.4070807@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH v2] vhost: add support for dynamic vhost PMD creation 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, 19 May 2016 16:44:58 -0000 2016-05-19 17:28, Ferruh Yigit: > On 5/19/2016 9:33 AM, Thomas Monjalon wrote: > > 2016-05-18 18:10, Ferruh Yigit: > >> Add rte_eth_from_vhost() API to create vhost PMD dynamically from > >> applications. > > > > How is it different from rte_eth_dev_attach() calling rte_eal_vdev_init()? > > > > When used rte_eth_dev_attach(), application also needs to do: > rte_eth_dev_configure() > rte_eth_rx_queue_setup() > rte_eth_tx_queue_setup() > rte_eth_dev_start() > > rte_eth_from_vhost() does these internally, easier to use for applications. This argument is not sufficient. We are not going to add new APIs just for wrapping others.