From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Tan, Jianfeng" Subject: Re: [PATCH] bus/vdev: add custom scan hook Date: Tue, 5 Dec 2017 16:27:59 +0800 Message-ID: References: <20171201003642.19827-1-thomas@monjalon.net> <1811632.lxrxycaykj@xps> <2579199.neyJOE5Nyd@xps> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org To: Thomas Monjalon Return-path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 48D972B99 for ; Tue, 5 Dec 2017 09:28:01 +0100 (CET) In-Reply-To: <2579199.neyJOE5Nyd@xps> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 12/4/2017 5:31 PM, Thomas Monjalon wrote: > > The hook is in bus->scan(). > I think we should launch a bus scan when there is a new device event. That's what I'm trying to say. We finally need to execute a handler as of a device event to finish the job. Then why not just keep the vdev plug in that handler, by calling rte_dev_hotplug_add()? Thanks, Jianfeng