From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi0-f52.google.com (mail-oi0-f52.google.com [209.85.218.52]) by dpdk.org (Postfix) with ESMTP id BD6578E9E for ; Mon, 28 Dec 2015 21:24:10 +0100 (CET) Received: by mail-oi0-f52.google.com with SMTP id o124so178939840oia.1 for ; Mon, 28 Dec 2015 12:24:10 -0800 (PST) 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:date:message-id:subject:from:to :cc:content-type; bh=oI4yefP1vtnycOT4xBQmXEs0lg/9NDltraGcEDykIpE=; b=XuBsH7+7PBrW4CvGPAIzZpn6fpcS2jiasvEZybb3qsekUKMn5cEa9qpE9rA6OJItFy CoLaw0F6ytjaUvtW7HCvN2atrTzKcqyNG31Bk67ZTEpK/WSY7icL5y4ojFgZleipiDw1 C9LhOUi1DtYZZiOHMgfuutZSlDNJmQMx7l3JMHxOL9O1M9+imU7oZooeCRrFAjCxxvMa 4Roy6hZYLUppJYUcMyyBAwbCLw6+lmhf7lAd2GpHILCga89vNpScOyYltpEcAZsgMGzv E4egUJrazSsayW8jtVBCuPfVqF9B5L3MTBTLW3uDiONixH5RQkXpBr8l/exthfhTwfah 9RqQ== 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:date :message-id:subject:from:to:cc:content-type; bh=oI4yefP1vtnycOT4xBQmXEs0lg/9NDltraGcEDykIpE=; b=be/buxHvWkWUrX1xwUDPGQRawe5fhoXj0Wo6oO4KHKmKd0LAOnPzkOQA22CMRd1CE2 xxMiCzqgFHYg7bvscZr6dlcMyZimQ7ZjMd3x11f/Kdo5RDaqPS1rNoXtlPaebbK5z0GY /h4xZovj3/29VUKlrlzC44ASJH57p9inao7NA+QAHdVu4z0RSvavdNI+0U+hZhYjutxX o40fKRSYEXxx911LCJygw8Ij5Yy2eolAu7ZuQ3hAq/ktF/iiXv+p4dasSi+odIt7QRy6 Kb0BqYvkqqRZVD35EIle0jiMErRlNZ+ej/F8fqwrBtk9n1nPyL4RP92x3ifwWZulBLZc 5k/Q== X-Gm-Message-State: ALoCoQlmynbaC+5ovfI4tGBnLCzFeVluYoq9Wz6HOW0RfIKwlzmwD7mm19OhstnV45NtgUd3YFofvmqahmMyzIM2OJK/91PXM6IWZ3XFr8v9osuES1D2fDI= MIME-Version: 1.0 X-Received: by 10.202.85.146 with SMTP id j140mr28306449oib.4.1451334250163; Mon, 28 Dec 2015 12:24:10 -0800 (PST) Received: by 10.76.153.5 with HTTP; Mon, 28 Dec 2015 12:24:10 -0800 (PST) In-Reply-To: <1450982292-129560-3-git-send-email-huawei.xie@intel.com> References: <20151222035041.GA7532@pxdev.xzpeter.org> <1450982292-129560-1-git-send-email-huawei.xie@intel.com> <1450982292-129560-3-git-send-email-huawei.xie@intel.com> Date: Mon, 28 Dec 2015 21:24:10 +0100 Message-ID: From: David Marchand To: Huawei Xie Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] [PATCH 2/4] eal: set kdrv to RTE_KDRV_NONE if kernel driver isn't manipulating the device. 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: Mon, 28 Dec 2015 20:24:11 -0000 On Thu, Dec 24, 2015 at 7:38 PM, Huawei Xie wrote: > Use RTE_KDRV_NONE to indicate that kernel driver isn't manipulating the > device. > > Signed-off-by: Huawei Xie > --- > lib/librte_eal/linuxapp/eal/eal_pci.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/lib/librte_eal/linuxapp/eal/eal_pci.c > b/lib/librte_eal/linuxapp/eal/eal_pci.c > index bc5b5be..640b190 100644 > --- a/lib/librte_eal/linuxapp/eal/eal_pci.c > +++ b/lib/librte_eal/linuxapp/eal/eal_pci.c > @@ -362,7 +362,7 @@ pci_scan_one(const char *dirname, uint16_t domain, > uint8_t bus, > else > dev->kdrv = RTE_KDRV_UNKNOWN; > } else > - dev->kdrv = RTE_KDRV_UNKNOWN; > + dev->kdrv = RTE_KDRV_NONE; > > /* device is valid, add in list (sorted) */ > if (TAILQ_EMPTY(&pci_device_list)) { > -- > 1.8.1.4 > > lgtm Acked-by: David Marchand -- David Marchand