From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f170.google.com (mail-wr0-f170.google.com [209.85.128.170]) by dpdk.org (Postfix) with ESMTP id D748637B4 for ; Wed, 21 Jun 2017 01:36:16 +0200 (CEST) Received: by mail-wr0-f170.google.com with SMTP id 77so111602428wrb.1 for ; Tue, 20 Jun 2017 16:36:16 -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=cwYXylpClJd4OFvPkcTwH0x7ebS7g+JjbEUfFRt7S/c=; b=VsKhlwMPE/pmSd0Onis7AL43DhgsyMn+7CRlYfKLp+LWut5QJPMyAzi2Mm38QFytGr 6urL6Ho5ZOl9B+uDWnTQue7Ra+qb5EJIVLwxpprnqicRsje8HHOPpAj6sObQaHySVsaG EbQY8YFqCfQRJRPwsPFLH790b1wDhV/lsxZ1QpsIENTomOEcsIowmE4KbOTuP7nA7+gk xOtbQFuN73syDR++3J9qA0xcwGtpajhCwGV1o+DD/FbCZ1w+5Xx8lzA2Vj402WPA+0ku CP1CILL+KttN845J909VnuSD75C2SpPuSoFgVsxgjQp6L1Ot8sHb/zY2WY8o86ETkwhs jOQA== 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=cwYXylpClJd4OFvPkcTwH0x7ebS7g+JjbEUfFRt7S/c=; b=Z7PgSRcClq4W1TeduSlu8TARdhuWXNsr+LP58gVXoJv4Eoniv+Rv7kGl9Jfau23fEI RNqoHulQC9GxBBXIau1ChDRLhwBnp/0srsT/a97wFK5mGASBNabQg2JyZJUooE9ZvOEn lOhFgHl7imf9X5UldMug0eSTucHYubtltfSMt97f4zcmw8xodqRdg8iBtdMtKOqlprsc +m+Xohq7opHpDs1A2ac6Enwi9ULP8TsVPq5ybQhYI7wOX5lMKoH1FVaNnXy1C99UovBd dljeA1dCBcIdlMEENCrMUNQtxYETz+ZH6HSrfccb8VoQnLjdhgjqm2l9sOboEnfsz8Tp SO0g== X-Gm-Message-State: AKS2vOz7Hw7PsjYhtAKvgPUayYF99skR763gXUMK7NQE4RqrCz0tUq2z zor2SAUT3EQOqAvdPfU= X-Received: by 10.223.136.116 with SMTP id e49mr12460499wre.14.1498001776344; Tue, 20 Jun 2017 16:36:16 -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 f45sm6463684wrf.2.2017.06.20.16.36.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 20 Jun 2017 16:36:15 -0700 (PDT) From: Gaetan Rivet To: dev@dpdk.org Cc: Gaetan Rivet Date: Wed, 21 Jun 2017 01:35:43 +0200 Message-Id: <388f49459a134365f747e086f4e262b20726fc4f.1498001626.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 v5 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2017 23:36:17 -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 9f35b1f..3162822 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 0284a62..ca9f179 100644 --- a/lib/librte_eal/common/include/rte_pci.h +++ b/lib/librte_eal/common/include/rte_pci.h @@ -120,15 +120,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