From patchwork Thu Jun 1 10:10:23 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Ga=C3=ABtan_Rivet?= X-Patchwork-Id: 24962 Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id 825B17D1E; Thu, 1 Jun 2017 12:11:11 +0200 (CEST) Received: from mail-wm0-f53.google.com (mail-wm0-f53.google.com [74.125.82.53]) by dpdk.org (Postfix) with ESMTP id 022DD7D0D for ; Thu, 1 Jun 2017 12:10:48 +0200 (CEST) Received: by mail-wm0-f53.google.com with SMTP id 7so151404442wmo.1 for ; Thu, 01 Jun 2017 03:10:48 -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=EJ2IGpXbqaRaAsA862mrCKqyJZSas/tx+h+2jbHgdrI=; b=wBCol2eMg+nOLek86uOgkweJDlEqR/98Xs6bOfNpaL1S8ClpqbYf5GB83Pn3QBYJ0M 1rgePxgn9z5CslDOk0tjZ3RTfGs8I5CeR6NxmRzgci90oOHkCKxYybOURzzmMmD3+amn 8Y3pdu+cKEPLQ8l+hCWa2aSEMLZiH7SUscHIm7hJfFhXBXwDjpKVKFiHOL6xJMC7Q9n+ vHE5NsHYww9GRAi2JSqnRJjPy2tOXtuADFrZS812Sn3jXDYFO0tI8J1ZixJzfyqiAtNi BZnHC0VoTZXn0wLI0molaHx1UWcghihHzxMw+PGEb6/IWXyBBeEGne2VTCupv0E/VsUX +2nQ== 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=EJ2IGpXbqaRaAsA862mrCKqyJZSas/tx+h+2jbHgdrI=; b=b6ki/Rj8ryW9Q1L8vrNrhWXxmMtqxZ5nA/vHnnkBqCbGRzap5wYmegsWP6lPTBwUzm 8vFMxhVeaxz+UuHrmTfaPjpjM/eCAujQ94dMQAyySfiSOhWhkVaCX18Qnp/X0b2u7PBr l8L6JCcPtqhxsgh7iOEKqp9S3DdgHmZbnXCIDLbDoeaOE5Gq0/0KcMeiN19D+Wqyx1sY pAxbb2dHRI7824dOx0+Fq5ERvlsVdK9qREDhat7TvAfKbq/RLkTsrZVDy8yEz0QVwn1g LW0DP6APblEfp26IezsCbHd97P44kmkX6vkFOzaiFYYt2FPAkQb5oJHhqqaLvFK9iL9s Hu+w== X-Gm-Message-State: AODbwcAJBG0UVcxCXjNvwTPdilpClP1e8hjBJaxnrmWcDBWxlYIdfvPo 8kenFh/u+oeEBPvV71g= X-Received: by 10.223.130.37 with SMTP id 34mr661440wrb.44.1496311848169; Thu, 01 Jun 2017 03:10:48 -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 y19sm1022569wmh.21.2017.06.01.03.10.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 01 Jun 2017 03:10:47 -0700 (PDT) From: Gaetan Rivet To: dev@dpdk.org Cc: Gaetan Rivet Date: Thu, 1 Jun 2017 12:10:23 +0200 Message-Id: <1123524b07c0a947405e14710ff153cbcce88681.1496309846.git.gaetan.rivet@6wind.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: References: In-Reply-To: References: Subject: [dpdk-dev] [PATCH v3 08/14] 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" It is used in generic device structures and must not be tied to a bus. Signed-off-by: Gaetan Rivet --- 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 c530797..58160e1 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 ab64c63..45c5082 100644 --- a/lib/librte_eal/common/include/rte_pci.h +++ b/lib/librte_eal/common/include/rte_pci.h @@ -149,15 +149,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. */