From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0063.outbound.protection.outlook.com [104.47.38.63]) by dpdk.org (Postfix) with ESMTP id 7262EFA73 for ; Mon, 23 Jan 2017 13:02:04 +0100 (CET) Received: from BN6PR03CA0049.namprd03.prod.outlook.com (10.173.137.11) by CY1PR0301MB0747.namprd03.prod.outlook.com (10.160.159.153) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.860.13; Mon, 23 Jan 2017 12:02:01 +0000 Received: from BN1BFFO11FD022.protection.gbl (2a01:111:f400:7c10::1:147) by BN6PR03CA0049.outlook.office365.com (2603:10b6:404:4c::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.860.13 via Frontend Transport; Mon, 23 Jan 2017 12:01:59 +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 BN1BFFO11FD022.mail.protection.outlook.com (10.58.144.85) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.803.8 via Frontend Transport; Mon, 23 Jan 2017 12:01:59 +0000 Received: from bf-netperf1.idc ([10.232.134.28]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v0NC07ev019311; Mon, 23 Jan 2017 05:01:56 -0700 From: Hemant Agrawal To: CC: , , , , , , Hemant Agrawal Date: Mon, 23 Jan 2017 17:30:03 +0530 Message-ID: <1485172803-17288-34-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1485172803-17288-1-git-send-email-hemant.agrawal@nxp.com> References: <1484832240-2048-1-git-send-email-hemant.agrawal@nxp.com> <1485172803-17288-1-git-send-email-hemant.agrawal@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131296465193116348; (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)(7916002)(39410400002)(39400400002)(39860400002)(39840400002)(39380400002)(39450400003)(39850400002)(2980300002)(1110001)(1109001)(339900001)(199003)(189002)(92566002)(2906002)(4326007)(2351001)(104016004)(106466001)(105606002)(33646002)(189998001)(305945005)(36756003)(48376002)(81166006)(81156014)(77096006)(8936002)(50466002)(54906002)(8656002)(356003)(5660300001)(626004)(53936002)(6916009)(110136003)(38730400001)(2950100002)(6666003)(5003940100001)(50226002)(97736004)(8676002)(47776003)(85426001)(86362001)(68736007)(50986999)(76176999); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR0301MB0747; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD022; 1:oeDD6v3O8iRR/CyXbgM+xHzxqlSk/mg1dLyjereU18ISfPESjaD8hZt43nc9k2PixaSAoskpLtMFeHkEQbaMO4CJPCa2weGSaVpcMcZkTqpVENM0fGAdBiDVJnztyxHxWQMkDKg1ffL1F8ITS+QFANsPRiVuxAbWvOsXJQqgOqZ9WUSuTgb2VHAzuPZij73fh91IPcK+R1UXa9Ke5AoMRed9+FGIfXAv8LapuCb9xVeY7MxPq4BDyuE42Zmr8aP41tja0+DBuxLBiwDR9kGDLX/SCTH/hgBlcXWqBygU7gMFdH8u4aZfWTeIS3wYxRBMid/mgE5ULExvb9HfR4AgxdOn8HeJgvd5rNhZ8iqN2JSwcopXUN4c5OTnPBIIzbkhwaXqNQr16sWTgLZa+m9lU5NtFJBRO7Z5yVb74pnFxDHEiyzUnp8/BzfWqKqc4kYWDmv6zSNpPkTIGMdsUFttSVG2iybbsCkoQxB8tSclaccoLaNFpGKs+1raVS5uAW7I0H2uQIv8Bll2hu4lIWwKV7Qkbr16Y8Q2mgAhbTy2TcX0G5lJ0gxY99f5oNg1mZLfzWaKPpjfASNkjodzmAmOaP1dBLxylVZJwPacSPSSUGPRQWVN+94FQK6uJ/Tq9r5f3MAdp8raqCbfQotIWGJ0yE0HpsEitBp5V4Ht/46CpIlj+tATS+JTBLfPVxdJwzuVWwtSuD3xnaWikAipn129yR5oLHbFlPKFg8OShPEcC4Hqu/ROOFM1qX0hlRlYgRxV MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 86ffcded-4adf-40e8-415e-08d44387a28e X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:CY1PR0301MB0747; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0747; 3:mUa4tVluraqYalhlr9nwPm8rRgGk2dPQkiZBOZH5Z81se2UY5jGZvJhaj0DnogX5nLzl4U8NZ+JDBHX+NnEwgXaB1Os9b/13wdduuuLt2JnD56SDEZtxD4WbxS6hl38jViUGtlCfQ/qlNNHSDCd6EdnezdR9EBIC/PT/q0FCwOcTl6RQeVL7K57Ikc1UUwR4fyR0eF9ArOPbWCrvdSOA0odNccKZGSOwrNTqZZqBcE5sF5pY0g+vGn06aD+/xhPUW4r5DHtPnNBDAMDGByNa1lmQYQEEZeuw/MBxH4tJtI9fdTK6J6slGwOxttUOCM+ErmRMmVh3V2TUYeYb3kzcGZc2SiOUPGaByPW2Eo/WCkXocRSiOiuUlE6pUXpV4YUR X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0747; 25:+It/Y839NwdOLfu9L7FniOmQrqAxzPcWzwgKyGFouf/nO3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X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(275809806118684); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095060)(601004)(2401047)(13023025)(13017025)(13015025)(13024025)(13018025)(5005006)(8121501046)(3002001)(10201501046)(6055026)(6096035)(20161123561025)(20161123559025)(20161123556025)(20161123563025)(20161123565025); SRVR:CY1PR0301MB0747; BCL:0; PCL:0; RULEID:(400006); SRVR:CY1PR0301MB0747; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0747; 4:DjrBgZ6TRkuL7Uc0e7sucDTLH6KeLN4wG5owwbZgbd+KOHkBUkdB3IHisclVGQZaXN4R1FZ9sb1ciE6ghbVkfIZ7aMqy6/yax537/Kt8wv6NzAZj2PFo02pSsJhMdqR/cgMbnvGf7CvNoNqC7Zd441hsBUrQuC76PP1UnktFTs/eioFk6NBLrOjCksk5nBxCfzBxrnEqC+UZWHbgt1l+QGS0uqtI5fMoWgRVgFQYxppFb75C+Sx9c16TyCrMapTZ546gtFFsOJ689wVV3JTvrh/tAduEyBZIX8mb/LnJwOhguQCm5RIE1Bovd/ydHZDON6mh6TJVgkgRwl6MbF8PCa/JVTHJrm0ymaYVn9vf7ahXl8mUZhcjXmf6KpaAKf/muIB9RmCsqy/gxWCFzknSnrcMRmEEpRsSIu7QturID2efraj3lsAFIpI05lkisOsAhT2818tJ17sRpkQrlkt0PJiFWe+iTCntRoJ2+oJHW/trmgCaQv0ak/HrftZTBZhFumT5lOB8XdOLpXsiY5hbfJw2q9LdXsEpe+63cOfp75ESCFlSnv9aqNH3hC7bCB4U0rF+Vdo56VuiHdL7pkODucG7+0ZAFlIINX63Nu8/vTOdjUfCQB46vkYGiSSKqfZ3kysEfm9EcaKTz11A8CLCFiKnb2GxGhzu0I1LTnVS3wFKGj4v22dUSRm1QHOJiEEYZJs6dx4tdQvvFC/wIBGclIBjgNaurHQjvacaZphSMYKd0yl8pBOdcGM9j3XOuy0wcUhsN2wxo4Gd1qL6aU8f4Q== X-Forefront-PRVS: 0196A226D1 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR0301MB0747; 23:xoUn6mVvyCPvhoT8ZgR1Y2obn+DilDiNRdfQPEi?= =?us-ascii?Q?zqilMq4MzvG9W53td07YugHUptgiv1R52BeuIlXjUqM2K0FX76MH7TIE/hIn?= =?us-ascii?Q?lHnl0a/uvO/yAPjCjniyzeWO4rRQdf8V2wQPlWFpjUw9wQ81OeaAv3dOkO6H?= =?us-ascii?Q?6BOZeDI3Nn0Je0H5ESBFfg3WnsHzR1SzkpH369g/I6Qu2+3cijLQFkW6Uzdb?= =?us-ascii?Q?sXDDLVxybB6dfdGV7wspv2lZSOkzI6gmuJKI+y5P3XS+hN33WzrHTMOswmOV?= =?us-ascii?Q?b58zhFmgOjW4eL6JRzJH/LFbGs4zdx0JLQBCN/p96bSX7CvD6b0WFtsrFBCG?= =?us-ascii?Q?Go0sri8NOlxannhpvtwiZO39+5wEXUxlSwTupLR1rOtnen/dodurkK9dlvm/?= =?us-ascii?Q?Pg7aE3ritERi4oVKB8U/EaJ0JUmdPtG8noAAcO+LvDyglO3OQyGpzd2rJkvn?= =?us-ascii?Q?vO5KozJIPs4nkDAQ8UHe7956vAA5qrFdTWB1KfFhYo1gzGiUT0CaJJOL7k3m?= =?us-ascii?Q?ZqtG8Y1fMN5oV4FEGel3ytRGnsEHH874KrC9cj7gfCHKKuk7zMu1DvURF+A/?= =?us-ascii?Q?ecfWEmvbNq2td7YEUOUp4Xux3JxDyGZijNHdWz+koOhCcFvrTftS2huzjL0M?= =?us-ascii?Q?ktAwBeRZTDOeq13lbp0atY4SbVcRy7uSc342DsGeQeQ/fhKxIeaGCUdvx0VW?= =?us-ascii?Q?9XhTgECYpad4A0NnF53M/LXeTTvLU0YHuALdMbQ2w5rbQOGIXsjY0njVwozD?= =?us-ascii?Q?YRpCA/pp6wDdpxrVIuOfThYoy9SrvWqK9QEAXJybLWkrgThlMUadtxCF1tv9?= =?us-ascii?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M3utXReWIOFVzlgnxuCkAAsATOyAqMFuVAWrZJooYzc2; 5:DIipw8oapvIOS4ZBz3CUTKziZymOP6sMO/fAmZgMKSx7QvX1ILuCtrokJfz7g9Tt28W+t6YsT4OqIDNon3R0Ss6MY6o1Flssy2cdIghedNl0ENMt2lcY8VDd4rHc8H+YJ9OIlVJQDkktlpH2a/Z3/cDQeMrOtjt/Mnk+MKfmqd/2fi35C5S+Y3zTdgajL+vb; 24:IvfAPB4O8SsNYABrm8akaQPX5IJ/uY8kEituBPW0VAz978XLi5Lb1PA8mkOTw9hlJraeL4OI08ggWjXh6P1mOHv8DGiPiXoiwh5sbI1Vh+0= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0747; 7:MuRXQU8csIXdMmIAFsH7K1Qu8FcNTFBq1rTPUh8ZPLF9D5monxLjX9Fzf6cabhIWX/Ncm5lRxqARfuvSdtJjz8CgBAaG1LgCMV/e8Fqik1O+dfGWsLjN3ebWISPovRF99Ls2FVU/tYRpc0w9Ltif9yTJldYCM/FLvXreeL5HeS9kUCngnOMI3v2qLyEN/dlSUr9qPbdTQg8cKoNDtr4jKudJ7TFRajNaYBndq7Wg8vUfX1qs63Dx9CYBEf7lFeNsm6xb2rq4Rdyq9m3gmLi/WOGIdlVuFydyCPg+M/ZM5GUAO8pL9NVPwZODqdKYGQh80nX4CHeBaEKsGzusZc9NX8iQy4vb5PvwwsUXjO/oOuP/NbAVnaHaX6EYWhkTXxuurzA+gDRj0AGUktPFKkwA8nEV+uuiWV8G32WoKHiChJUqel507W6hZBSozUe3U+7Ni+a+Q7WM/8JQjrEUzlAiHA== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Jan 2017 12:01:59.1244 (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: CY1PR0301MB0747 Subject: [dpdk-dev] [PATCHv6 33/33] drivers/common/dpaa2: frame queue based dq storage alloc 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: Mon, 23 Jan 2017 12:02:04 -0000 This patch adds generic functions for allowing dq storage for the frame queues. As the frame queues are common resource for different drivers this is helpful. Signed-off-by: Hemant Agrawal --- drivers/bus/fslmc/portal/dpaa2_hw_dpio.c | 32 +++++++++++++++++++++++++++++ drivers/bus/fslmc/portal/dpaa2_hw_dpio.h | 7 +++++++ drivers/bus/fslmc/rte_bus_fslmc_version.map | 2 ++ drivers/net/dpaa2/dpaa2_ethdev.c | 8 ++++---- 4 files changed, 45 insertions(+), 4 deletions(-) diff --git a/drivers/bus/fslmc/portal/dpaa2_hw_dpio.c b/drivers/bus/fslmc/portal/dpaa2_hw_dpio.c index bd1f643..c80d6c5 100644 --- a/drivers/bus/fslmc/portal/dpaa2_hw_dpio.c +++ b/drivers/bus/fslmc/portal/dpaa2_hw_dpio.c @@ -407,3 +407,35 @@ static inline struct dpaa2_dpio_dev *dpaa2_get_qbman_swp(void) return 0; } + +void +dpaa2_free_dq_storage(struct queue_storage_info_t *q_storage) +{ + int i = 0; + + for (i = 0; i < NUM_DQS_PER_QUEUE; i++) { + if (q_storage->dq_storage[i]) + rte_free(q_storage->dq_storage[i]); + } +} + +int +dpaa2_alloc_dq_storage(struct queue_storage_info_t *q_storage) +{ + int i = 0; + + for (i = 0; i < NUM_DQS_PER_QUEUE; i++) { + q_storage->dq_storage[i] = rte_malloc(NULL, + DPAA2_DQRR_RING_SIZE * sizeof(struct qbman_result), + RTE_CACHE_LINE_SIZE); + if (!q_storage->dq_storage[i]) + goto fail; + } + return 0; +fail: + i -= 1; + while (i >= 0) + rte_free(q_storage->dq_storage[i]); + + return -1; +} diff --git a/drivers/bus/fslmc/portal/dpaa2_hw_dpio.h b/drivers/bus/fslmc/portal/dpaa2_hw_dpio.h index b1a1b8f..f2e1168 100644 --- a/drivers/bus/fslmc/portal/dpaa2_hw_dpio.h +++ b/drivers/bus/fslmc/portal/dpaa2_hw_dpio.h @@ -59,5 +59,12 @@ struct dpaa2_io_portal_t { /* Affine additional DPIO portal to current crypto processing thread */ int dpaa2_affine_qbman_swp_sec(void); +/* allocate memory for FQ - dq storage */ +int +dpaa2_alloc_dq_storage(struct queue_storage_info_t *q_storage); + +/* free memory for FQ- dq storage */ +void +dpaa2_free_dq_storage(struct queue_storage_info_t *q_storage); #endif /* _DPAA2_HW_DPIO_H_ */ diff --git a/drivers/bus/fslmc/rte_bus_fslmc_version.map b/drivers/bus/fslmc/rte_bus_fslmc_version.map index 505873a..4298d77 100644 --- a/drivers/bus/fslmc/rte_bus_fslmc_version.map +++ b/drivers/bus/fslmc/rte_bus_fslmc_version.map @@ -4,7 +4,9 @@ DPDK_17.02 { dpaa2_affine_qbman_swp; dpaa2_affine_qbman_swp_sec; dpaa2_alloc_dpbp_dev; + dpaa2_alloc_dq_storage; dpaa2_free_dpbp_dev; + dpaa2_free_dq_storage; dpbp_disable; dpbp_enable; dpbp_get_attributes; diff --git a/drivers/net/dpaa2/dpaa2_ethdev.c b/drivers/net/dpaa2/dpaa2_ethdev.c index cbfbc7a..67eb34d 100644 --- a/drivers/net/dpaa2/dpaa2_ethdev.c +++ b/drivers/net/dpaa2/dpaa2_ethdev.c @@ -49,6 +49,7 @@ #include #include #include +#include #include "dpaa2_ethdev.h" @@ -169,9 +170,8 @@ memset(dpaa2_q->q_storage, 0, sizeof(struct queue_storage_info_t)); - dpaa2_q->q_storage->dq_storage[0] = rte_malloc(NULL, - DPAA2_DQRR_RING_SIZE * sizeof(struct qbman_result), - RTE_CACHE_LINE_SIZE); + if (dpaa2_alloc_dq_storage(dpaa2_q->q_storage)) + goto fail; } for (i = 0; i < priv->nb_tx_queues; i++) { @@ -195,7 +195,7 @@ mc_q = priv->rx_vq[0]; while (i >= 0) { dpaa2_q = (struct dpaa2_queue *)priv->rx_vq[i]; - rte_free(dpaa2_q->q_storage->dq_storage[0]); + dpaa2_free_dq_storage(dpaa2_q->q_storage); rte_free(dpaa2_q->q_storage); priv->rx_vq[i--] = NULL; } -- 1.9.1