From mboxrd@z Thu Jan 1 00:00:00 1970 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) Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 05 Dec 2017 00:28:00 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.45,363,1508828400"; d="scan'208";a="181464549" Received: from tanjianf-mobl.ccr.corp.intel.com (HELO [10.67.64.50]) ([10.67.64.50]) by orsmga005.jf.intel.com with ESMTP; 05 Dec 2017 00:27:59 -0800 To: Thomas Monjalon References: <20171201003642.19827-1-thomas@monjalon.net> <1811632.lxrxycaykj@xps> <2579199.neyJOE5Nyd@xps> Cc: dev@dpdk.org From: "Tan, Jianfeng" Message-ID: Date: Tue, 5 Dec 2017 16:27:59 +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: <2579199.neyJOE5Nyd@xps> 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: Tue, 05 Dec 2017 08:28:02 -0000 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