From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0086.outbound.protection.outlook.com [104.47.34.86]) by dpdk.org (Postfix) with ESMTP id 451942B8C for ; Tue, 27 Sep 2016 16:12:29 +0200 (CEST) Received: from BLUPR0301CA0024.namprd03.prod.outlook.com (10.162.113.162) by CY1PR0301MB0713.namprd03.prod.outlook.com (10.160.159.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.629.8; Tue, 27 Sep 2016 14:12:26 +0000 Received: from BN1BFFO11FD032.protection.gbl (2a01:111:f400:7c10::1:177) by BLUPR0301CA0024.outlook.office365.com (2a01:111:e400:5259::34) 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; Tue, 27 Sep 2016 14:12:26 +0000 Authentication-Results: spf=fail (sender IP is 192.88.158.2) 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.158.2 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.158.2; helo=az84smr01.freescale.net; Received: from az84smr01.freescale.net (192.88.158.2) 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.629.5 via Frontend Transport; Tue, 27 Sep 2016 14:12:26 +0000 Received: from Tophie.ap.freescale.net ([10.232.14.87]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id u8REBqce027766; Tue, 27 Sep 2016 07:12:23 -0700 From: Shreyansh Jain To: CC: , , , Shreyansh Jain Date: Tue, 27 Sep 2016 19:42:28 +0530 Message-ID: <1474985551-14219-2-git-send-email-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1474985551-14219-1-git-send-email-shreyansh.jain@nxp.com> References: <1472704915-13112-1-git-send-email-shreyansh.jain@nxp.com> <1474985551-14219-1-git-send-email-shreyansh.jain@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131194591465209186; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.158.2; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(2980300002)(1110001)(1109001)(339900001)(189002)(199003)(48376002)(5660300001)(626004)(36756003)(77096005)(8936002)(87936001)(2906002)(586003)(33646002)(85426001)(6916009)(11100500001)(2950100002)(50466002)(356003)(92566002)(68736007)(50226002)(81166006)(7846002)(8676002)(305945005)(81156014)(47776003)(86362001)(8666005)(110136003)(69596002)(5003940100001)(189998001)(4326007)(50986999)(76176999)(97736004)(106466001)(104016004)(19580405001)(2351001)(229853001)(105606002)(19580395003)(7059030); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR0301MB0713; H:az84smr01.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD032; 1:NCdyti4lqz/IKdcGlNTfGpHIgGz5Ty+TnUnAoWugn3M8zOx2nGfmv9EyX0fDpHCk8ZFx/s3Z8IdPckty5wZgToS6DLDyei9T4FilR1I4h9rGquc0w6o62OnJmd4zycWRHAuEmQqvRp7eFvo/4rGap8IeCPfigfTwcanOkjEC3KLQ6Fr2Gsx16DU4wboPNuXmCENeqpBlscdimeWO5MReN/bS//IMB7hrL2CHJZQ9x/gBscheLLUONp7CB3XsVvRLhp3jj69FR1bB4QXTznAzhph5l1ft6+dbbA1W8GP9Orbkq7ANfvsgvjpEdd1SWV88r34n8q3h5okcxtLnxGWGmoo+TEA7ZVqlZYM3HkJ2lamWKnI+oLOTkNGzp5QlUgKDX5RVD37Z3yq8ip6hU3qDJM+6v5ndEXhGhqJu1Zpz6d8JVHAfsktac34yWAgdZHQDomnZ9Qc+b5VuESO8dwwe2g34UXDYrIV1PHRIq2/cq3PMVfx7OAULmJeLiBcgBBvQ/+IizQ9a3IFU5NVIyAdJ69QBFS5XnoK++lhPS/tf8fI9aXmPnRojRt3RSy11OB8s6SxTAHK0k9jhH8giUXUd7yyZItNSaX+pYSvtPvMwb9vOO9+3ZmyJqWSn1So5kctSX58KXfb1Kk2Ep7vEOIoPorwY1UPWKb99P7V3pClTM1XavSvZrC26juTQMhfpS+a6xApA5cGOQEqjOy+Y/gEccVFPMjXWxqnszTmxREb63ME= MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 1c2f0457-529d-449d-1c01-08d3e6e04f31 X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0713; 2:lg1WiS7NlD5yQNP6Rqzf3z/v/X3c6ARZbsRU8cS6eDEvnJ7K101Nlis1TnoZ7j6mVWP5fzkSMIYrKGETIKl7CKbOoXd2Yv0auymbKlBgT7ISFYZh77qaNb+Yyn19LipWKRUVNF1ou0JaHz6DhBnvp+JTfyR5R6QOQgZ/OW4qx9uXd26W6luPZjW/xUUgm03N; 3:izfMMNXm+WAouDhQ5Xn7R+ZG63HXaWOc4P9HjyFWUBhqVx5EJ+p5KfuPH+NmBsnAomlBzrYcP/wlrTeJxdgO2y6IvvsvJk0S6Xd4FAsd88M+hgmICwNUoY1kulHW5MtXejpx/K65mgf/UV3aLFJiJisTkkQ1NySjL8IA0vSCTM3WTRGuWSC7NGoRCE5TLdwltdBZHXeDnoWml9g51/I5D40FmbN8+CMMDYMZBZ/OI/s=; 25:fksEfHdqmRYanqaF7AhIX9TKEdsesMtHiwo6aIwGQZe4gnxBdaio2SiJUYvTYpRFCjagyG6Cbx15gTIfYJVFj2xrGKHtfoJ7WB3xUG9wpfTBJSi/vT13KHUS271rITF0yiCtssJ+SrOIQPZQery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p1S036rJdIoq5ELm4P4VFrN/S5++Jr39C1Q/7Gxt8KYnJpm596BIhUZ/gn8dgI4bmhZxkwEMM3m/HAhKhuf16jhMocsQ= 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)(13024025)(13023025)(13015025)(13017025)(13018025)(8121501046)(5005006)(3002001)(10201501046)(6055026); SRVR:CY1PR0301MB0713; BCL:0; PCL:0; RULEID:(400006); SRVR:CY1PR0301MB0713; X-Forefront-PRVS: 007814487B X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR0301MB0713; 23:R7J2buDxBNMkFPm9G+QJ+fvqIQ5uvQnreqeK8mv?= =?us-ascii?Q?JnuLzE3M7i28xlmHFHcQkToO6vGBMPw7VMDjhUbAqluB6RDlMDIFi+e0Bs5W?= =?us-ascii?Q?bAMTZtPPVw6YZgLWyiuVVa72zG1b4IeOdcQupvzBcorOb4wN5x4A1i1JOt0g?= =?us-ascii?Q?ee1fYyRkvO38g2n+0hb7HbHYm4zNBm6Ed0VclS1OCEqvuXcST6N4z2ZC8dy8?= =?us-ascii?Q?YBmKubOZhiABHZWGZvumOTRJVNU9WqaUsypgTg6z3JLejPPVOeB48izk6tVO?= =?us-ascii?Q?LJ7LCfwr92WeI3FkzeFjjWCS6SRVRLd4JKtjtmNLC0Sd/2u+5OYb3S0VM722?= =?us-ascii?Q?C6cIRiBdPKnuyx7PV2DSXK8pxWZMz+Dr/JEC9Br9XACNJzqvJW8TpDrtZ1Br?= =?us-ascii?Q?e+Yt5R1n2JBv8sFgh0Sjm3eCLZqrgDVdAGDvWYQD6IoVLMyNVoWsRzuX9pbi?= =?us-ascii?Q?Z522vV3/Pvagut0+QT5xQPgtocQeSyf7j+Q+u8HAafIJvenhRH3erWXwF99E?= =?us-ascii?Q?3Kr5vwn52ZGupW68Ju+vSg5ICKTWTGdPgD66R/AsIMH2IWXq/gtkNh6uuP58?= =?us-ascii?Q?sMNfDyde2dl42OaVzua73qNIuHdhinwiezvNgpoAdTgxh3WEy/z4459TALJZ?= =?us-ascii?Q?aWO2wDmYTZ1scLzs+TBKf8MY+X3H2tzQxnDj62RCKc3Q+zg76USpd0Zj8jLZ?= =?us-ascii?Q?oFd2ma3pHVa/4WhewzP2otRSTpqbE/VJgpVO21OOIC1+M78lii1HgqkSrB+7?= =?us-ascii?Q?624yhPolGb7pw2axd9KNjKNK4Fhyz5bsq+HalIj354ckaQpdFIk/shW1xq1A?= =?us-ascii?Q?+NAJDEt3jaIbUsVplKx07e8OrNHmeiL9nHlqZWXfPs7uGlPQEwBgyDyUHMuy?= =?us-ascii?Q?6g40HzYc7UalxmQGTaCC8W/8wMtB06RdmD2zehd+CFtGEt+5IujrVOLZ5qLY?= =?us-ascii?Q?/8b1DOHuaTLKhiJDHdN/zamsqnsxCB+nrvVku+1sB2FQw0BQhNx7TroGByQj?= =?us-ascii?Q?arRsa9lNf/UQrr2x2p7jW6FE8C1uk9ISZeHyP19MvDO2O7TdlCM5Lc958/vH?= =?us-ascii?Q?EaPY71NDQQTWWEu7lCKrmN1hz7Y2sglrcZ6Uu0B8bG1BPgXGWFMrMhXIBoLl?= =?us-ascii?Q?uYuFR0fWecEtVg5+ZbXI+xdNuWjqADfjV4Xw0Hp2Bg2Ueh9t9TF1vdK1GBT5?= =?us-ascii?Q?XkdiCetqx1QIahmV5xYt/lC0+iwpimYz9ZqzC?= X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0713; 6:+Va5Qk5ibwhmXDc87RaYOLtNCsE3drklFUAPq8QML9dJOonYV9tz/YEZ6bpa6q7ip7AjHjnIYfhtxXscevyxElBdgIcK8eX2JohuitPiM+DEiy+kX9HSEkBLZw4OV+Kv8zt1327AQHpnCO6K89DqnobfaT2S+WdWrUXAVaQqyS2E05WWnp36n9QFAIfJCveoUu676PHPZz7+Vu3Z/FcnjivwWwIHmepyimow8/JZkQZIochBLUdfEqHwFauM1a00cUMyuFq3R0qmID/5v79EX3NkZuG8jENpS63fiqehigI=; 5:t6bXZ2CVTTSO2im6/K9dVrcqyeF8QnmYCOq25Y9njR0Qa4Hg7YnaMCl7pdw2l4i+dIQnzusnZUiXy6BV74ouxUp+zZwouLaLuSD5Wk8HfH1FJyxySTTiFG2qXaCnxDzMEgSHsDvkNMn9TEa73uduRaNsDEGbQOCIRMlJg1R+G4s=; 24:pACDeadOT1xggi4jD2zJbXrgoVTpybDiplypwQi/yIuWF3zAXZOqqV8eoDtQnEem5IIs24DxYxXn0jGzvc/ly41FmrQ3ihCfuBxYuQRGDmU=; 7:ti/SW/1bSqpGnB0BuwcvWGd6dD+knMynAhoiw2uRZ5seASySPmsbZ/r29NwUvDt1hG1zikqQv3bvG8+6VE422lKt1Ygq1jO6pmNbRoD8O3PPaLvEZUQt5mxz/lAp3e9smFDGc3uG/IUBLBH3i2ApbNX1hOomrsLXEqM5x5yoNYXcvHLRriAYoVROnj/28ImIMp1XjO7ANLGWBd5sE01y0PjKgHE5dudFAp6wqvuUl5qo+nHl3UuXZWt2GDiHoStFhKABHaN8zG/k6AtY+gYJLvzraLsyolix4u7K5s+Eew/kLYo2QERPnIibAnzjMv2V SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Sep 2016 14:12:26.2713 (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.158.2]; Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR0301MB0713 Subject: [dpdk-dev] [PATCH v1 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: Tue, 27 Sep 2016 14:12:29 -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 | 10 +--------- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/lib/librte_eal/common/include/rte_dev.h b/lib/librte_eal/common/include/rte_dev.h index 95789f9..60bc91d 100644 --- a/lib/librte_eal/common/include/rte_dev.h +++ b/lib/librte_eal/common/include/rte_dev.h @@ -101,6 +101,18 @@ rte_pmd_debug_trace(const char *func_name, const char *fmt, ...) } while (0) +/** + * 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); diff --git a/lib/librte_eal/common/include/rte_pci.h b/lib/librte_eal/common/include/rte_pci.h index fa74962..108000a 100644 --- a/lib/librte_eal/common/include/rte_pci.h +++ b/lib/librte_eal/common/include/rte_pci.h @@ -82,6 +82,7 @@ extern "C" { #include #include +#include #include TAILQ_HEAD(pci_device_list, rte_pci_device); /**< PCI devices in D-linked Q. */ @@ -141,15 +142,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