From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0070.outbound.protection.outlook.com [104.47.41.70]) by dpdk.org (Postfix) with ESMTP id 4B27B2C1A for ; Tue, 11 Apr 2017 15:42:52 +0200 (CEST) Received: from BN6PR03CA0047.namprd03.prod.outlook.com (10.175.124.33) by BN3PR0301MB1281.namprd03.prod.outlook.com (10.161.210.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1019.17; Tue, 11 Apr 2017 13:42:51 +0000 Received: from BY2FFO11FD026.protection.gbl (2a01:111:f400:7c0c::125) by BN6PR03CA0047.outlook.office365.com (2603:10b6:404:10c::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1019.17 via Frontend Transport; Tue, 11 Apr 2017 13:42:51 +0000 Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=nxp.com; intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=fail action=none header.from=nxp.com; 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 BY2FFO11FD026.mail.protection.outlook.com (10.1.15.215) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1019.14 via Frontend Transport; Tue, 11 Apr 2017 13:42:50 +0000 Received: from bf-netperf1.ap.freescale.net (bf-netperf1.ap.freescale.net [10.232.134.28]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id v3BDgkon027977; Tue, 11 Apr 2017 06:42:47 -0700 From: Hemant Agrawal To: , CC: , , Date: Tue, 11 Apr 2017 19:12:38 +0530 Message-ID: <1491918159-4152-1-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1491724786-6468-1-git-send-email-hemant.agrawal@nxp.com> References: <1491724786-6468-1-git-send-email-hemant.agrawal@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131363917706447668; (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)(336005)(39410400002)(39400400002)(39850400002)(39380400002)(39840400002)(39860400002)(39450400003)(2980300002)(1109001)(1110001)(339900001)(3190300001)(189002)(199003)(9170700003)(53936002)(36756003)(50986999)(38730400002)(106466001)(4326008)(97736004)(76176999)(50466002)(48376002)(53376002)(33646002)(77096006)(305945005)(54906002)(2906002)(8656002)(105606002)(6306002)(966004)(85426001)(189998001)(86362001)(6666003)(104016004)(356003)(5660300001)(8936002)(8676002)(81166006)(2950100002)(5003940100001)(50226002)(47776003); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR0301MB1281; H:az84smr01.freescale.net; FPR:; SPF:Fail; MLV:ovrnspm; MX:1; A:1; PTR:InfoDomainNonexistent; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD026; 1:PCPC5cr50E7MSdLfDHRqV++5aOrH098nnCWnvYuTaFj/jLSg1fXv4FTafBtKPQfewPsqDPwY0MQfqglqyo6GXKOnpvYXXom+NqWUWvdJJc3qqIVfw/7E2lt95JUVdYIroghiGBR6HtoUMBOJEevkMfHTYVyjsz2rqrUOD3TX6Q5qNJNYS4X7uYo2CgJYN1pAU+WPZh89FzFpHY3/umOGJAwt/UCV69jyg9f/mTsuYbrqT0xXADHEHRotNYZY+XIiY1uCzuJFtZ/xcwawPOpD5waYTeY/XU2YIdOVYk9z85HRgQzpjhXaNDSM4kgEOj5NhHwCT/p+t0k+X+ca/pcyqeji5+cZm9puuesD/ZYMdziU+cRBjQdhwXb/+8cMLVjk3Kii3mf0G+lj2ehCHEEI9fwJgn8XWhrk/wr9ujp7WGmCToKBqXUXnQU4HgPTr2JygX3m3DkUNUkb4mriHhBhdBdh1eAW1jjFnd3X6SCS3F8HXwiX+6w6FyiH6nz4pZah+WH6vU+wkhpYDTdJP3DBI1fOy+llIPJNw4lvYPLa5kKq/5BQXVt0LLZnS/Pk2QPLYY/E8lQ/ZHY1ZFyWqPmMGlnJrBqEDiGmxfpk2LeNtjWrHrRalwK4QLEJj8mc/tYGT4vOkN5YyX7WUNvqK8htd1+MLs0Ow/PlyXVGC2KTx/ifAQi7bWDkqECqt4yVIusp MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 66142f45-fa39-4e52-e9d4-08d480e0a5a6 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030255120)(201703131430075)(201703131517081); SRVR:BN3PR0301MB1281; X-Microsoft-Exchange-Diagnostics: 1; BN3PR0301MB1281; 3:YwTJgsr816jqciNDf11sxYZutPuXj75ZxTgQGaEO8Y7SxI760JxwnXcjFOnX8H5JQm9zTKYiTS4DpMEiI5thJTHGUst9uGvJzi0kWvADa7sIaCRqOsxLXtdRd2Gjy75lpPRV3eREKvNy1aeGLGdDVk0wKxfNb5fnqZ+eXe/0fD7QseTI/ZmZQRuJwgaVxC7ep2Fx6Cv2XxKFow3id/TzErQiODc7+njsfkhBzXcpSpsx3xu7kD6nEqpZBeL5R+rONZp9ko62/XUfNWK5zEbhC31kZRgUZDhrHXGs64vzfoXQtjflrnopGdVtWVBsrcnusRoC9BTLlUH3ahK2ixNVQoeSp2NWcu8VFCjxFPdyfDTVSt8GxwIgd8Mu/uCE1ZpyUmp4oe6Axzw14F/PC0/6wcBPqV17sNZN/kOWulTOBnlkdfDtlmZrjxRGNJbFlHCLsyv6iBCX/AMKhpOJyDsfiw== X-Microsoft-Exchange-Diagnostics: 1; BN3PR0301MB1281; 25:EKVbbFTsAJTzZrU11Ame8edgBcijI4uh1kWnkyVgSEjzQGCGyFAq0L4KP6x9C2f8e2xt7H5iJ3S/fgstsz+V3sbxpKctn/fcG07jb/AfZ4eAQfQstuBZ4P7g+ipeGxxnzDm6YkyRRDYXPprOA4+SBR9F+bDnXNQ0dCagLbQmzdEeBaDhdBAeNsSqFpA04ZHxrKo9tmc5TcIb+IZGZbqtaZgIXBH5YueJe+EkuLxGPdrtXcValvbJWF15EyvjziIO1b6a3BcwMzyuAEsGhrhplOUw5OJQFZGn+lywoc6aR7634cBuQ+7OOj3y6dSuw4msUj98KjSTB7vIrj0cmDJEJtuycySTpGWzkrYmJ6dl5ke/itv/BsVA9jAP0jNmo7fN+tIWYc+OfugaUxGoPyFoeaw0NPl5aOjzo8vvhl0xYcxyV1clfcnHXWaxiTADck6zr+oH+PSBWWoiscJGMFfXYQ==; 31:9HOZxRtzvJtciSgnthlDPD4LjsVgvctfmKCCOpu0rrPPZe3P9wYMAuEvdNTTnCW1GzTisHWticjGg41sLRChB621n7CEn5pjB1rEdcEUhg9l402VK43l2+YuJi9yt+UQXcdoZQ6DB1eorIiLgpaGo50AijSNRFGmmw87w1QeN7TdjjeNJXJe3tli4nc80tkidQ9c3F9Yw0d9nAA1fTWlSJIJ/5+r3Q/csXOAw9qrtjsxYPXQd9VvoMsDQpFwFiW7x6dCj7NLFB2GIa880F/UmteDknNQzg6ByxNq0N+SrDA= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095135)(601004)(2401047)(13017025)(13023025)(13018025)(13024025)(13015025)(5005006)(8121501046)(3002001)(10201501046)(93006095)(93001095)(6055026)(6096035)(201703131430075)(201703131441075)(201703131448075)(201703131433075)(201703161259075)(20161123556025)(20161123565025)(20161123561025)(20161123563025); SRVR:BN3PR0301MB1281; BCL:0; PCL:0; RULEID:(400006); SRVR:BN3PR0301MB1281; X-Microsoft-Exchange-Diagnostics: 1; BN3PR0301MB1281; 4:pCJ51c9kVs67OKVZalHevbu4U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Yq2uZ5RDUEgQO9sHMkUvl8lh/RRKnq3dMUd3BNrsnembSvoS9Be2WJC6GMrfKIATtLPY= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN3PR0301MB1281; 7:UJobvLh/A6yVVyBaOkgD3R41FepcxmAo161JaPEwHGBMWovvu+hhd8H6bzzKnTIPhhPn9sNvG7IKAEu5tfNB4RinyXByWfEOo/yQ9KAln6VYURINv1S4FbFBL+i2BKCQCEmUPcOWs7vm2lUxERLi7hTjoTf3bGv0cOH2jzSGjnMm/OfZYxYtpdr9ZDG7yTpT+CtWrZUDgnOCe+o/OK6RqtZ8xrbCCP5EofhK1185bIyzxN16cjW8MTaWw9HZb5NNCi6kTAvc2l2As6kt1yRKVTIRGIL+zkse2KHylzM8uv3lm4RHqkHixzfaXFcp3Bra2J0xnncIQM10IBMUke/LrA== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Apr 2017 13:42:50.5199 (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: BN3PR0301MB1281 Subject: [dpdk-dev] [PATCH v3] NXP DPAA2 External Mempool Driver 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, 11 Apr 2017 13:42:52 -0000 (This patches has been split from DPAA2 PMD v8 series [1] as per comments received on ML [2].) This patch implements the HW mempool offload driver for packets buffers using the FSLMC provided DPBP object. The new pool is being configured using compile time option and pool name as "dpaa2". Dependency: This patchset is based on "NXP DPAA2 FSLMC Bus Driver" patchset [3]. References: [1] http://dpdk.org/ml/archives/dev/2017-March/059000.html [2] http://dpdk.org/ml/archives/dev/2017-March/059789.html [3] http://dpdk.org/ml/archives/dev/2017-April/063683.html --- v3: * rebased on net-next + patchset[3] * removed config dependency * changed malloc to rte_malloc v2: * rebased on master (17.05-rc1) + patchset[3] * removed EXT_PKT_POOL flag, refcount modification etc. Hemant Agrawal (1): mempool/dpaa2: add DPAA2 hardware offloaded mempool MAINTAINERS | 1 + config/common_base | 5 + config/defconfig_arm64-dpaa2-linuxapp-gcc | 8 + drivers/Makefile | 1 + drivers/mempool/Makefile | 2 + drivers/mempool/dpaa2/Makefile | 63 ++++ drivers/mempool/dpaa2/dpaa2_hw_mempool.c | 373 +++++++++++++++++++++ drivers/mempool/dpaa2/dpaa2_hw_mempool.h | 91 +++++ .../mempool/dpaa2/rte_mempool_dpaa2_version.map | 8 + 9 files changed, 552 insertions(+) create mode 100644 drivers/mempool/dpaa2/Makefile create mode 100644 drivers/mempool/dpaa2/dpaa2_hw_mempool.c create mode 100644 drivers/mempool/dpaa2/dpaa2_hw_mempool.h create mode 100644 drivers/mempool/dpaa2/rte_mempool_dpaa2_version.map -- 1.9.1