From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f46.google.com (mail-wm0-f46.google.com [74.125.82.46]) by dpdk.org (Postfix) with ESMTP id A5704915D for ; Wed, 24 May 2017 18:17:08 +0200 (CEST) Received: by mail-wm0-f46.google.com with SMTP id d127so73328340wmf.0 for ; Wed, 24 May 2017 09:17:08 -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=dsbnms3umsHs3j5FsuhCix1I45OI92g9fCeM5HgHrTR18dItw+KcwsWVWnpxmgKfa5 Y69LzK4Jne+X/0Dvwql08FjTxEcGYlMFqeTUFiQhaBbMLeBGZrHBXm8E60sDlEGTD3BF CDoL30lZrb5dymfv47EWwPMXOelRzEXkASyTsMx47hEMM6KkWVXvJlxCMxfbITW8QvPi p+kYTBNBq8HwRbX/ZOmScbF+5EaObi3cG1r0rjWVPeL8XBwKN4KktWU84qJDfKYNBMGb ks6b8XJLqeqMkmAu+QJBSfKLlA4klsX4ufhzakZ4Tpho2hiWLg/6lrhkCuy7WUKR56RI gs6g== 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=RfCJBZAiv5rRlCAz6mYNgHJ04T2UvzWAhO6Gm5qWusjSTWTBDqIiI74OSD19GMDBip Oij3gYh7xuccoHP5buTaRfRogdOX9x5VAdTURMRepNUBjq/2+bXZuvphqfZ2qLTZXFE0 RdjGagHUbX6Q1avJ36u2+uLrDVH+SBJZ6Y2wv46VbHTBpwnRnRc4m6G2R6k7DOeMFv6G E83AZW14rqR3yvgfsr99ox3huT/BIkSgvykrcU5nNblCKiwNu8yraMden0FVIFWEBMhu aB4nMfD1UHLkjOvEHs95aEjLPdTYywXr+yM9aABVo+0kSHTc3aHfJ1gz4S4V/v0jnFiH ni9A== X-Gm-Message-State: AODbwcAqOffFO+iyLvw6H9aMo6UTND9a1pFyKZsRJ5jMzqV83ZnCiaB0 tJPc4CC6Dnc00pdJxFk= X-Received: by 10.28.196.73 with SMTP id u70mr6414422wmf.73.1495642628005; Wed, 24 May 2017 09:17:08 -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 17sm5816909wml.32.2017.05.24.09.17.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 24 May 2017 09:17:07 -0700 (PDT) From: Gaetan Rivet To: dev@dpdk.org Cc: Gaetan Rivet Date: Wed, 24 May 2017 18:16:43 +0200 Message-Id: <6ad314772c889ec3d8861ded690eaecd885d7eae.1495642399.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 v2 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 16:17:09 -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