From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gaetan.rivet@6wind.com>
Received: from mail-wr0-f180.google.com (mail-wr0-f180.google.com
 [209.85.128.180]) by dpdk.org (Postfix) with ESMTP id B21727CCE
 for <dev@dpdk.org>; Wed,  5 Jul 2017 01:57:14 +0200 (CEST)
Received: by mail-wr0-f180.google.com with SMTP id k67so254446420wrc.2
 for <dev@dpdk.org>; Tue, 04 Jul 2017 16:57:14 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=6wind-com.20150623.gappssmtp.com; s=20150623;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :in-reply-to:references;
 bh=3u5FeMQRhykqzmL1l8SlsjISmJE3/0vKDfnQ7Kcr7lI=;
 b=wfmpZdbUq0X/r6NOKpcYoiZs4p2NKN0N7hXYkrs4YVNnIQLxSaf7XAR51bT+KGSaGv
 xutLY056OXp40Hx9vNQcKlQJaPL8hK21mhwMcS1hWOtp6qo8/w5ZGTmisKYAgJcW/6TI
 MITzVVJGrwHH+o6suAUzbllhIPYH6XRsO60Dpp69L0184427zDxUtPwizGWXDTdwdkMU
 dC9v0Mx7qTitky7KxAYD/mTgTlI0+qC6kYkxoioZI+V7ymu1TlixKd+LNDA3MTNAvwnt
 2X/A3Uv+LCpeTzwFhRUxe/aLxzlemova0G4VYU38D4vlnMxEPzUV3VHgWjPWaGkXgnTW
 OzAQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:in-reply-to:references;
 bh=3u5FeMQRhykqzmL1l8SlsjISmJE3/0vKDfnQ7Kcr7lI=;
 b=WHaPuNpYMeognoDNDV8SfPR3tEhxjfGX4keeaWzKgsT2PKTY2PwL+c+iFrFYd7HGIk
 cBz9srJYmj6QssKEwFgtOLjRswOUsBKYUauUtuokvvXMqfKxn0CXGTzLE3NBsnwBzafj
 70q+SS1irBa5SFs7lzZSPHKqxbYJdpPO4izm6Z+U95nRUJfLhGhon7PArUcn2A5JeZ1t
 Kjh1e1u33TSoSx2SdowdrMAVeQenk37bbmkqiP75y6Ivp/8bksxP9OhhpsBoYD6r0Uyp
 SDd/u5ItHsMhbqhSKGI0E7T9feFzqMo6yvOjW7+XfKeBuR+67e0hM60b6ZY7vaOgRBF9
 HkEg==
X-Gm-Message-State: AKS2vOwF/KnN9stbgpSuirySSLk2AlpsfJePmP6XITulJu7KwuBPYndq
 P3zsecEss2BDeZU7qwE=
X-Received: by 10.223.162.219 with SMTP id t27mr34488327wra.68.1499212634091; 
 Tue, 04 Jul 2017 16:57:14 -0700 (PDT)
Received: from bidouze.dev.6wind.com (host.78.145.23.62.rev.coltfrance.com.
 [62.23.145.78])
 by smtp.gmail.com with ESMTPSA id w197sm27273899wme.20.2017.07.04.16.57.13
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);
 Tue, 04 Jul 2017 16:57:13 -0700 (PDT)
From: Gaetan Rivet <gaetan.rivet@6wind.com>
To: dev@dpdk.org
Cc: Gaetan Rivet <gaetan.rivet@6wind.com>
Date: Wed,  5 Jul 2017 01:56:39 +0200
Message-Id: <2bddf353ec28094d75e067d2efb1c91347dda041.1499211959.git.gaetan.rivet@6wind.com>
X-Mailer: git-send-email 2.1.4
In-Reply-To: <cover.1499211959.git.gaetan.rivet@6wind.com>
References: <cover.1498001626.git.gaetan.rivet@6wind.com>
 <cover.1499211959.git.gaetan.rivet@6wind.com>
In-Reply-To: <cover.1499211959.git.gaetan.rivet@6wind.com>
References: <cover.1499211959.git.gaetan.rivet@6wind.com>
Subject: [dpdk-dev] [PATCH v6 09/19] dev: device kernel module is a device
	attribute
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: DPDK patches and discussions <dev.dpdk.org>
List-Unsubscribe: <http://dpdk.org/ml/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://dpdk.org/ml/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <http://dpdk.org/ml/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
X-List-Received-Date: Tue, 04 Jul 2017 23:57:15 -0000

It is used in generic device structures and must not be tied to a bus.

Signed-off-by: Gaetan Rivet <gaetan.rivet@6wind.com>
---
 lib/librte_eal/common/include/rte_dev.h | 12 ++++++++++++
 lib/librte_eal/common/include/rte_pci.h |  9 ---------
 2 files changed, 12 insertions(+), 9 deletions(-)

diff --git a/lib/librte_eal/common/include/rte_dev.h b/lib/librte_eal/common/include/rte_dev.h
index 9f2765d..82c42c7 100644
--- a/lib/librte_eal/common/include/rte_dev.h
+++ b/lib/librte_eal/common/include/rte_dev.h
@@ -115,6 +115,18 @@ rte_pmd_debug_trace(const char *func_name, const char *fmt, ...)
 } while (0)
 
 /**
+ * Device driver.
+ */
+enum rte_kernel_driver {
+	RTE_KDRV_UNKNOWN = 0,
+	RTE_KDRV_IGB_UIO,
+	RTE_KDRV_VFIO,
+	RTE_KDRV_UIO_GENERIC,
+	RTE_KDRV_NIC_UIO,
+	RTE_KDRV_NONE,
+};
+
+/**
  * A generic memory resource representation.
  */
 struct rte_mem_resource {
diff --git a/lib/librte_eal/common/include/rte_pci.h b/lib/librte_eal/common/include/rte_pci.h
index 7863f94..884e24c 100644
--- a/lib/librte_eal/common/include/rte_pci.h
+++ b/lib/librte_eal/common/include/rte_pci.h
@@ -117,15 +117,6 @@ struct rte_pci_addr {
 
 struct rte_devargs;
 
-enum rte_kernel_driver {
-	RTE_KDRV_UNKNOWN = 0,
-	RTE_KDRV_IGB_UIO,
-	RTE_KDRV_VFIO,
-	RTE_KDRV_UIO_GENERIC,
-	RTE_KDRV_NIC_UIO,
-	RTE_KDRV_NONE,
-};
-
 /**
  * A structure describing a PCI device.
  */
-- 
2.1.4