From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0042.outbound.protection.outlook.com [104.47.42.42]) by dpdk.org (Postfix) with ESMTP id D8244D237 for ; Sun, 9 Apr 2017 10:10:28 +0200 (CEST) Received: from BN3PR03CA0067.namprd03.prod.outlook.com (10.167.1.155) by BY2PR03MB287.namprd03.prod.outlook.com (10.242.37.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1005.10; Sun, 9 Apr 2017 08:10:27 +0000 Received: from BL2FFO11FD033.protection.gbl (2a01:111:f400:7c09::141) by BN3PR03CA0067.outlook.office365.com (2a01:111:e400:7a4d::27) 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 08:10:26 +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 BL2FFO11FD033.mail.protection.outlook.com (10.173.161.129) 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 08:10:26 +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 v3989Ap1015502; Sun, 9 Apr 2017 01:10:23 -0700 From: Hemant Agrawal To: CC: , , , , , Date: Sun, 9 Apr 2017 13:41:23 +0530 Message-ID: <1491725483-6619-23-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1491725483-6619-1-git-send-email-hemant.agrawal@nxp.com> References: <1490362538-20854-1-git-send-email-hemant.agrawal@nxp.com> <1491725483-6619-1-git-send-email-hemant.agrawal@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131361990264593405; (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)(39450400003)(39840400002)(39380400002)(39400400002)(39410400002)(39850400002)(2980300002)(1110001)(1109001)(339900001)(199003)(189002)(9170700003)(4326008)(85426001)(8936002)(50466002)(86362001)(53936002)(48376002)(54906002)(110136004)(38730400002)(36756003)(2906002)(6916009)(2950100002)(356003)(189998001)(104016004)(33646002)(305945005)(47776003)(2351001)(5660300001)(8656002)(106466001)(105606002)(81166006)(8676002)(76176999)(50226002)(50986999)(5003940100001)(77096006); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR03MB287; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:ovrnspm; A:1; MX:1; PTR:InfoDomainNonexistent; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD033; 1:XfnMXyGWIrZ7mRhue4vBUXUd8byqA0Ab9wJmW4edXl+mfMq4MfXXQ+bRtGfbv/jx9vgE6obx1EDMa1++55gnfScXXm4UbQOl5EpHuwSJh71fQNQ6ypE0PA7ZWHFG83pVw1VQ8zyIHaVgLBiKfoyNkMLgGbOmrQ1cHptNg9DkOj1PSJhtmY8sIWZpzQypiXzLGWK721e2AZzKuZ7zpFSBbvgIeBDy6PwDok9FP77kpk0etl3HelViFp5GnGUmUAtp1UN3eyYkCSxc52jmKuqkEZ28m6mL7q0v6j6G6a8nRmn3ldtZ4FwyOKMqEjYdr1wzIv0FWAiem8xA/Oie2srXqJVyLqYuqTJPVGwRkm58dTTUzPqnhTbPIqYP6Oa2gVDLaaR2aviBBG/XHmFDmFLXXtLp9C+TRHFPU8iHfY7aYeh3AqvoC0PbqB7ga+jsCAg77/RH15U5288yB6fVNO6vJye3l2xolqQEVQitzBaeJ0wX11B3ZxDXFwIl2ngeC2bpD3LfKAV9/fAx3yUu8Er1zhF/X4epK3F5T+qpGk2QoLyMsZqniF61vT3wyVHvP1Vs8/jpyK588EMsQbS6Nj4/F7OAMnIjWrMvjcsiB34n0I4IG6sUojVV5Id0Kj2nrtbA49ykioVh2IUASoJdnMUT0CyA/1yJseW+A2n5V+I0H/U= MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: db592b42-4cf0-4077-3a9c-08d47f1fe12a X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131430075)(201703131517081); SRVR:BY2PR03MB287; X-Microsoft-Exchange-Diagnostics: 1; BY2PR03MB287; 3:s3GNK85FjBGxaHYsUpBSss6MFv4qKNg9uPVBvWLjVorgvQJ2iJqOEvKy7cCsoCu+hB71n1YOyJfh+OvicK+/UXxMaFGZG9wmk6aqeZ1rY5eK0wLVgojye9rv5Gvi/yyEuBAYT/F027VHgg16hmDlBy2ATVhQ3dFdGu1CTCp4zMgmu+hCRW1qwiQMSMK/xIZ9RbsookBe+WXnUmRonDRbc4vNMojU5kMAB/klO3PwZLcsnKX+0p3uDJA6S8Srfhuv/CMyBYqE7YojPTgKuOrMLe7tmE9k44jIIc8LuuFNO+HPqEUq8MYMeYdnnczoWlinnI0bUS3gfg0tRIJ2sfjqEnf176JwwSpZM62nS2A0AqXyeUUDuxFuHUu/WLDGkQ13GAq+5TnrVIOZnPSWJe5GUAL4CQXs2wJiJkYdevFm8pM8TcPusZggUC4uUp01jtSz; 25:o+KvN1AppJFu1Hcb4LfK2W8RPNxKCvChKKnuTzPEcQ2zsq4t8WZMGK6BHT1tJeZtZyoTPG/AEYAXoPAK2VM4sgvjTnPgEqKZU5k7wAn7JUgzQFrDPqszBdoxFGF7vLpYfj6mjrNzymcuCvzVXiD4sQhi/jHbhzh9qbrGQBqoGlJqIV60kaD2zMUXG0DdIZNM44t4gXMNn9dhNjTm+akJ56j7gYKDzE9OGoIDjmwJLYzn5dUrugehvC2eb48WNxc5vH52w9uOmUczX4PxQC9uOuYnpHb5riirrXe8SRx+5g68IoYaDzMpVCiQ5BXf6DjXp/rd3LS6tmj28c4cHdd4fK2UBZMXIalH3F++SsJY0dPdMu/3yoiVjL1ZVMNfF4mMlI4dT835c+PvMnnY08frWQF26i7dEX2hcWPRRnBxcAY310/CPQfznyjZig/le3Jeeo/5ngujkT2OklQ6IjWUyA== X-Microsoft-Exchange-Diagnostics: 1; BY2PR03MB287; 31:kHn0I8uRqtohpOfFs9O7NKAqSVQMXP9BG7gc3qP9kKnJg1pcWoM/IgDOE4HGPLbD41D0wAstqtRpYaEm6wX2ByNMAvqSQfr3ofORxTHCiRitU87CI4ketVi5hJnYSOrrF346ezMb3axn09nT/frGC4tqfz3b/BtJxJCD6lmr33NLhBh+UKDxUpxUhpVpjt57BqxVWxrF36JkSPncZn/HpicMo1sAvcJxpC8eZ2mfaVPpQrIDAL+Q+A722nEPQJXJsTzcWoHbr5yW1Wd05f0iJw== 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)(8121501046)(5005006)(13015025)(13017025)(13018025)(13023025)(13024025)(10201501046)(93006095)(93001095)(3002001)(6055026)(6096035)(20161123556025)(20161123563025)(201703131430075)(201703131448075)(201703131433075)(201703161259075)(20161123561025)(20161123565025); SRVR:BY2PR03MB287; BCL:0; PCL:0; RULEID:(400006); SRVR:BY2PR03MB287; X-Microsoft-Exchange-Diagnostics: 1; BY2PR03MB287; 4:ATrRO8A2KHuXxn8o+PM7VwmDjoqMFXyumjYXhcq4u1elUM5Xl/8i6v23idMaBnnPcYYvPPbaCFqHkh96L50wn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put: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BY2PR03MB287; 7:2cZTtFueDg1YKzRJNhat5kL0G4jmFCVn0Jt1diEYAp4Zd4OxqPyAKvwAIxMXNENPkhULtwt7GZlNCJ37mgHAzITEBM2ai6zW0nY+s0o2xgq8RQieYS/KFNZZ7dtRcmCEoTD0UrLxS+EUmwo6WGwVZCShyYuoi368XSofoLrGb4Ar6SsUx9osHIZQoJaEJvo8o/RDWKO9pa0YXJST8kzTMlX3DlHgr7ZPu1ahTlVzyBRReiWiLhGjlKtoheQC5qu355+EFnbe6m+Q743PObR+pMrW/08XrZpCIru5VNlf6WvKthE972NJElXsdBquY+gQ/lg8xTJBMORuLlpo1LnXow== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Apr 2017 08:10:26.2721 (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: BY2PR03MB287 Subject: [dpdk-dev] [PATCH v11 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: Sun, 09 Apr 2017 08:10:30 -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 e7b2745..986404b 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 @@ dpaa2_alloc_rx_tx_queues(struct rte_eth_dev *dev) 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 @@ dpaa2_alloc_rx_tx_queues(struct rte_eth_dev *dev) 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; } -- 2.1.4