From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0041.outbound.protection.outlook.com [104.47.34.41]) by dpdk.org (Postfix) with ESMTP id CEB02F94 for ; Mon, 24 Oct 2016 13:59:12 +0200 (CEST) Received: from BN6PR03CA0004.namprd03.prod.outlook.com (10.168.230.142) by CY1PR03MB2377.namprd03.prod.outlook.com (10.166.207.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.679.12; Mon, 24 Oct 2016 11:59:11 +0000 Received: from BN1BFFO11FD032.protection.gbl (2a01:111:f400:7c10::1:130) by BN6PR03CA0004.outlook.office365.com (2603:10b6:404:23::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.679.12 via Frontend Transport; Mon, 24 Oct 2016 11:59:11 +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 BN1BFFO11FD032.mail.protection.outlook.com (10.58.144.95) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.669.7 via Frontend Transport; Mon, 24 Oct 2016 11:59:10 +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 u9OBwEML008267; Mon, 24 Oct 2016 04:59:08 -0700 From: Shreyansh Jain To: CC: , , , Shreyansh Jain Date: Mon, 24 Oct 2016 17:29:20 +0530 Message-ID: <1477310380-17944-2-git-send-email-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1477310380-17944-1-git-send-email-shreyansh.jain@nxp.com> References: <1476539108-13170-1-git-send-email-shreyansh.jain@nxp.com> <1477310380-17944-1-git-send-email-shreyansh.jain@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131217839510422641; (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)(199003)(189002)(8666005)(5660300001)(305945005)(68736007)(2351001)(50986999)(356003)(229853001)(586003)(106466001)(11100500001)(7846002)(105606002)(76176999)(8676002)(36756003)(5003940100001)(97736004)(81156014)(6666003)(92566002)(19580395003)(189998001)(19580405001)(104016004)(626004)(81166006)(47776003)(77096005)(86362001)(87936001)(2950100002)(48376002)(110136003)(50226002)(50466002)(4326007)(33646002)(2906002)(8936002)(6916009)(575784001)(85426001)(7059030); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR03MB2377; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD032; 1:rWyXixbvzzjRkkWBWA0TwejfG0eDTosbeb8Zb3rqeNajaj7g/5lF+bP0qHdqR2xDYS8ApAo1WUQcCuLOZO66btAcPutvScLvDgf3IKQTC9NBtkEl0zQ62aVq7mfy+tLBQCpH/XLbEKHslM+bLK82VyV1JesMDEtu7ihK2i8st2CSYGqFx0mnhD2escUgiREYtcdL4Q26pHPpAPW9CcnyZlwfb1sVSIAVCdiv9I8VJ6mKRjVfySUEzTnZ3rdBQhuijXA0cIKd4hr+V+OIZb8tumUrhn9KjV9hu9KEqRvpS08m4Z+pNglQ8GBlMbCrCRrbDIMtNL3CY46XhDntyrO7whYxF/8xS8d9T7KXm4llqoTpNFwLgWULBMD769K5L0JUZ5ILHsrABAG81OSsKJZRBwKA8C8Hr42/y1k+1H+zO0lxfXC22eeFfyqt/DTzGPqafvatflxxFxzbynD6SxRmlnwAYiv57bGQXys/PFCSAMk2MYl0TbZQpZXLPjYwjvjozMglDd6pakUry70nmnQolZz3sZl1HFtODx1GfYo7t3g560SxaIVyWrfmvzvjbM/dB8kVKal9aWSicTa99mMxrcQH2pySUxvQeONNuTJUfjixXUofoyTCJh+2A1qXO0KPWck6Qi0LaMQGJXLqOUIcX6SibwYzRA4MDGmV0e2ROz+fRkmCe26gJ8hn43OrEK434osrwlvrBA9AbFPccXB0R9cDRlgo5Vgyq0SSj1QS5NE= MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 92ff576a-f9dc-496d-2310-08d3fc052aab X-Microsoft-Exchange-Diagnostics: 1; CY1PR03MB2377; 2:G0pHha7S8fzgjxYUPqlkSI3w4xzt5x6443ti9/NlaYv5ZGOJI+/xLErpzlcvD4PtybBrk5PonzXMqRYP8BQ1NsvNuCgWxSfvaH4FTCeEEtRfTvwHErqzbl3F+TBjLCMwuidAgoIOh7tyV2AdsJJ/5kmh3aelirN8I8i81g5R2vuLcNWs0UjxB4t1Pl+iuSExaQApV9+uS84b4OoPAJQuIg==; 3:ZPOiTzDofAvojKzfR1W0SnyWSIW5eL+/MmPLJO7lEu2vtoxl3MznmJsE7XSdoHPYHJ6tKuc9reYsvaDbTXMmRDRBbw4MHAT5mCR5g09MtFO1gJdP9z+DSHtw2HmAqe/yOfZxJ9CegaWwjhsMOFazv6ts4QeyaP4oqK1+NTkP95KwQ4yVCTlQ2j+nsZUeJSxJO7YyIJs25h9KwMrZRJQTynJPyRq3CqAVcgdT8tf6SSLnhPGsZeeFyStMV74FCA5c X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY1PR03MB2377; X-Microsoft-Exchange-Diagnostics: 1; CY1PR03MB2377; 25:lTnWNlh+jMvQpb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HMJ+qxr0RABO0wbMSzCKuWpCSd1lRk4yTg==; 4:SwYejbFfM5p7lfk74G0a5mQ6nTiBrUNkRlrB8NVXz924rlPY+QAGeBmPZ6QuftmHhCZHmCbSSCTV/Fyj7pZv3geFg6LT57OPtqBHQo4m10wtegXNXHJUAGP5V56tMnenZCMkWNiULFyDAd6IKQ16emweqIUsF64UWmxkhHaoDkyJOR1WbMo+6T59HQnmGU+hvEPp2YN0hayilSCDVGjTa2+aZftbsJ0NgFyWYG7yB9jz6OiFdg7WmRTEsKgDBhW2eKVZBrhUyiDydKBF0+mZLtWUPAmwtl3g8R3YMW/uW1PBJq4VMWTx+/PZL8zTNAQJKQOh2Nw7N7oS+mDW4Q88Lvp8yFAq5YHwG6nAsH2EHKsDU+l48haRzfsWQxgO/WrqelaT/nqpeUkfkoGarts1oC0rIcVzQ82IZftmkqMSz8lqvmo7y+G1OS+tUG0tCM9eqWV+O+aL63UjvcN1gXWC7tfN3SqRFzvjcaZtejPu2OH4dzVGckjM102dLZWZVOhR9fjlgH0HYiZAS6Nua8oLxSg+84K+qVS/2M+8LhL4eTHlJ/yD0Kr+Br+yFMyS3sQL 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)(13023025)(13024025)(13017025)(13015025)(13018025)(8121501046)(5005006)(10201501046)(3002001)(6055026); SRVR:CY1PR03MB2377; BCL:0; PCL:0; RULEID:(400006); SRVR:CY1PR03MB2377; X-Forefront-PRVS: 0105DAA385 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR03MB2377; 23:lAFTq6eAo6oRvTNHAhZ1X1Q7ceA0LbzTHWvaYDiet?= =?us-ascii?Q?0IJz1fN/68rS7WxO2OZsv34SXpprPEMokdVqB25vdLGNZEfRrmUD3sZHHgTA?= =?us-ascii?Q?X2ghUmoFUo7TU+2nB1TMXu5mcH40HU0HaA51fUg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DvZQS9rZ83Bw7WgixonH5ZSHdZSfVNKRoUnkZCcA5VnhJJK0X4J?= =?us-ascii?Q?bCYBkWm4Yg9yj5+GJdqNWmCD1mZQc49qgw9iE0vfFYrFlLDQpfL8YBkckaSo?= =?us-ascii?Q?17fyOZfZgDnoYrtlIIjcmt2hUJA85YDBdkvVZCkNuNKPGFoRQXBahMJu0fEj?= =?us-ascii?Q?KO5ShbxH3XlSircTCm65mziIaNuLJ7w0TrdZOX6wviRbnNK/j5pPXd/aA=3D?= =?us-ascii?Q?=3D?= X-Microsoft-Exchange-Diagnostics: 1; CY1PR03MB2377; 6:a+DiLR2nLjNNwcoOerJ9Ep1kn7o7S9rPB25Lowz0ZbSkAW0XU0ljIv9+EoBv/wCq4B8irPmXj44NkyPs0YtKlQJVSpXGmj6mHWRH+X7z67dW+O7HBNvspMgDZ7afQJGGH8/uJjDlga+uEaYIQ8Z0P9N7FRGYI+mcZP7PoGYKAW3QUx++Zaixr7d7waRLRzDlz6yFzDnKba/i22bTS3zkCEoQRsj36x12EbomoyCssYhKeUrfiM5xESJRIv1/i7zASXOEI1tR16ZOHqj3VH5mLVlt93OAf8LEHzh9dVuf9y04sDFr5BQXXdN9eussy3GC; 5:g1z8hQAA/SwsRHh9sIRdDCQcyLobGZda6nHsY4RXq4H+pWBNd75dBShrLnTWoOOmtluSbWMuCKipyWxVXe+GUFiqkePx1w643Igz8vcUxMnMtko9XqL9RNIY4vujsOCtCeZ/c8Z0EUPP7esQyIl0keb/NY7b5+nrLo1/CDu8+l0b3sTLmSAm0Jb/EjsJIIv5; 24:imiJFSj0LaA1nxYO+1IdqN8yKiM65jn8qEepJQca2vYzVpah4N9YPGOd4wEesgk2lnG+NHYgSRsSer7LNZxV9xXZI/6N8RmIGq8H43MMDIc= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY1PR03MB2377; 7:XnSi7CsZon7FLTHC7gxZaaYDU/KH0vSCt93q66u8bEV07FhKtZu7AToiMzX0pkOtBaCLEzTkb7PhueHMCSzQgfypHHr8qEwXizp6YNdl2kLZcxTutDOu5VP8g+IS3vXXgjDfHw6kAnLtXrO3UyzqdJCkaKE7iBINgEjZA68g+vdlAfTWN2viSw9GFSg/zt1wXQeRz8cqnuiFYDTqOLe/1dCmYkzLMIeJR0/6xo1GaDXTZcYrko0A6RUZeCgeNm9k4hb2UC4A/hK8TTQ7zVpyr4YhJT87TO0fGoW0trQF7l93GI4+0l1FfkEaAFzgsCDmzLYoudlcx2nrrQyOKXnl1UuGe3Ao4SVH+EPys+i1a3M= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Oct 2016 11:59:10.8394 (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: CY1PR03MB2377 Subject: [dpdk-dev] [PATCH v5 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: Mon, 24 Oct 2016 11:59:13 -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