From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f182.google.com (mail-wr0-f182.google.com [209.85.128.182]) by dpdk.org (Postfix) with ESMTP id ECFE77CBA for ; Fri, 7 Jul 2017 02:04:57 +0200 (CEST) Received: by mail-wr0-f182.google.com with SMTP id k67so24116305wrc.2 for ; Thu, 06 Jul 2017 17:04:57 -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=eYQz65n9VNploTLw4qjsqmfc15I2ChrDrW3dFdaOaXw=; b=BN8QuiEK1bRDTBTlOOjv7H1ihj79bay4+cVyX1jiGnJwrBJdi+TVdFyigqYSM2r1V6 z9ng3PMMs/T32iIEpOgeSTQ/yhaEt/ctbR1Lab/wmVJTEsv4uJFFhMXt46ETTc4DcZOy U8V4+Ksx7h3PmX1nBoMdMwE/tlNVzTDsqy/Y8jyHl446Fyw4FboGWerpP32J+6bLKvLY PCwAz/o24ir7Pj/aCRDHTOXtUy4xo8iDlxBFelCad7mzjM/XgMqLjN3F585389XDMV0k 3sd6AIta/Rcl8+IrgkTHJZ3GA1WgIS3ZQRnsmd5m/PhtyKCqWM56NVvMkH+CRNACLzIZ 4lAw== 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=eYQz65n9VNploTLw4qjsqmfc15I2ChrDrW3dFdaOaXw=; b=mOQ9e9b5K006k5U8mhSwvYesTO0ws2ojc8TgrkKxzbFLjId6Aa8H0qCu8wE2m9Eg1S TlBI6n3KZteIMOBoFAta8GTo5K1unxO1nVgaFlxzcQ+nAfs0UUaHiPEKDRGQ3bjdPF1H Hp70SgU78RAdGt4BEt/HotEGs4X+oYv43o2gTjpdAgQLVKFbT05hN6lONwu94Hr7We67 o3Wt+IhCt7UpMobEDpvkjMWLzCIIKBmHMMOmvSuLpVE9GRXWUH2ATuq/lZ5o6Mkp3Lpo 8n2f900x2pxi66/h0JjgjuQfMRO9V2CZltminUaCvVp0oNwgvwqTQ2ATSH0OuduqFHWj M7vw== X-Gm-Message-State: AIVw112ewgTVs2iSlTr2OB6rzG/Xu/inRXLIom6F3qVbA9NGSAkxfLuA g4lwF0Uxkny1uJKTGLE= X-Received: by 10.28.173.65 with SMTP id w62mr247528wme.113.1499385897444; Thu, 06 Jul 2017 17:04:57 -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 b197sm1111520wmb.4.2017.07.06.17.04.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 06 Jul 2017 17:04:56 -0700 (PDT) From: Gaetan Rivet To: dev@dpdk.org Cc: Gaetan Rivet Date: Fri, 7 Jul 2017 02:04:27 +0200 Message-Id: X-Mailer: git-send-email 2.1.4 In-Reply-To: References: In-Reply-To: References: Subject: [dpdk-dev] [PATCH v7 10/17] 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: Fri, 07 Jul 2017 00:04:58 -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 0c8f6c8..bcd8b1e 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 406d918..8b12339 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