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 F266F29D9 for ; Fri, 1 Dec 2017 06:48:09 +0100 (CET) Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 30 Nov 2017 21:48:08 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.45,344,1508828400"; d="scan'208";a="180018747" Received: from tanjianf-mobl.ccr.corp.intel.com (HELO [10.238.224.76]) ([10.238.224.76]) by orsmga005.jf.intel.com with ESMTP; 30 Nov 2017 21:48:07 -0800 To: Thomas Monjalon References: <20171201003642.19827-1-thomas@monjalon.net> Cc: dev@dpdk.org From: "Tan, Jianfeng" Message-ID: <8fc8dcb8-c32b-8ec4-8762-b2f2bba09c5c@intel.com> Date: Fri, 1 Dec 2017 13:48:06 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <20171201003642.19827-1-thomas@monjalon.net> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH] bus/vdev: add custom scan hook 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, 01 Dec 2017 05:48:10 -0000 Hi Thomas, Please help us to understand why we need this. On 12/1/2017 8:36 AM, Thomas Monjalon wrote: > The scan callback allows to spawn a vdev automatically > given some custom scan rules. These two new APIs (rte_vdev_add_custom_scan and rte_vdev_remove_custom_scan) are called by applications? If so, why not just constructing them in the parameters before passing to rte_eal_init? > It is especially useful to create a TAP device automatically > connected to a netdevice as remote. It sounds like an use case. Without this patch, I suppose we can already do this? Thanks, Jianfeng > > Signed-off-by: Thomas Monjalon > --- > warning: to be tested > --- > drivers/bus/vdev/rte_bus_vdev.h | 29 ++++++++++++++++ > drivers/bus/vdev/vdev.c | 75 +++++++++++++++++++++++++++++++++++++++++ > 2 files changed, 104 insertions(+) [...]