From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0063.outbound.protection.outlook.com [104.47.36.63]) by dpdk.org (Postfix) with ESMTP id D15D32C01 for ; Sun, 9 Apr 2017 09:57:38 +0200 (CEST) Received: from BN3PR03CA0072.namprd03.prod.outlook.com (10.167.1.160) by BN1PR03MB283.namprd03.prod.outlook.com (10.255.200.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1019.17; Sun, 9 Apr 2017 07:57:37 +0000 Received: from BN1AFFO11FD024.protection.gbl (2a01:111:f400:7c10::126) by BN3PR03CA0072.outlook.office365.com (2a01:111:e400:7a4d::32) 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; Sun, 9 Apr 2017 07:57:37 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) 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.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 BN1AFFO11FD024.mail.protection.outlook.com (10.58.52.84) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1019.14 via Frontend Transport; Sun, 9 Apr 2017 07:57:36 +0000 Received: from DTS-02.ap.freescale.net (DTS-02.ap.freescale.net [10.232.132.223]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v397vXXI001021; Sun, 9 Apr 2017 00:57:33 -0700 From: Hemant Agrawal To: , CC: , , Date: Sun, 9 Apr 2017 13:29:45 +0530 Message-ID: <1491724786-6468-1-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1489754838-1455-2-git-send-email-hemant.agrawal@nxp.com> References: <1489754838-1455-2-git-send-email-hemant.agrawal@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131361982569412977; (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)(336005)(39410400002)(39450400003)(39380400002)(39850400002)(39400400002)(39840400002)(39860400002)(2980300002)(1110001)(1109001)(3190300001)(339900001)(199003)(189002)(9170700003)(50986999)(54906002)(6306002)(50466002)(76176999)(106466001)(105606002)(305945005)(47776003)(5660300001)(966004)(53936002)(48376002)(2906002)(53376002)(38730400002)(104016004)(36756003)(77096006)(4326008)(33646002)(85426001)(86362001)(8936002)(8676002)(5003940100001)(2950100002)(356003)(6666003)(50226002)(8656002)(189998001)(81166006); DIR:OUT; SFP:1101; SCL:1; SRVR:BN1PR03MB283; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:ovrnspm; A:1; MX:1; PTR:InfoDomainNonexistent; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD024; 1:/f1SBGa06kiQdoBiX52cDxpgWQ/eoZ+dBVDziSkaPfkAh9nzxatbXcY5zp2P8sei2dw88SmjuHYLWd6x2OZ281e+y4jVepgKR26iYDsa5p4yP3plnHV6a2M10Sw/DBC2pN6MBNbDpsHYQJ7L98mvA5UmGdAtWvmVFrDh4+KKlskjV2z4GGtpI6tSOT4ccaik87ZJClf8jyiGHci1mcJk0iYPMj10BM53Y1L+jjlPsyXvhutKhKmMqd3k4vZb/8urAcF9plGH0d3J3F+cWsmoObKqyRKJeR7r5LiwFLEVvjkhNzV3u1N1yUoOj3B3gCHg2gjjqN5ztmd4xtIe9kEHOgk7lzT6Nf7A+vHnrZyoocdVjVWmNyhBHWkgPlLa2ET2I6yAld4PAetVPBGiU25zs/M20l2ovtj/6l8iAksMr9vFIIHH1KQRGx0WX5UTHmHVQn45llUhYXhVuWM51Klqky72hBw8pVz9xCiUggcWDVhKk6qjyxD5PJkjkGrKCb5d0XKvBVPEuR+QM/Fz6QH6+4SxWX6dp7YRRLPtdVIN70rikOTOWa7C07oWFjNCoTRTfx3yuxzruqtqVh4h0PjFhe/FGD4zhfj8SNuHPE+LHbIKL4oT/9Uxih2aDR/DqAU7NHfOQNxyM9MLJrnnrXMad75a62v2qCp/SOLNqFONpfC2DwoPwvpq31b+eYN/S8Fi MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: c387cbbf-e9e4-4bf7-7971-08d47f1e1681 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131430075)(201703131517081); SRVR:BN1PR03MB283; X-Microsoft-Exchange-Diagnostics: 1; BN1PR03MB283; 3:YJqXFKT4bHI+Juck0nH2YjMoaW8CBNIXbhOSgVBHc57/K5o5WPWTUN3iAYrEXBdFC5JUAQIKEJJw0iROt/LKYO14jBgqoGlccIewAFakD+jjI6BazleCsLMyaXvxBNTrYyA6Y8vQprNO5/xvIZG6aZ6nnyUHOhtfqeIim0iG+wGtc2wfvB8Ls3G6qb8TfIKEy9gYaPJjoLchlnafUOfTkzHL7QQA70qJ1kDBQrrOJXspmCFZTosq8FzhqqicR6VYVfQ8QLp3vJC3fRX689xvqYYodU/9dIDS1/31AB4aGf8gUlhAKg2uSA//Gs3HPnLGKWi6vE0D8FiK4JvBx0Ch5BUYKNPn3fTF7vScRmhiwl4KEdXTPXMdL0otZYarfgzqfu3jgaXk1I0ufE0tg9SpD/r0rRov4tyxs0gDygDl+Gpi9VXE7PlK9+ds8xjfQDSE; 25:7/4H04vLRDhWzndl+QQWYc8pyUSGckwQ5MjtN5FDgfUC1wK8J1v0j8/pZcgn0+nIO8JpG15tigSwt4qAgEUGLT2J3VGeFyI253jXNCz9oduln89H7ZjydCOUmgl1p2Cq1jVNZEMB3mTLsmqvamCWvrOQtz/ueGbPxzAUb5ITPaRyCynqWItOAvLk4ixPRKPgbb4jRG5jGotjX3LiWPVfVAAmrr6V9sr6/KjD/lyDoddJCGt+y00Mxt201DEfLAwsDn0UGPZ6ty/Cqkvpy1XeCvrePL96EprX1lVwpfd9K7/ganq0SuSX7w4kXKclYxqyyM+m+RbpQFFv2fHSzFH3D8qGzVdH9KKp/nyPhvmiIKaCI6X3+2S70sxVCTcWnkJRy9oXGxtHBxaQJ9iN2lZenzKhveiOlwfChXWIfkwj4la3uoZJwOp/hjZH075eb+ErZyXiWKCr6jFHtW5pR0b4Yw== X-Microsoft-Exchange-Diagnostics: 1; BN1PR03MB283; 31:Uih0Ug6Ty6q6tW0tY4YwDjG+5B1GdWKALIm2VTPB1JPBs6QxbyJkJl9eR7u04ZaWVao3IM1VnEXwkVIx1gZm9uetCLdSNgOAtMxMNxrBXaUJk9q3MWaV05+Zzu9foKLMvveDRj9HJ50OQ5L8i0k2cSJNWYkCo+gVA7JFGJH8443krhEDRM8tfiWNgdBW47X6MuNrm8B+4PsoP03VjwkzylCiLezsk82l+pGefGdsDXRV3eeSDyVjvR/hy23RgHRl/tqFxp4m09OPDh3YVxNnntcfBBZxJfH8IxEl4l75yeA= 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)(13015025)(13018025)(13024025)(13023025)(8121501046)(5005006)(3002001)(10201501046)(93006095)(93001095)(6055026)(6096035)(201703131430075)(201703131448075)(201703131433075)(201703161259075)(20161123565025)(20161123561025)(20161123556025)(20161123563025); SRVR:BN1PR03MB283; BCL:0; PCL:0; RULEID:(400006); SRVR:BN1PR03MB283; X-Microsoft-Exchange-Diagnostics: 1; BN1PR03MB283; 4:78qBJqbNhn0dksg8vXSU8ZSOs9hPJGQRBzoCyyGhUn+sRSZPb8CABSAX2g0uvr/41Uf3ereIz9Sr7pG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ticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN1PR03MB283; 7:+gNYmkbL/xmKzByrYiyKAs0iZScNGNsUbfn3GD5AuDYBQpTfFxdSrQL086wtQONU4e8PC5TL1YNox1EicG5ZceGebV4/sMktmMTijBJOs55icrz8piuxS2V7vuHyjhj6BP7g0+ly155Mc2PAJrrCFBelhDcH2BtZs0bJW28pA/kGjIcmoMX7SQ1uiM5vmQUJCJUxQb/JpQ0tOCO4PMYFKoawj7yxnLHvKcd+3g482dFmXu/+mtFjPTFKRqP3r6Avl4vnscwxNhHIwayxH2ffljtUVSUWpa5PWcIpaf2Z4c72ZXuSTohwnA8FXZ6GgstW1LSQ8JfmXfEe8jJ7TG5SZg== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Apr 2017 07:57:36.7541 (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: BN1PR03MB283 Subject: [dpdk-dev] [PATCH v2] 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: Sun, 09 Apr 2017 07:57:39 -0000 From: Hemant Agrawal (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/063480.html --- 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/bus/Makefile | 4 + drivers/mempool/Makefile | 2 + drivers/mempool/dpaa2/Makefile | 67 ++++ drivers/mempool/dpaa2/dpaa2_hw_mempool.c | 372 +++++++++++++++++++++ drivers/mempool/dpaa2/dpaa2_hw_mempool.h | 91 +++++ .../mempool/dpaa2/rte_mempool_dpaa2_version.map | 8 + 10 files changed, 559 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 -- 2.1.4