From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0058.outbound.protection.outlook.com [104.47.32.58]) by dpdk.org (Postfix) with ESMTP id 3D2105598 for ; Fri, 28 Oct 2016 14:30:30 +0200 (CEST) Received: from BN6PR03CA0045.namprd03.prod.outlook.com (10.175.124.31) by BN3PR03MB2372.namprd03.prod.outlook.com (10.166.75.7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.693.12; Fri, 28 Oct 2016 12:30:29 +0000 Received: from BY2FFO11FD007.protection.gbl (2a01:111:f400:7c0c::145) by BN6PR03CA0045.outlook.office365.com (2603:10b6:404:10c::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.639.5 via Frontend Transport; Fri, 28 Oct 2016 12:30:27 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=fail action=none header.from=nxp.com;nxp.com; dkim=none (message not signed) header.d=none; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BY2FFO11FD007.mail.protection.outlook.com (10.1.14.128) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.679.5 via Frontend Transport; Fri, 28 Oct 2016 12:30:27 +0000 Received: from Tophie.ap.freescale.net ([10.232.14.87]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id u9SCPEMD019399; Fri, 28 Oct 2016 05:30:24 -0700 From: Shreyansh Jain To: Date: Fri, 28 Oct 2016 17:56:18 +0530 Message-ID: <1477657598-826-2-git-send-email-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1477657598-826-1-git-send-email-shreyansh.jain@nxp.com> References: <1477581467-12588-1-git-send-email-shreyansh.jain@nxp.com> <1477657598-826-1-git-send-email-shreyansh.jain@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131221314272348841; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(2980300002)(1109001)(1110001)(339900001)(189002)(199003)(97736004)(19580395003)(19580405001)(106466001)(105606002)(626004)(7846002)(8666005)(8676002)(5660300001)(68736007)(33646002)(36756003)(189998001)(77096005)(229853001)(86362001)(2351001)(11100500001)(110136003)(2950100002)(305945005)(356003)(6916009)(6666003)(104016004)(85426001)(50466002)(47776003)(8936002)(87936001)(586003)(92566002)(48376002)(5003940100001)(4326007)(50986999)(76176999)(50226002)(81156014)(81166006)(2906002)(7059030); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR03MB2372; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD007; 1:3preOMaJQti2cqObPlmGXbflQhn3YgHz8mV8IrbWm/9tdA8XKWGMco9tqS7UVirPRTJaRM+JYK8zuDcOm0MtClPB4ohuBz4ZtN40wh/rn6jMbZR51pfvqAu67jd5/CMRRLBxLqlMCJljm522JgBwKVSyx9PtsVJzGv24pnuTbGBTui96tZ1mCWCHmFgH69w/JFdpLFTwJ1nfOZB2Nw2ihYnIT/dZO72nC99sjqvGfLGCe7YRsxEyGYMiqwIQeYD575Gemv4kzSw6GRh2r+amgESEeRqQQtrwhCeA720SGg+aUPHLIedegqRTap1ixGmgtao14ZA0hyhnUwnEOBrjGXT2pHSt9+pPDVjEeMPOdcYkTMlnYIuNvan8nwFIX9gd7s3XwMZPDW2l6zIeu0h64LY2pap154/eg1fJ6WpTjuazRz+YgWbxPvycUtpS/0vXrbznL2Eg6VsNv9mmLIgxvr3MPcoTbqoYCC1s4tQu/lmIX146WmGthEDhEJq8SQbUPPpM4TzaD/ytcXYYnYTfKOCkVzsUOc01APFYzqCaDO7Z2kF7QqF1pgmiBgOnQHYyzTbgR73cnaFoAAIHGP2IpFlMLWpTyPbF+7pgwrFace97WTKMCsXA10MISYz17qd9flz8ZnPLXrXmD5jRYh56b41TTDtGdJrEWRCY0NAMEoV7LZyO8IloBUaiXxBHlmHPiab1kri4tIse/bnRy8mQJZQf8Zs6wrq6YVP03dclgho= MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 5d7425d0-f745-41f3-6904-08d3ff2e329e X-Microsoft-Exchange-Diagnostics: 1; BN3PR03MB2372; 2:Gxjet+J7FYoSFk7NcXN4pbOnbXsvNAk6WxYrkxNSGwZVhSiq3TJIIY2SPovCewUFS4SkwX6ba3U65wodkYXm+oUAAmNRxVLxWdTkgqMgp/kGWqGqgzXE3L0KoeFJh8APTVJoKBLe1jB5fJ/2zwltyt1ecQNG6oisff9K94sV/QDrdhNziHrMTPABaNQa1HheTIJ87FOeVPXqM59unbpARg==; 3:/Ls/29gBd72NIrRzHfcB5hOmSIv3QmFhOfgPrMXydNNXFKgE1XkJv4OudzKRX8f0990mE0L2ZTgHGGF7Mn0U5N7VwpPbXN+4J6NjkpV4LOb9D38OKr4nhjGVf1vgWN/T+oonHeU51+spgMD0x5ST/TN4GdqhqT/QuKRpbHZSoW6jMsNKy7eksg4tyjD/79xsrOC9T6v1yxCcq9EwysTe4SH88A7vLFptwWj6zT59NlVWrlsf9s/51ySQckeF85Du X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BN3PR03MB2372; X-Microsoft-Exchange-Diagnostics: 1; BN3PR03MB2372; 25:n7Da9YYgnwzwRbJCVReLRQbjinP9bTmk8f5YHgn+lCuBnuKLjLLfNTLpyUPok0SLtW4XW1uR9UDpmpMynjU9irAkAG38So6MLrlDrMqSHsmiu0Wr/EuWHB8qN7FNTjVlpYuI9PGI4nyT36GdO+pyS6J9rTK2iwRrXZKYSQsFdbQMYqgfJ3g/hhJe0RSPgMKt1tJFV1WVMb6mzLsMvmGhP3duQwqtmqgYk57QI+rKLQ1ZVrtWY+Ray2R+LCNHz9ErVnUUNos6a7H5rqfD01+tK7RJVcQ+IGR5aNGVDGnIe+x55VjAQEKO2iXwUtLfzVXm6y6993tn00blsejJGEJk8N9SKwHJj0nvnTdDxECF0axDk2aDnYXN7BExlRq95Yj7zLjbH3eraeZsEQu+4E8asyg06gZiPaTdr3jFPMEQLMMlDhcjjhqUPNixecDLULdkFr576SQfwK/uHJdKv5W7Kg==; 31:0NJ2+Utre6gZlYxS86SbW1+sKnRwYuqTEjTQ914wGt0fuGcX/xBYy+LRPQv9p1bfaQ8eq1pW+1Hwz9K+LcZd0XfQQZrHqNJ0xaWhXjqpQPdWjbSiR+OwNW4/4JnuUWZ6oXTcyOv/kah9PfcAuXi+C3479RJBtnLij6pNnqZtGGQanHlxLct7nSLADiRqVPNZ0oRGJmn/zP3mhSuEg/P3xCrE7XZFSh6bm18RoKyrc8DMoxjrQGgSYV5xrP6LNnBPwmWjCQOV+MCSnfbEurwJKw== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(5005006)(8121501046)(13024025)(13023025)(13015025)(13018025)(13017025)(3002001)(10201501046)(6055026); SRVR:BN3PR03MB2372; BCL:0; PCL:0; RULEID:(400006); SRVR:BN3PR03MB2372; X-Microsoft-Exchange-Diagnostics: 1; BN3PR03MB2372; 4:jZ/ncaDBYGkWL5czVSHUqhxUfI+9UOjRrY+7kkRDSeMNvz4yQHkP2XJ5AFSH7t1rq1DX55Nv0zC+iCiHe1vQObUMen21kG1EOtKZQXTOrcQa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mzFWVSk9VQvFIOd/QeRo1rp7mafz6ax7?= =?us-ascii?Q?D0QOERQUB5Xy6zG4ZJ17v5yapQjMDHtxzWvVMO5YrvxtJzEtzPVA5af4nSWX?= =?us-ascii?Q?Y9D7z4VoPuNz6njiIN3MMHRRAuVSAqk9aadRS/g7aNUeQbOM7DseM2ij7Bx8?= =?us-ascii?Q?rTsqLai35Hrk//qaQK6nY23ptC/GiSIy/uyRiJegf1KPk8GmCcZEo8ssKtov?= =?us-ascii?Q?MWR7HDOzpzJyjB4HDHyRXByeh48fi2AC0RRcWQ4VIxHUht4dHGqkun0TPh3T?= =?us-ascii?Q?GrjculhreclO0ezVfhTR21JBgDh30Xt1D14VDd5TazRTe1S6Wl7gYi1y53A6?= =?us-ascii?Q?9H9P26zRqX5NKSkui6DyZiqq6QonoZXT6qEEhgGnJp+R72P9omW7DHsrhoRv?= =?us-ascii?Q?5JOtwTYFPG1JZg2efr6J5aspchD+VjMb2rh66gD1ugBWdciEx/7ITVRn+5Fq?= =?us-ascii?Q?EAtW0rgSntAQqc1E8VCctCoqBUj7hIF4xf7Zlth8xqhZDrbuvkZvvMpYNQJy?= =?us-ascii?Q?NgfbI1ZRIYr4B1XbTJG+xJoMbO9+arWVXOebj4/stKk+vkKTGfbi4/xuYO6Y?= =?us-ascii?Q?6LRh0n0gNHhZGuzMRXVqyFt3K6q9i5YQWb3odTko0zdYdW8XeVM09RwOguSc?= =?us-ascii?Q?rNytAxcG1Z/4lxqrprP4W6dBM5xSffMk6t2ixwv5+ogz23WCI1gQXw58x85P?= =?us-ascii?Q?KjVUxMuyYI56OX+mJD6EuOr3CfiI52lScM9yJ9QdfaWD8t71xCCv1uc2B0ol?= =?us-ascii?Q?JqLrWvomIlv3IVHo2fR8jkayvma2+bv01gV?= X-Microsoft-Exchange-Diagnostics: 1; BN3PR03MB2372; 6:MhlO/eCzkdYLaZmLmFLpx+VYaMFZYyvvijTsIP+JysqA3ipc0G3GRqr27xT6I0vMEWbOkrrn9kGbRqW9Qj45x23jaq4nK6hoWVRSEZzAdyT33WxkYMg4v+lY2Yxwh8G9DG6BDL2uZpIiYQr9STIxXSdYtTw6ltdUVOCKyBIsjUPKzSZNyAx/jHiZHG1pqyO6Ugc8X0P2Di0qbivUY8vF8+uwYOG1pFt+yjmGP5IAq2s4PbtN4HuoAPsWGLZRygT3vrGAtL442MxS6oT91rsrrfGK9ljp6ZJr2wOF2n+6wY8NMkztn0NuqxZYk9Lwif4E; 5:l3mJKbYXqNS7XsYU3WBKkYkVlXjKlaNqKUbNG0mJWcnNGwkC/hG+A43v7l6N0JgAv18Hv8gMZLkEm8jPNPpBD0OS/b/oOyW5AVrE3Y6fBbw1i/OzQydjI7Ezmi1i63pUM44V2fnmRvnabW8SshSeN7089A5pFnaOwzwVHUAfRq0qAh6624oo3T5KQWEf7FJw; 24:W8zn4zzjgPiyYFbxJGIqj9FQu15fwXtx4qF+xqtGJJgG9kAedXg47bE2Smzu3FMHf63Nuyu+QpuH6TBoT7taicxwi5NfJoJ9Wbs/5wWwYl4= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN3PR03MB2372; 7:UGsij5go+9hChuBNA+xOk81tJt/30ER+afRgRj+iy28wJkokggsmS0Hk51Cxnh+yWCUx+hvBHx2/hNBSADDVlWEGk82l/e4FB07ekGZ/TZ59SF1vxpYGcg8F44rgfJiZDDcUsPHGHIPQ9JVOMK7OzYzjWpu2+k2muUUDOnui3BHKOjGloLz7FdnBa2Gi3N/sXxMbFdcxoftXDlYLhKKixQNQoiNEyVal7CgXynu2XRTQfwRIC8si3pyuUVvifkKNbF22+fPyBSIgDvtbA8KQfQ2G9m2WtLLmsr7OK3oQAgGmwCyb2otyhQCt2+QEMtP5VGyTcrV60i6GBNeOW1eH7GSxHZj/dRUoqoxK+8WYSjM= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Oct 2016 12:30:27.0319 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR03MB2372 Cc: Shreyansh Jain , thomas.monjalon@6wind.com, viktorin@rehivetech.com Subject: [dpdk-dev] [PATCH v7 01/21] eal: generalize PCI kernel driver enum to EAL X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Oct 2016 12:30:30 -0000 From: Jan Viktorin Signed-off-by: Jan Viktorin Signed-off-by: Shreyansh Jain -- Changes since v0: - fix compilation error due to missing include --- 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 8840380..6975b9f 100644 --- a/lib/librte_eal/common/include/rte_dev.h +++ b/lib/librte_eal/common/include/rte_dev.h @@ -109,6 +109,18 @@ struct rte_mem_resource { void *addr; /**< Virtual address, NULL when not mapped. */ }; +/** + * Kernel driver passthrough type + */ +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, +}; + /** Double linked list of device drivers. */ TAILQ_HEAD(rte_driver_list, rte_driver); /** Double linked list of devices. */ diff --git a/lib/librte_eal/common/include/rte_pci.h b/lib/librte_eal/common/include/rte_pci.h index 9ce8847..2c7046f 100644 --- a/lib/librte_eal/common/include/rte_pci.h +++ b/lib/librte_eal/common/include/rte_pci.h @@ -135,15 +135,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.7.4