From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f176.google.com (mail-wr0-f176.google.com [209.85.128.176]) by dpdk.org (Postfix) with ESMTP id 20D087D5E for ; Wed, 24 May 2017 17:15:18 +0200 (CEST) Received: by mail-wr0-f176.google.com with SMTP id l50so56883912wrc.3 for ; Wed, 24 May 2017 08:15:18 -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=kZw9d13CTLdC1gC5vDlqWHV3l0+ojCG6SP9fsZwhOOg=; b=05qcbQbKpb4Jz51Bs79f2BzYD9Bsv9e2ykSvp3Grwqt4me2FqcKIH3SYmvkPI+NqdF ktsM2n3OGM6UTV1bii0iRE7YI2fxpAwnxWH81s3s5IbYQjn9FGvkgcfmQbAPRqMIGXDK atMuhkUoXWZFe86kGdMauMKbqBt78KNYoYBAw0DGneE/VqB/YjWWlRism06DxeAEQrAQ XxGMsSrBVBQrCj0lrGQDBtleHZCMuFXX9ED2vCKiu9AVJM7oyxXoxuHBvmswxDZsZAZw tuduf0n8UUKZdSYbOS7w9HZGnbYMWBc1dQUpyXaGJq6ik/bCjP24HzjD4shXNfGZSJ3Y BxKA== 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=kZw9d13CTLdC1gC5vDlqWHV3l0+ojCG6SP9fsZwhOOg=; b=uZrRYm0lbpMZONaB5fzr0d0R0RMQ6DZlT2ZY4nZJXkhDA91otUfkAyPvDIwF7ryLI0 GBFGUHjwWdMMvAp79wdc8SQZ71G87IWkGwwyBonMNMTO8z70s99+2wKWbiN2bofr2FMf kRv1j/VzJBUsQbjjxrh1h329/wQTwGhGkp9FGqE9UQksQZAjvQOAdGi3PXdf0ueO/q+3 5Fop5TQhDs0oXLuWQS5zLfVEt3LHJD5o+d+5lTomiNo408F2LSdpQ3aGnhZRo4tbunHO FcRtlOGMXPdi/uDIF7OnqOAKQXf3LQykJIupjhbj+T9lf3ZC8uYy1nTkimr5aNRFTqEZ uyGg== X-Gm-Message-State: AODbwcBsS8XFyKZtDiDJXIly9qa1sPVGA/oWS+krrl6up1/yy2KE6/If DeoDupLo3+cBN3oi X-Received: by 10.223.176.36 with SMTP id f33mr20725305wra.124.1495638917904; Wed, 24 May 2017 08:15:17 -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 a136sm4466145wme.26.2017.05.24.08.15.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 24 May 2017 08:15:17 -0700 (PDT) From: Gaetan Rivet To: dev@dpdk.org Cc: Gaetan Rivet , Jan Blunck , Stephen Hemminger , Maxime Coquelin , Jerin Jacob , David Marchand Date: Wed, 24 May 2017 17:14:52 +0200 Message-Id: X-Mailer: git-send-email 2.1.4 In-Reply-To: References: In-Reply-To: References: Subject: [dpdk-dev] [PATCH 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: , X-List-Received-Date: Wed, 24 May 2017 15:15:18 -0000 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 7092b16..d4b0953 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. */ -- 2.1.4