From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0069.outbound.protection.outlook.com [104.47.36.69]) by dpdk.org (Postfix) with ESMTP id 4D2AC2904 for ; Thu, 27 Oct 2016 17:17:27 +0200 (CEST) Received: from BN6PR03CA0034.namprd03.prod.outlook.com (10.175.124.20) by CY1PR03MB2379.namprd03.prod.outlook.com (10.166.207.154) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.679.12; Thu, 27 Oct 2016 15:17:25 +0000 Received: from BL2FFO11OLC016.protection.gbl (2a01:111:f400:7c09::124) by BN6PR03CA0034.outlook.office365.com (2603:10b6:404:10c::20) 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; Thu, 27 Oct 2016 15:17:24 +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 BL2FFO11OLC016.mail.protection.outlook.com (10.173.160.82) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.679.5 via Frontend Transport; Thu, 27 Oct 2016 15:17:24 +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 u9RFGIfV027183; Thu, 27 Oct 2016 08:17:21 -0700 From: Shreyansh Jain To: Date: Thu, 27 Oct 2016 20:47:27 +0530 Message-ID: <1477581467-12588-2-git-send-email-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1477581467-12588-1-git-send-email-shreyansh.jain@nxp.com> References: <1477310380-17944-1-git-send-email-shreyansh.jain@nxp.com> <1477581467-12588-1-git-send-email-shreyansh.jain@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131220550444652899; (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)(1110001)(1109001)(339900001)(189002)(199003)(36756003)(586003)(87936001)(8676002)(48376002)(97736004)(7846002)(50466002)(68736007)(85426001)(2351001)(356003)(229853001)(104016004)(92566002)(76176999)(50986999)(81166006)(305945005)(11100500001)(81156014)(50226002)(33646002)(189998001)(77096005)(8666005)(626004)(19580405001)(5003940100001)(19580395003)(2906002)(86362001)(5660300001)(4326007)(110136003)(47776003)(8936002)(2950100002)(6916009)(106466001)(105606002)(7059030); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR03MB2379; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11OLC016; 1:rAN4DMDMtUPZGHVOEzhGnd6+vcLyA0/Wkn/oQUo7bCPqj9SY/5qTSLIHaxUDd4HdLg0tEDOQMRzGiBgOpCqCQ2oDx4InbMQz8EYoBR9BctljiPvIrGMlDkYIWKD0sPnoaiRFK5HZvFuSfKInB+OyVysO8X+522nPaL8AFkzxbyLofa6l5vpdl7H2av7RbS6VNWkAEb58LUILHxzNwPnMQ4tZGAFB4N6QwGbBKyItzLP0yjhqgP/+hRrbLRS0wQGKL2u3yZIukm2/c8ees/pJhXXtMp9ZUA4v/NrHoIAHDsENtPykv9Z26JYn6zXrluggltjWKojDU1HXWiy13H4qb1dmO3uv/xu/2VbgmoRsMJ+526/Fd/sVQD+hkoN8sab6UsiLaU1s5sjTFLXSaFSuAPqIaQogfl/v3Y01jV6ZF3W6T3rCsdLxQUzG+uO8rtp4MDoCZKMBZjPTnCCTI2XNpzDxBfc0Akf/IMXnUjqkYETTzhbz3Bo2uAq6TkLXU282ofQLwBPn/CVpKHhXiMGP1qZCstYrwx84wm9fh9/VLqkqNpK3riZCie145TKojvXpiT9PoFpM/HEfQnow+rv0jQ7ndzypY6bG9PiU6mgbwunh8gCpAeqsMZnxbuZZmST4HC1nqcgUGYyuxO5MgX7roipqSQTaYbHwLggEJKlLzxQOhvNNnhTwvZ9gJbBAbAMrPLB0ykb3+FdZOMuDZNHTKghtXfHYRUm9Rtepdj/HzM4= MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 07102f8e-a26c-4387-b806-08d3fe7c5af0 X-Microsoft-Exchange-Diagnostics: 1; CY1PR03MB2379; 2:rzGMeb5Fw7PyY4QwfWksQq4b45JiSQvKVLtNtkkZS5s3pK2Y7KsIT1mgKa7Q+YH4vCFtJ5PVOn++QLvK6Ubernm7F41a6ogxk1aAq7Zs63tGpv9QbNwrAH5I0Qn1tscLm9UWvVNXypv5FjUMGlprHNboVCrfl76189yBHaw4Q0HT1GOQU67iBcIsjTz9pCfPay5F9eecfKoRxM5uTue7oQ==; 3:k+89sVFuFxM0F2F5BiDzl/Yq/EgT6VRs5upZxv4OmwhVJ3EC3fVpGPAhtbHfctZvNFOkofbUbAnEzt+bEr6j9taB2BoKd6YSyG9EQRg5+tmG+mthBr75msXnwFLukgKh2m8rGN2w1JS4IVQ6A4R1FchfVkNmixSOA7sZYCXn6gq+l78Al71pxw+v+PLwk8RD1Ijo5kC/dUhQHAqjn/YngYfg/n1GcObcVF6HuJVuVudu16d+wTfhNTGSl3veUzqS; 25:YuY6A+p5oAFyc+bGG5oLb3rL8MdnggNssEeaEMIN3hIF1HlM3TPBbBJoLM8YoRnAaKB/mXYREJplnCGE/HMMcoO6oka/sRFtEKDNbMccnm2x5/j4PR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TKYGShvpxf38nxk1M+0MAb5STUraK1T8wcDb/bRAPBNUXunWYqOxbLbq4bl3AE2j8JnqAD7ufoEvOdXKa79yTYXUH+5rFglOdXXrBsP4zjXaDSNxEII02050TomnSr5HeX2GhqywFhGrSvFFfc6mlYQmSHgkqd1VXD7MCzNvQpuCZxnTjfRZ3avNS3MYyqL17ltZ6PO7tZzBy6iCzxZ7Lby9/WuhzJJ6SIBruXb6Y6n1Ht38UMoWt 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)(13023025)(8121501046)(13015025)(13018025)(13024025)(5005006)(3002001)(10201501046)(6055026); SRVR:CY1PR03MB2379; BCL:0; PCL:0; RULEID:(400006); SRVR:CY1PR03MB2379; X-Forefront-PRVS: 0108A997B2 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR03MB2379; 23:ytzZqsWWdFZDhSBrbyEZW7/aMEIrFWDQbDafio+B6?= =?us-ascii?Q?7cbVLA6bydVBKQ+lXbDdkTusCIOBDXaJni4FJ1On+qRfRuLz3yz8FgtaYnfQ?= =?us-ascii?Q?DY3f4UcItMbyUcDm8JN0gHSjpyFHvSfsrDOj1/sWx/lR7Bc8mFpeVJ9ZIx4y?= =?us-ascii?Q?sJbSatJ7XlHWdWBr/5mqQO7VZm4kcGGt/xrMWyQ+XqO6QyolHeFDHOksRBr6?= =?us-ascii?Q?AK7YbLBBcP+7+fQhAPqTXT4kAz0nnPhHS6W4DIlY65+NkXVycmU3ctbhrrOn?= =?us-ascii?Q?1IFqDloCdpOmDb73RkXUnTL4gKIaDsN/Fbp5kLyUrC1fDghJfPhjkaI6QvW6?= =?us-ascii?Q?qrRk7IhmpJ3KJcqXCj+p+vUH761XmtJTH/qDIC5KJg+9JXg8Nddv7QCQMrbx?= =?us-ascii?Q?veHjMRGkLPTDHcmupWqtfSA6ZSC7mW7yj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nboIGwPvl886YOjzFNiiF0ePoSaRRHMU6gKPHhnDVgRTUplAyxXbxGoWlfYDYbt+iRIxbj6BxPlUKFVZ8l9wSVWg2Ofyq4WaTjkluYeK+/pssRKM/Op8RwrS+virZ8dNr/M31G5rD+1fufeqjwQZaN8UY9xSu+7JFMRjWoG3R8MEnLEGq86Zgvx/deLszV+f1kw5Psxq6MAZEFiVs+/u6SB5bar6zQ+pzv0iyu; 5:ve2H1MT3gU51qRZnEPWihlYG46h5Kjio9hpKH2tpfB9RWPt+jZ3KbaciIa4ZK/K62tBRmv8sVmp5BQs7FXbpdRHqLytunbZf4hBv0QOPABcapH7lczgwJWbHUveBaNh+FpUoQfJpqMJkoVj7kZNY6ug2JtJkgWYgcH+cHnhDDFAO94rHP8IYk4Pu/hEciADQ; 24:uZ/G4YNgLbrYTrQd154YDagDCbsXIbw8KZkCDPdC72ZhZ9hEG53DGXhz+PmpVRwoy9NZyZ6ZVnoLExu7flGKgsPEfHpeZinORhmJB0+NywA= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY1PR03MB2379; 7:RzKJ3WnracjrHQgSKZ80NN16eGSB/3jj0cifwQmJiAdl7J72lsEfxT4ypdRIAE8f79fwkhaDsvqor6s5jjnFXuwMtic8S+yHy/uytlNaLgleo+ENKjXc3ezGUI77uKby/IfxCIIQUsLmSitIxzEJ+9TRLARrMP/+2IYBvT17Ft8S1bOxKlBuFIbdEnGZ6rhIiQBIxl75LViaqs+zMjOhbZqsktI7ScMCo6JWiB9ehO7w1qNcdz0HdiuZ8cIkulTlq1OFeEQsGNdl71vnyDhXwLv9wq9/RKyfINZ0OIeGd23tqS7k3Qk1yd+ufgMSC/BwqTVnLqn0GW1PlwrNlxHoA5JT7JY7DfZ9Ji+F7ZKF0HM= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Oct 2016 15:17:24.2624 (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: CY1PR03MB2379 Cc: Shreyansh Jain , thomas.monjalon@6wind.com, viktorin@rehivetech.com Subject: [dpdk-dev] [PATCH v6 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: Thu, 27 Oct 2016 15:17:27 -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