From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f53.google.com (mail-wm0-f53.google.com [74.125.82.53]) by dpdk.org (Postfix) with ESMTP id 8574DFFA for ; Thu, 27 Oct 2016 15:31:00 +0200 (CEST) Received: by mail-wm0-f53.google.com with SMTP id e69so35084277wmg.0 for ; Thu, 27 Oct 2016 06:31:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=N4R5W0JLJc1w0WPf3/460sF5Kew5Qb7MfZlsAm4hrnE=; b=P7OiORrKaWDvAAvnaXazr+XoZreq9gQWK5NHIbb7molhdMJiyY1/1DYoNiAqvZaMza BiOe2BkGBFKDwmM8dyYCvLEnCOAKarLaatYmXFn9Ltnyo6yHMcgGdCUTBGnRepQFjjKI bGsHB2VIpYh8w/xuXQviYRb2yCnRcXO48CvJ/4MboeeLpmJzzM8/REuuIf8LTRJNDiqx WUIaXcf12o7Y+9yTFyAPxjBwdD/gJhCUVrEP9NMZ59yn01XiJ2Fih86x9EUw43qb97Ek LouH9WnuQPbmriVqPBGJkio4D+nskGQRf7Af8QPCNJ+NM8fiSOSP0a2Q3B34PO1s1Bps E7Vw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=N4R5W0JLJc1w0WPf3/460sF5Kew5Qb7MfZlsAm4hrnE=; b=huwW+ZMbo0kz8W4GRpy4w//VEsDlgFaYxQwyWIarlySEF5JWKl16JCi7SaTtG8vq2t majFZdlD3WGaeEbtXff/+fMMIjreBSRF/b0e46b4WURtEsCILwWhw0CDSO2jW4s/k06o V5olyf+a+zNTjUVyIqHoeGueSkiYxALZFeEj27pkG8uIMpUql/TpGuBvqbi6FSiJoUU8 G/g4+Rg0V8mogLV9VUFW8asGG8BB/G00QKlDL41sLyN99uJsQA8rANxHpikql8Ju1jTC 9dwCLC4JxxpX6i3RAXS5HxEsJD7XCMdFth3P5x99OQnMOEVqPkbvSPRLljhqsTQ26zBe eTrQ== X-Gm-Message-State: ABUngvfjzZr0R+71R/wVzFIudJgpyvZ6IwAt8pps089tpsf5hT95Mgp7mB8bj+FJqL5odLhHbQ9G+q1Rjc+eBFCn X-Received: by 10.28.157.8 with SMTP id g8mr13082644wme.33.1477575060248; Thu, 27 Oct 2016 06:31:00 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.38.67 with HTTP; Thu, 27 Oct 2016 06:30:39 -0700 (PDT) In-Reply-To: References: <1477432240-20406-1-git-send-email-benjamin.walker@intel.com> From: David Marchand Date: Thu, 27 Oct 2016 15:30:39 +0200 Message-ID: To: Ben Walker Content-Type: text/plain; charset=UTF-8 Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] [PATCH] pci: Don't call probe callback if driver already loaded. 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, 27 Oct 2016 13:31:00 -0000 On Thu, Oct 27, 2016 at 3:28 PM, David Marchand wrote: > On Tue, Oct 25, 2016 at 11:50 PM, Ben Walker wrote: >> If the user asks to probe multiple times, the probe >> callback should only be called on devices that don't have >> a driver already loaded. >> >> This is useful if a driver is registered after the >> execution of a program has started and the list of devices >> needs to be re-scanned. > > Why not use the hotplug api, attaching explicitely one pci device ? Ah, scratch that. I've been too quick to reply. Ok, you are loading a new driver. -- David Marchand