From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f51.google.com (mail-wm0-f51.google.com [74.125.82.51]) by dpdk.org (Postfix) with ESMTP id 3B74F2C02 for ; Thu, 8 Jun 2017 01:57:30 +0200 (CEST) Received: by mail-wm0-f51.google.com with SMTP id 7so127764765wmo.1 for ; Wed, 07 Jun 2017 16:57:30 -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=DbW+19DsaqvKcEJ9xmhq4G9hk2DRcdmVIQKqYXFHVI8=; b=X8nxoS6Vrt7NxHzPBGJA4DIfaaNmuXNtcrtrNY8DcYlXjaLpPjbHUVuevBYSLKnbq7 6G6/6YVtgkmMoN46DZtVfzvlezl46Ds303P8W8kG7eylq+FKN2N3wvzcHciFftWUfFlT 5o6xAi2XYcLuvU2pOhwGBSYUtoj/yBQ0cqOXLhg+H29AHVEE/Kg0hmBczjmE0QUP6kNS C/pOYcwF2GvYdCsGF+TdXhHOGV5DnkmG9uVgxZ8sEyDVpNXYZnwjsAMQ4GU1ku7+uiDc u6yeCEz3izq3kCVMXs8lMCiSlUqSBYjw5wRw//zFt2XejJbP8xZKU3ugz8G3j+P+jgnU M3ww== 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=DbW+19DsaqvKcEJ9xmhq4G9hk2DRcdmVIQKqYXFHVI8=; b=O0yfc5qq8gvU+/UmkTRSunGekcKtJzxjS7Miev31IAvjny7jvKgafSE24wr3mZvhJp t7Kat3qHLFuPtG/7Dct3om5SrcOuzgMHekksrFGr+WYaRcCj2QyVTx5rKQ4DXwZx2SAo xU2KxWhDoFti5jO26Dm6+36eog2+qDg7oUk83RQGLOSwb4gK9Qmjhhq8KV0MPI7yfP01 +WH5iseJVHs8vHRzY0eDwjMe21WTlTuvLomLY0TYdWyuVi1msG7dyzgzxfy8aPwqdkjk 9bgjJVDU652cKaN2wHtgoB8ZQR3px7qkD3g7R7ltyh8Mc+SFu7DJN231LHg/Z3fWtP/N xiNg== X-Gm-Message-State: AODbwcAhoO4GShTyO6bK7czr6t2TwB/eg3YzqXWs6S1jcbktBKyJ54sP I5q8CMImWQRA0w17p2E= X-Received: by 10.28.194.68 with SMTP id s65mr1399176wmf.121.1496879849507; Wed, 07 Jun 2017 16:57:29 -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 185sm22397056wmp.1.2017.06.07.16.57.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 07 Jun 2017 16:57:28 -0700 (PDT) From: Gaetan Rivet To: dev@dpdk.org Cc: Gaetan Rivet Date: Thu, 8 Jun 2017 01:56:55 +0200 Message-Id: X-Mailer: git-send-email 2.1.4 In-Reply-To: References: In-Reply-To: References: Subject: [dpdk-dev] [PATCH v4 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: Wed, 07 Jun 2017 23:57:31 -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 b82ab9e..51b084e 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