From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0063.outbound.protection.outlook.com [104.47.40.63]) by dpdk.org (Postfix) with ESMTP id 1567D69F7 for ; Tue, 11 Apr 2017 15:51:02 +0200 (CEST) Received: from BLUPR0301CA0008.namprd03.prod.outlook.com (10.162.113.146) by CY1PR03MB2284.namprd03.prod.outlook.com (10.166.207.24) 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:51:00 +0000 Received: from BY2FFO11FD003.protection.gbl (2a01:111:f400:7c0c::105) by BLUPR0301CA0008.outlook.office365.com (2a01:111:e400:5259::18) 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:50:59 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; caviumnetworks.com; dkim=none (message not signed) header.d=none; caviumnetworks.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 BY2FFO11FD003.mail.protection.outlook.com (10.1.14.125) 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:50:59 +0000 Received: from bf-netperf1.ap.freescale.net (bf-netperf1.ap.freescale.net [10.232.134.28]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v3BDnjGB000706; Tue, 11 Apr 2017 06:50:56 -0700 From: Hemant Agrawal To: CC: , , , , , Date: Tue, 11 Apr 2017 19:19:38 +0530 Message-ID: <1491918578-4902-23-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1491918578-4902-1-git-send-email-hemant.agrawal@nxp.com> References: <1491725483-6619-1-git-send-email-hemant.agrawal@nxp.com> <1491918578-4902-1-git-send-email-hemant.agrawal@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131363922597255537; (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)(39860400002)(39410400002)(39850400002)(39380400002)(39840400002)(39450400003)(39400400002)(2980300002)(1110001)(1109001)(339900001)(189002)(199003)(9170700003)(305945005)(53936002)(2906002)(36756003)(106466001)(356003)(189998001)(97736004)(4326008)(8656002)(50466002)(33646002)(105606002)(81166006)(8676002)(110136004)(48376002)(50226002)(8936002)(50986999)(76176999)(575784001)(38730400002)(86362001)(2351001)(5003940100001)(54906002)(104016004)(5660300001)(85426001)(47776003)(77096006)(2950100002)(6916009)(6666003); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR03MB2284; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:ovrnspm; MX:1; A:1; PTR:InfoDomainNonexistent; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD003; 1:6FCXt9Aev05l7qkwb4wkSG4eUFuZVlrhGrrBUHawRIgUnJr2bWLOc/ycgsW4rek4DZ75hu1lD/vyYujQCKFEk893q4ffAxkifyRjT7luQeriM5DsViKrwncaW11VwbNdX0J8CF2SOYAa9cQtdyWt8fThsYFc4Yp0znuT1i0uokGCGgiQBiI5NMA7hX42T/xR5Vpo5Bg4ChkPIxVZcaiA49cPqheGRNWTTNZ3+l4K8FKnXUZUDJ61LiFvjtVmd8xFGtpklUC+C8LkzMNk/eTGV74DrAUz+aRoP1gL4hoVkAJK9f8zgZl3STA+ysfacXryENrsHy/aKERAmMexDv4N/s7nh/e23KeKT6Xe+YeWS3b69Rrb6UbQ1eJoRPWufLQlqTca3uPrBja7zjL5sxXG69JEp1e4YTWjr3ngoCxTrRVFiTBzdyCHmQVY/m9muvZhUvOAA//dAct8vjTFlwh8bB36B7Su+qf493RVKurkuEIpnWm/69Crb49ES9mfQ8QmznGLrv+W/X7UjgRpk/2LNHwj9UtZN/09LiC/WYmo+Ct+UDbu2tJdZWzWdTfsk3Ppn7PbvoYGwf6l+ZV13RGSCjAAhNYsLOp0dUAL1CsdAYMx11F9GQ9GRaFC0v436LoNTWiXvAOWazQwwCLtPyVf+aVoiVM+iikfzIDIzgEKL+I= MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 28a0965a-272c-4f6b-1971-08d480e1c92d X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030255120)(201703131430075)(201703131517081); SRVR:CY1PR03MB2284; X-Microsoft-Exchange-Diagnostics: 1; CY1PR03MB2284; 3:16Say9S+hq/TZYgzhVX/qDNUbVB9qTeW8N/GVxSRaevUHcwxDs1DpRgVpO0dCg0CJCNJ25O3/ffbSszhPtLB2tpdkLCBYPX1MuZA8PeDGlTuLiHuYTCUdO+4o4ZsdeHuHJHSptro4PrQySr6e6uMbgVZz9v53zmwraj6GUA9M0CBd4N4sif3WHaP7WfIJSvokkBob25qKbYbzSS+OMlstoDWGurIU04e+cASxNi75NQlC/dOjSnfKZNEdJBhEZDVmjnMYufKXrhwP9gCxhlpycUm/h4N9N/oFj2pzdDUPN9BBFZVmJsf3mbaVSpk0gkS6Ju5m+MIeBMbqoM3Mql//rwou0EX/lLUZC/xsW6vhCRVi/M7oHrsJzh+MjrDygJ6jJ8GZFfwdTiJJtkCO2poZF7iEB1wntwcEH9gA63TB8MLSkQn0VYeKy42sKQuzyJVWDTda4Ci0hbFAtDoGcIA1Q==; 25:xozyPS9liPcUHLbbLY/3tJA3n7pwjBL+vnRDR4TtrvooOh8Mxl1nlCixbSh6vTfO8MB8XpVE/EHAyXGFj7gV20zxVkWmdXHpOnCw3EP7QHHE+sKHkFvp7HG51yzjweBiBXzy/VzJLjXEiNinxqwDqsmwjfcI/ZtCGpBKz0B7WQl879ShlwJnCdEhGmYu5tgzNGckeN9s63jVdnb0Wm5/h5Xng3KpR/4yqJpYsgVhXa0ctoLggO2W771kJscId+LsgikZxJVi3DFn/gvQTAHx0xHPYMKECW4DARovN7G8BZ6Nb8o6jNWwZoFlBe3lpcY7OcC57dBhbn80ImVSxD2QEZ0UeM7/HEhGC4OIsfAwlBdoH3MOK/T/5E20yLStU7coDoOp2SLlMSUZ2HG51cMaR4EOBI6VUqEj/FDxY0dW9uqrW3BCRYqONNHfh8PSrKzXN9bS39XJO6dYZwfaUr50Ww== X-Microsoft-Exchange-Diagnostics: 1; CY1PR03MB2284; 31:OmWqSpFwyBlpey19OgLhxR0lnsloTHU74vFUdnRQ3VOOgk+tjnifldvx+rwk7w8DR7HjEERtnYd3+3/kIBW6kOLplWxSFO6aOcz2HjuzIpCvEL5i8XPuv8/L2LoHy/llpzpBH5p8oWfCavvp9tlFoQYLBygDZHwzxCjLw5ZWAA/f6c3zGMd1EVG19lWvjxHiCRQXPzHVzj+vp5B1Kzu4H2BXVu1TcqaKkYDb8t4H9LIW1da5xxcXUWUkJH4jTLl0/ABc6RGsiAFkXzNJmSyDTDtEcA3piGKMGyLqoNoSTZs= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095135)(601004)(2401047)(13017025)(13018025)(13024025)(13023025)(13015025)(8121501046)(5005006)(93006095)(93001095)(10201501046)(3002001)(6055026)(6096035)(20161123561025)(20161123565025)(20161123556025)(20161123563025)(201703131430075)(201703131441075)(201703131448075)(201703131433075)(201703161259108); SRVR:CY1PR03MB2284; BCL:0; PCL:0; RULEID:(400006); SRVR:CY1PR03MB2284; X-Microsoft-Exchange-Diagnostics: 1; CY1PR03MB2284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SD1B9RgWFCwFITb1sWd0TE6ReKffI0rKcCKx1IZ/6h8Sig0duqbyeEqW; 24:d9I/1EWat8jVKVIYrWRIWsLwvHWZprMOHvrd3Iu6sDCqepGX+AmQjj+TZTUq+7lWe4hI1i8pIQAlfSL33aFA2/RubnnyWYXxrWPTbqXINGg= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY1PR03MB2284; 7:OXSUAyIR7F0AJIaHx3mSr66VLIoZ3ZnrCeAttiZXdIiT3ie0E38m01YJBj0LMoQmisZsWHm2YDd9+K3Aou4bi7MxSmvbuCDswdzyiAHTicVNWId9lFC+4wB3nva7i166HY0HlimE6OtXsvvlgK7QlYnyX7FOapgHTbP29YGduQfh+i6GatOoIE0n/L9F2homoKjsXk6ozJ4zBh0XOq9UHkQVkVSkjQdxwoV7F+KdZvrQeN4aS1Uqs7FzOWV1UHfY5oaTkTgG3fT7a+raMc1EAuvpl/wApi7WsuI7NbKpPNXt6M0f8szLMXxnvDfB0J6CWsHRPHpk+rLIy4Tr9vqwfQ== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Apr 2017 13:50:59.5227 (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: CY1PR03MB2284 Subject: [dpdk-dev] [PATCH v12 22/22] net/dpaa2: enable frame queue based dequeuing 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:51:03 -0000 Signed-off-by: Hemant Agrawal --- drivers/net/dpaa2/dpaa2_ethdev.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/dpaa2/dpaa2_ethdev.c b/drivers/net/dpaa2/dpaa2_ethdev.c index 999d0ad..4576442 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