From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0061.outbound.protection.outlook.com [104.47.0.61]) by dpdk.org (Postfix) with ESMTP id 3BDFC1B666 for ; Tue, 5 Jun 2018 08:26:36 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=o4j0Exs3Wedf9uIqiZiW28zIYGB8hnYbMCR7DUMvm+0=; b=p1eL3K+F2ZWOmOXXExd0fHEnZ0ZCH104szgLLX93y2zVjMQkcUt61DXz42Ff+VeLrNyRT0mDwykvXVGmlKZXo0THN3K5mFDRyDmTegI0kIlh+HropWR3iYai9xLRW8nJqLn/S1g0tiXqHFHMuurrFMfLR1WGsN6I+UT2fontR8g= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=hemant.agrawal@nxp.com; Received: from bf-netperf1.ap.freescale.net (14.142.187.166) by AM3PR04MB0758.eurprd04.prod.outlook.com (2a01:111:e400:883c::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.820.14; Tue, 5 Jun 2018 06:26:33 +0000 From: Hemant Agrawal To: anatoly.burakov@intel.com Cc: dev@dpdk.org Date: Tue, 5 Jun 2018 11:55:11 +0530 Message-Id: <1528179911-26675-1-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: SG2PR06CA0195.apcprd06.prod.outlook.com (2603:1096:4:1::27) To AM3PR04MB0758.eurprd04.prod.outlook.com (2a01:111:e400:883c::16) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:AM3PR04MB0758; X-Microsoft-Exchange-Diagnostics: 1; AM3PR04MB0758; 3:JatG8qz3pr4wW0crA88lC8hYoK6OiwvNclYQKcOHWny3CSNPP7+QGRy4fiDraFd2gA10xXpwkOcGlaP707rfJqTGk49fpVbdbp7P09XnRUaT8LF4AZiHHMItj0w8IuoLBnMoxEVHwn1yEX+zqavbfvTjfOIj+ShouQHdZ4+4Oo11ivg26wghIx7ln4wp6cNEPdf5nyW+jR/AZmmp7t2zV/oY437jPPR31QWlNlJnkqDj/+4ON9LpXvMltW8D1nI7; 25:IjjITSCWsIPstn1ChWs03fE1ZPdqEtF5eRZTJf+ZPJmLfshOq1vRtipX4Y10sZG7lBw+6cvOPY6TYzeV+RlouOewGF7NJQr+5eA8JZ46g/4PCq42srlksMTDZmVM7WqLcs9exZrYFlJeQA3Lpb4sA24qWya9a8lvS6bv7Ny35vUUyXlrimET52rtCf/bvlWQEhh6YGQIy/rJ09QQD7Z9iDrGFG9o/HsIKEKFzElCEAenA20+Cb5ZtgruBAPfMIVXXlTrsTnJb5elVdv9Tu0qDgR5jrxi3VaZXIBNGGjpyGWjx5GhGpTuUZpq3u4q1z8z8fEAnRyfxQwts1+HgGd6og==; 31:7uu1eV81MG9Iexlh8GI/K0OeTRlXWMA0e/ehTY/2VaF+Oz9xxhB5F3v+plF6TOs3Z4Gv3lDD/aURhRTLI8kqzOfhrP2CaooacsPKBaITKKimgfCGZEGEJ60oYPeobTuCPKqW39HaZv3g/eVFw9+wbDcBl/t94N0mEGZnnSN9TvaYWbOpuYxlZt33py0aoB8ziZBZkc/aO+oGa3DN5EhKp3kg6KJgxcplLfFZv7E/IUo= X-MS-TrafficTypeDiagnostic: AM3PR04MB0758: X-Microsoft-Exchange-Diagnostics: 1; AM3PR04MB0758; 20:q3FNaJbDkG+YEWiWojxJaoqT0q/lxD3RTZmCZzokE0RI29l84u+Zfy+KERu5JxSLiOgqilfViVxehFfWB9Q+ClwbrnbuDTehU5av3JtUQoMzw1qhCJL64em44aeBp7Ho18EARndbnFV/3Fm79tXS/+sovPLPiBHYREWeGJR6IUIts3SDnJW5Qq3tpPVzmWV4zlHG6vlBNiMQ/yEMCUZ1pgt/34e+4BrWq7ioUdyQ1of4qcRwx6sx0qiPX0qe1zBb1f/MEgmRNXn/KMPtIBM+5R1R/Idnj77X/U/xJ/s+eLuteZqkdK0HMSowkPtjJrJ64n5AumIzD48YqQJI3WAa5peq5ZI3tdf/6T+XOzsFktcu8vBas3lOazQumuaCtE09cfkik7JwMwhmG0pVZFDFaP5ZTo8OhOjG91ZfcxYKNm2NOLLB5tI+xAlX6bOGDZF5EaBrMjV/naWAZXU7TYqizzgnIDuSwStKnyQySDBtQ2wJU3bnE5vtJnJm7LrT2SjD; 4:FrJKsGMkVVZH7FDNwaA6q7LowPOoDAepghmFP3q9rz0pWv2tVfRKCVd01R59Idm7J/OKk1i4/R1a3I7SAX2OvBo4pm0+hW5/TMANStSoDMEBsLrQX82LEzBXyAzp8XSHYqkcqekFetOSZF14Q/mOveB+y63S06QPDHEnX9gXSivy72NZEZFSiDFwCjZpCLU/t1nfUrK8mhA7i5y03cPywL8tok6kLydAZ3S4y86t+ySexQcDqoHyGBzMUX0JStIMdeuPFlGD6suNmPx9Z18p1KjjsgseqXGIG4SUgmSXh3Tnd4ko+6FtErEkEyPTVuPE X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(10201501046)(93006095)(93001095)(3002001)(3231254)(944501410)(52105095)(6055026)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(20161123558120)(20161123564045)(6072148)(201708071742011)(7699016); SRVR:AM3PR04MB0758; BCL:0; PCL:0; RULEID:; SRVR:AM3PR04MB0758; X-Forefront-PRVS: 0694C54398 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(396003)(39860400002)(39380400002)(376002)(366004)(346002)(199004)(189003)(8676002)(316002)(48376002)(16586007)(51416003)(53936002)(6512007)(305945005)(105586002)(8936002)(106356001)(52116002)(81166006)(47776003)(50466002)(2361001)(66066001)(4326008)(81156014)(2351001)(25786009)(6116002)(5660300001)(6486002)(486006)(7736002)(3846002)(478600001)(476003)(956004)(2616005)(44832011)(50226002)(6506007)(55236004)(186003)(68736007)(6666003)(86362001)(6916009)(575784001)(36756003)(97736004)(5009440100003)(26005)(1857600001)(59450400001)(2906002)(386003)(16526019)(110426005); DIR:OUT; SFP:1101; SCL:1; SRVR:AM3PR04MB0758; H:bf-netperf1.ap.freescale.net; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM3PR04MB0758; 23:rMtdzVglwowXlYu781gH51kY3q0UiyTYhk9Fr17JX?= =?us-ascii?Q?PYORLcGZD/d4lmQModqwvGk3D3F8oIcUpXLNClQujS7vfa0j9p/rnrt+V7jL?= =?us-ascii?Q?vYvZlrd7+6pOUsddHWb0VvQ5c30JxqzFh/9Nr65tZa6XmU9zF0bPl784VBwp?= =?us-ascii?Q?az91CDePfcbjLnWt9ziI3Q2OidWLNsBC7JIxqQtt9+Tn66t/WGrmKvsbtBAO?= =?us-ascii?Q?DVtM6uUxfQavxVnPVBalWqGVtzn8CFeDP+ELuZB0lP0SFZm+XS2vftte/+If?= =?us-ascii?Q?fcFqA/q8byGng2PWgTnMyXIrJXNIZPSN3yilDaX7eBNlkReN4LGof2hq7/Vf?= =?us-ascii?Q?5k8Yb1eOpGvEqSvjG0RQ8lP8o1h+HyU3jwtXgyrUlSSyqMQC6s3Eyl5Sa513?= =?us-ascii?Q?W8xqhlBm4Na3zO1/T9nf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amDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM3PR04MB0758; 7:ZscvCYO/FVlP8c+7A1F15w8GgepT65c7SERk79KyR/J3kzHKuzFxQygkFIrzylytU2jRWGMRXWza5dNNY7MZFw7hPK5F3Hrlpfq0++gCJEPbGWtWA4wdw+icnB4sbW06gMpEl5T+BHwPReSRqQyrAn6JlnSr1M1OO22teQ4OHuljJ4fwladx4u3g8eOcx+uzHbZD/2jQ+EsdiXsjNiDQec0xjKdFjlYmBVxeOJmJeWNgfDggKcOv9YKeEMk8/Lkp X-MS-Office365-Filtering-Correlation-Id: 9ccba3ac-7339-4b91-5c17-08d5caad4906 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jun 2018 06:26:33.5652 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9ccba3ac-7339-4b91-5c17-08d5caad4906 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM3PR04MB0758 Subject: [dpdk-dev] [PATCH] vfio: remove experimental tag from vfio APIs X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Jun 2018 06:26:36 -0000 Signed-off-by: Hemant Agrawal --- lib/librte_eal/bsdapp/eal/eal.c | 22 +++++++++--------- lib/librte_eal/common/include/rte_vfio.h | 40 +++++++++----------------------- lib/librte_eal/linuxapp/eal/eal_vfio.c | 36 ++++++++++++++-------------- lib/librte_eal/rte_eal_version.map | 17 ++++++++++++++ 4 files changed, 57 insertions(+), 58 deletions(-) diff --git a/lib/librte_eal/bsdapp/eal/eal.c b/lib/librte_eal/bsdapp/eal/eal.c index dc27954..33edae5 100644 --- a/lib/librte_eal/bsdapp/eal/eal.c +++ b/lib/librte_eal/bsdapp/eal/eal.c @@ -866,21 +866,21 @@ int rte_vfio_clear_group(__rte_unused int vfio_group_fd) return 0; } -int __rte_experimental +int rte_vfio_dma_map(uint64_t __rte_unused vaddr, __rte_unused uint64_t iova, __rte_unused uint64_t len) { return -1; } -int __rte_experimental +int rte_vfio_dma_unmap(uint64_t __rte_unused vaddr, uint64_t __rte_unused iova, __rte_unused uint64_t len) { return -1; } -int __rte_experimental +int rte_vfio_get_group_num(__rte_unused const char *sysfs_base, __rte_unused const char *dev_addr, __rte_unused int *iommu_group_num) @@ -888,45 +888,45 @@ rte_vfio_get_group_num(__rte_unused const char *sysfs_base, return -1; } -int __rte_experimental +int rte_vfio_get_container_fd(void) { return -1; } -int __rte_experimental +int rte_vfio_get_group_fd(__rte_unused int iommu_group_num) { return -1; } -int __rte_experimental +int rte_vfio_container_create(void) { return -1; } -int __rte_experimental +int rte_vfio_container_destroy(__rte_unused int container_fd) { return -1; } -int __rte_experimental +int rte_vfio_container_group_bind(__rte_unused int container_fd, __rte_unused int iommu_group_num) { return -1; } -int __rte_experimental +int rte_vfio_container_group_unbind(__rte_unused int container_fd, __rte_unused int iommu_group_num) { return -1; } -int __rte_experimental +int rte_vfio_container_dma_map(__rte_unused int container_fd, __rte_unused uint64_t vaddr, __rte_unused uint64_t iova, @@ -935,7 +935,7 @@ rte_vfio_container_dma_map(__rte_unused int container_fd, return -1; } -int __rte_experimental +int rte_vfio_container_dma_unmap(__rte_unused int container_fd, __rte_unused uint64_t vaddr, __rte_unused uint64_t iova, diff --git a/lib/librte_eal/common/include/rte_vfio.h b/lib/librte_eal/common/include/rte_vfio.h index f90972f..5ca13fc 100644 --- a/lib/librte_eal/common/include/rte_vfio.h +++ b/lib/librte_eal/common/include/rte_vfio.h @@ -179,7 +179,7 @@ rte_vfio_clear_group(int vfio_group_fd); * 0 if success. * -1 on error. */ -int __rte_experimental +int rte_vfio_dma_map(uint64_t vaddr, uint64_t iova, uint64_t len); @@ -200,7 +200,7 @@ rte_vfio_dma_map(uint64_t vaddr, uint64_t iova, uint64_t len); * -1 on error. */ -int __rte_experimental +int rte_vfio_dma_unmap(uint64_t vaddr, uint64_t iova, uint64_t len); /** * Parse IOMMU group number for a device @@ -222,7 +222,7 @@ rte_vfio_dma_unmap(uint64_t vaddr, uint64_t iova, uint64_t len); * 0 for non-existent group or VFIO * <0 for errors */ -int __rte_experimental +int rte_vfio_get_group_num(const char *sysfs_base, const char *dev_addr, int *iommu_group_num); @@ -236,7 +236,7 @@ rte_vfio_get_group_num(const char *sysfs_base, * > 0 container fd * < 0 for errors */ -int __rte_experimental +int rte_vfio_get_container_fd(void); /** @@ -252,13 +252,10 @@ rte_vfio_get_container_fd(void); * > 0 group fd * < 0 for errors */ -int __rte_experimental +int rte_vfio_get_group_fd(int iommu_group_num); /** - * @warning - * @b EXPERIMENTAL: this API may change, or be removed, without prior notice - * * Create a new container for device binding. * * @note Any newly allocated DPDK memory will not be mapped into these @@ -269,13 +266,10 @@ rte_vfio_get_group_fd(int iommu_group_num); * the container fd if successful * <0 if failed */ -int __rte_experimental +int rte_vfio_container_create(void); /** - * @warning - * @b EXPERIMENTAL: this API may change, or be removed, without prior notice - * * Destroy the container, unbind all vfio groups within it. * * @param container_fd @@ -285,13 +279,10 @@ rte_vfio_container_create(void); * 0 if successful * <0 if failed */ -int __rte_experimental +int rte_vfio_container_destroy(int container_fd); /** - * @warning - * @b EXPERIMENTAL: this API may change, or be removed, without prior notice - * * Bind a IOMMU group to a container. * * @param container_fd @@ -304,13 +295,10 @@ rte_vfio_container_destroy(int container_fd); * group fd if successful * <0 if failed */ -int __rte_experimental +int rte_vfio_container_group_bind(int container_fd, int iommu_group_num); /** - * @warning - * @b EXPERIMENTAL: this API may change, or be removed, without prior notice - * * Unbind a IOMMU group from a container. * * @param container_fd @@ -323,13 +311,10 @@ rte_vfio_container_group_bind(int container_fd, int iommu_group_num); * 0 if successful * <0 if failed */ -int __rte_experimental +int rte_vfio_container_group_unbind(int container_fd, int iommu_group_num); /** - * @warning - * @b EXPERIMENTAL: this API may change, or be removed, without prior notice - * * Perform DMA mapping for devices in a container. * * @param container_fd @@ -348,14 +333,11 @@ rte_vfio_container_group_unbind(int container_fd, int iommu_group_num); * 0 if successful * <0 if failed */ -int __rte_experimental +int rte_vfio_container_dma_map(int container_fd, uint64_t vaddr, uint64_t iova, uint64_t len); /** - * @warning - * @b EXPERIMENTAL: this API may change, or be removed, without prior notice - * * Perform DMA unmapping for devices in a container. * * @param container_fd @@ -374,7 +356,7 @@ rte_vfio_container_dma_map(int container_fd, uint64_t vaddr, * 0 if successful * <0 if failed */ -int __rte_experimental +int rte_vfio_container_dma_unmap(int container_fd, uint64_t vaddr, uint64_t iova, uint64_t len); diff --git a/lib/librte_eal/linuxapp/eal/eal_vfio.c b/lib/librte_eal/linuxapp/eal/eal_vfio.c index a2bbdfb..bc5c602 100644 --- a/lib/librte_eal/linuxapp/eal/eal_vfio.c +++ b/lib/librte_eal/linuxapp/eal/eal_vfio.c @@ -1624,7 +1624,7 @@ container_dma_unmap(struct vfio_config *vfio_cfg, uint64_t vaddr, uint64_t iova, return ret; } -int __rte_experimental +int rte_vfio_dma_map(uint64_t vaddr, uint64_t iova, uint64_t len) { if (len == 0) { @@ -1635,7 +1635,7 @@ rte_vfio_dma_map(uint64_t vaddr, uint64_t iova, uint64_t len) return container_dma_map(default_vfio_cfg, vaddr, iova, len); } -int __rte_experimental +int rte_vfio_dma_unmap(uint64_t vaddr, uint64_t iova, uint64_t len) { if (len == 0) { @@ -1678,7 +1678,7 @@ rte_vfio_noiommu_is_enabled(void) return c == 'Y'; } -int __rte_experimental +int rte_vfio_container_create(void) { int i; @@ -1728,7 +1728,7 @@ rte_vfio_container_destroy(int container_fd) return 0; } -int __rte_experimental +int rte_vfio_container_group_bind(int container_fd, int iommu_group_num) { struct vfio_config *vfio_cfg; @@ -1774,7 +1774,7 @@ rte_vfio_container_group_bind(int container_fd, int iommu_group_num) return vfio_group_fd; } -int __rte_experimental +int rte_vfio_container_group_unbind(int container_fd, int iommu_group_num) { struct vfio_config *vfio_cfg; @@ -1813,7 +1813,7 @@ rte_vfio_container_group_unbind(int container_fd, int iommu_group_num) return 0; } -int __rte_experimental +int rte_vfio_container_dma_map(int container_fd, uint64_t vaddr, uint64_t iova, uint64_t len) { @@ -1833,7 +1833,7 @@ rte_vfio_container_dma_map(int container_fd, uint64_t vaddr, uint64_t iova, return container_dma_map(vfio_cfg, vaddr, iova, len); } -int __rte_experimental +int rte_vfio_container_dma_unmap(int container_fd, uint64_t vaddr, uint64_t iova, uint64_t len) { @@ -1855,14 +1855,14 @@ rte_vfio_container_dma_unmap(int container_fd, uint64_t vaddr, uint64_t iova, #else -int __rte_experimental +int rte_vfio_dma_map(uint64_t __rte_unused vaddr, __rte_unused uint64_t iova, __rte_unused uint64_t len) { return -1; } -int __rte_experimental +int rte_vfio_dma_unmap(uint64_t __rte_unused vaddr, uint64_t __rte_unused iova, __rte_unused uint64_t len) { @@ -1909,7 +1909,7 @@ rte_vfio_clear_group(__rte_unused int vfio_group_fd) return -1; } -int __rte_experimental +int rte_vfio_get_group_num(__rte_unused const char *sysfs_base, __rte_unused const char *dev_addr, __rte_unused int *iommu_group_num) @@ -1917,45 +1917,45 @@ rte_vfio_get_group_num(__rte_unused const char *sysfs_base, return -1; } -int __rte_experimental +int rte_vfio_get_container_fd(void) { return -1; } -int __rte_experimental +int rte_vfio_get_group_fd(__rte_unused int iommu_group_num) { return -1; } -int __rte_experimental +int rte_vfio_container_create(void) { return -1; } -int __rte_experimental +int rte_vfio_container_destroy(__rte_unused int container_fd) { return -1; } -int __rte_experimental +int rte_vfio_container_group_bind(__rte_unused int container_fd, __rte_unused int iommu_group_num) { return -1; } -int __rte_experimental +int rte_vfio_container_group_unbind(__rte_unused int container_fd, __rte_unused int iommu_group_num) { return -1; } -int __rte_experimental +int rte_vfio_container_dma_map(__rte_unused int container_fd, __rte_unused uint64_t vaddr, __rte_unused uint64_t iova, @@ -1964,7 +1964,7 @@ rte_vfio_container_dma_map(__rte_unused int container_fd, return -1; } -int __rte_experimental +int rte_vfio_container_dma_unmap(__rte_unused int container_fd, __rte_unused uint64_t vaddr, __rte_unused uint64_t iova, diff --git a/lib/librte_eal/rte_eal_version.map b/lib/librte_eal/rte_eal_version.map index f7dd0e7..56b4c74 100644 --- a/lib/librte_eal/rte_eal_version.map +++ b/lib/librte_eal/rte_eal_version.map @@ -241,6 +241,23 @@ DPDK_18.05 { } DPDK_18.02; +DPDK_18.08 { + global: + + rte_vfio_dma_map; + rte_vfio_dma_unmap; + rte_vfio_get_container_fd; + rte_vfio_get_group_fd; + rte_vfio_get_group_num; + rte_vfio_container_create; + rte_vfio_container_destroy; + rte_vfio_container_dma_map; + rte_vfio_container_dma_unmap; + rte_vfio_container_group_bind; + rte_vfio_container_group_unbind; + +}DPDK_18.05; + EXPERIMENTAL { global: -- 2.7.4