From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0062.outbound.protection.outlook.com [104.47.36.62]) by dpdk.org (Postfix) with ESMTP id 482BD58D8 for ; Fri, 14 Oct 2016 12:54:17 +0200 (CEST) Received: from BN6PR03CA0058.namprd03.prod.outlook.com (10.173.137.20) by BY1PR03MB1420.namprd03.prod.outlook.com (10.162.127.150) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.669.12; Fri, 14 Oct 2016 10:54:15 +0000 Received: from BL2FFO11FD062.protection.gbl (2a01:111:f400:7c09::179) by BN6PR03CA0058.outlook.office365.com (2603:10b6:404:4c::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.649.16 via Frontend Transport; Fri, 14 Oct 2016 10:54:15 +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 BL2FFO11FD062.mail.protection.outlook.com (10.173.161.158) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.629.5 via Frontend Transport; Fri, 14 Oct 2016 10:54:14 +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 u9EAs935011436; Fri, 14 Oct 2016 03:54:12 -0700 From: Shreyansh Jain To: CC: , , , Shreyansh Jain Date: Fri, 14 Oct 2016 16:25:24 +0530 Message-ID: <1476442527-30726-2-git-send-email-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1476442527-30726-1-git-send-email-shreyansh.jain@nxp.com> References: <1474985551-14219-1-git-send-email-shreyansh.jain@nxp.com> <1476442527-30726-1-git-send-email-shreyansh.jain@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131209160549801640; (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)(626004)(5660300001)(33646002)(5003940100001)(105606002)(110136003)(356003)(8666005)(305945005)(104016004)(11100500001)(7846002)(6666003)(6916009)(2950100002)(86362001)(36756003)(97736004)(189998001)(87936001)(85426001)(575784001)(8936002)(50466002)(92566002)(50226002)(48376002)(8676002)(19580395003)(19580405001)(77096005)(586003)(68736007)(47776003)(106466001)(2906002)(81156014)(50986999)(76176999)(229853001)(81166006)(2351001)(4326007)(7059030); DIR:OUT; SFP:1101; SCL:1; SRVR:BY1PR03MB1420; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD062; 1:Ktzx82THMyUXaf3wVt5TvoshS6F7IS+KnpztwwhXmGVEU0mBa5svXHy3XVrxD855/qXIapgi2qan8tXqUhZTYYatMH3GQHU6HTAvRry6YgzZ3EUyDRzkRvm2m2XLZAILgCUSt38M3HBHCt+3K42Z567ZWdPGsmoetSAl806CNhIkhqrK5UdCjIQkda4iooYDVbrrysUyJsAyV9fHgCfrLzyiG+tUMb4CNLioydkXavRgJI+XvEKRjFuWZ1ctC0AdF7H4ZqV8u9hM0knVV3ML5WDCfrNZWU+0a2LaRFjigzFZpad7yTlnPZ7yBV4qvHP6uaJUWL/o+p7zuajLNBfo6gtGQ5Gu/lys+hjuEaWHsnDlPR+1scxNYoKUxAFILWo1tzKtizjKvUVAHrWWpwwSmoUzlnrYz1/zqqlxXPyNFtP3z8tZZNFaCH37h5JcBwKKnaQMRFEA0mkjy8VvPOmbcimSJwo6mPW9NgsNEwDktPgWj6qXpQVpl/dX+e0HMQ5j7+TSYcRes9Yxr89qlXz3vQQ8UC1wa3KYBLTxY/UrVLzU7zkt8Yn+cFJT8UPfj/rPptGIoqAT24iyqJkcGfk8G3rSm0HTFLts2yvc3DKO+Dpio4CB5DAspGaO/mlIFzFp4vGF8CfrJDNW/vlfoziJb+UY18FTn1ntnJYTE/cdiPN/U0tMZH0NM3R5GZOhu0gFsE2JRUC6tJGiBjd3WI1mpwwbgHTXTcQsx4/nbmErJqk= MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: f9d6bc78-3540-4c14-1ea8-08d3f4207050 X-Microsoft-Exchange-Diagnostics: 1; BY1PR03MB1420; 2:pYSY4vICfCfAgFeKpS8UsTegHZl/KLJpZc/z+UkA1wX8EFpT5YsVIsPxlfjVQT5WvUqh+39ITwFkrtWzqCzx40Pd/cmWBAiIHCCZLwpixDonJ6mY/mPn4ciXetcgPe7Zz8UcnWJ/rTjJmCc82aCKxy7btv4YflkcVUdWOgxU0veB1clJjcd4yTNzfrFGYgvVwFLjBzd6jSM3QyIkt1pOyQ==; 3:BTnXh7UrCqsTJI0zfPv4kENMndHXa9BGdaWkJxj66/RnU6B6qeqKbbZ/cCAiKctiWSFDSLMqop8aiKyWxHkrkv15liEku5cMd79vhTXl95qp5yi4tAs92MB/ytiH+UgfYQ8bZKGztnQdiSlO3dl1ZKfAl9r017RzXfiUIMvSB5ocUPS+6ukuUhCRBTyMiVGaPRMuSrhRpRk0ZYMCoSU0AWBs4X9ddCtqulV2xg5vFc3HZeT1+NjFIDdd1lHiSSAB X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY1PR03MB1420; X-Microsoft-Exchange-Diagnostics: 1; BY1PR03MB1420;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CgGJzHj/gvPY8d/putGtB7V8LMJKsEfkXLBAA==; 4:s1uPdblwWBDFWSu/DkBGab6Dyui6Pu2fouXgXRouaMEOfcjKsPurGdw4rMiBeaRI+dVKR+MbJ9g7Dk0vVyd8PqonLPlWMfrBBDVUZDI4lyiaHSKPJ34+KVL1vRo9C90KRzhhNswgctoDUGANgB1IDR+6Efv9I5+xseuBHd9Cqjkp1l6lZU2ngaxgqtz82nAgfIVpPsTwO5U4r8BonlKu1s4HImt+NxsO2dZUgJR8hZIyB5rSm8aoZzgtrUBzJW4Wt2i+WqXF0/7OUXfVV9pnQ04haH9Mt/zvG0Yjk/EiuKt56rHxKUOTyjkY1IX5Xa7WGtkWyyli/xbIOQGaQYc3RTECn4e/WufDct3lMM08R+t1yLeXlXwKtV7lGBzgXBljQ/6PfYdkkxKCTqYOErxq9UfleQSrIvr5F/fhvaRx0f8tz2AzrFrvCLkljMk8xIHFtmcjH//EL7hmDPrB96t362B4dkNFby6sMbUwLPhgEz61IbumucvXNjqhqC+OjV9mwhAuUs/Xf30X9ah3vXJNtF2jOw+VPMb2lz4eqfkga4xej7wLdo0sZLn4pPdY/+Ms 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)(13017025)(13018025)(5005006)(8121501046)(13023025)(13024025)(13015025)(3002001)(10201501046)(6055026); SRVR:BY1PR03MB1420; BCL:0; PCL:0; RULEID:(400006); SRVR:BY1PR03MB1420; X-Forefront-PRVS: 0095BCF226 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY1PR03MB1420; 23:9WxhXbDu6T5XefP3EW6855shIlXgioWxPriVllRTs?= =?us-ascii?Q?d3RiIj3JbPGnm2gzvnjTEhcDis9vKf2foBnHpo9a4u0BSbaMOrDPb1dgflCF?= =?us-ascii?Q?DlK3FpGtEnfpAxnrsSmvNxA3HDDB5JQGEHvGmismtfnuB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vHIf6gVUCiaDLcUaAipXxAs4e3BGJXW7dNXAGCWKdZtJuQQa?= =?us-ascii?Q?XfWHLBzu+82ek5p7MbwDEDIxy0xs8+kIihSp4/Y2lRJr5ec9Hsw929SD3/cR?= =?us-ascii?Q?uEv/2h6UaErNksFmYgGI81zxPwLwuk8Y2rzhESaPLWVWIpUui8cgfPAkzhLE?= =?us-ascii?Q?OaNi45yH9d8IJd9sebRpQWpDhnIIt0pTBvuXBsQJBlB+/vJ95s+0zzBUg=3D?= =?us-ascii?Q?=3D?= X-Microsoft-Exchange-Diagnostics: 1; BY1PR03MB1420; 6:wNa7bGZV6lcDt2qMOKYnHzFFB8nL+6DRxEyvO5vO1o0j/pnVfpuEVIRb7lk839P7Q/FF+Cnut3vsbH8sM5FDJF09qNDJsRXhLYe1DpQP+d+irflC3w8q+SeMDouKBl5JDMuQadArWuoHSbdKYgaUBgQSv9iKRKbq56PJd3yWg2svJpm0eMnVwu8NZO+OjRmgT5xkCHh5ctOAXi2eqK59QaHLsp+6C02ahXNoZu8hXCrJlqKJG2ux7Fw6EfOVFqNCbhuUs3y+PpVyctPO1Z9jkHYOoJNitmW5FG8jcJ6e7JywJWuzwktsn9GP7BIvnbI0; 5:RudHD2vHyQROcFYoK2y0TobGqWQc1gTtf87wMAPyZab/v8bgTrJmHA5fM0FxIEIwEdXCkLRD6HsXZ5g8D4r/svzxhh3xLH7LqntQ4QkG4I7mqBDe5kh24giFRTnVTJDkXp1GPGQ3JFQMqzXzQkzQjEwe86t0VBmnw0otVkQlhqwm5qW0/9+YXtdJ0jpOJplJ; 24:P7sgJB5jP/i/fSoQdWNef9dkLWoiX6GDSoG4V8s87V10E6v8MBvVwjnq3QCd3iz8AeBWPtKjzTm2l0hN6RU0y2XzUY3++LcgZntLi8PuEp4= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BY1PR03MB1420; 7:nbbY6HWbYxajMZDpEm2sn7wkRh+LlLRREaQdIyhAeY0JbTJsofTBKTVdS5C0IM2M1iwvx5dqukMPwB50nX6VXFkxAWykhFtN6gCnD3VXWLd82HSHOxMP92zZBK3MO6bWXrmv+ip5pbXYwwxH/YwAIIQIRKFnV7uhmVRJjzWiwiNK4iD3puJVggBk8tk6d3S3EZbc80UmkDtrEnrSr6Tk8g8y5gq7qAyZ2m8F5mjPSIKNzhI9gsw5lya5BH9uygqjdpsLfagsudrC85ot2HHnnnCeAzLf8NQ3Zj8DnAcyqpIq2gMuFtEL3N2/8VD1NC/8tuE6UqhB5/57tw4SqY71qyualQFWXhrKQ9RR6aQOUIE= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Oct 2016 10:54:14.8085 (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: BY1PR03MB1420 Subject: [dpdk-dev] [PATCH v2 1/4] 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, 14 Oct 2016 10:54:17 -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 b3873bd..e73b0fa 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