From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0053.outbound.protection.outlook.com [104.47.32.53]) by dpdk.org (Postfix) with ESMTP id D5318CFEC for ; Fri, 24 Mar 2017 14:36:54 +0100 (CET) Received: from DM5PR03CA0011.namprd03.prod.outlook.com (10.175.104.21) by BN3PR03MB2257.namprd03.prod.outlook.com (10.166.74.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.991.14; Fri, 24 Mar 2017 13:36:53 +0000 Received: from BY2FFO11OLC013.protection.gbl (2a01:111:f400:7c0c::111) by DM5PR03CA0011.outlook.office365.com (2603:10b6:3:118::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.991.14 via Frontend Transport; Fri, 24 Mar 2017 13:36:53 +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 BY2FFO11OLC013.mail.protection.outlook.com (10.1.15.25) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.977.7 via Frontend Transport; Fri, 24 Mar 2017 13:36:53 +0000 Received: from bf-netperf1.idc ([10.232.134.28]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v2ODZhg9005481; Fri, 24 Mar 2017 06:36:50 -0700 From: Hemant Agrawal To: CC: , , , , , Date: Fri, 24 Mar 2017 19:05:38 +0530 Message-ID: <1490362538-20854-23-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1490362538-20854-1-git-send-email-hemant.agrawal@nxp.com> References: <1489756124-10805-1-git-send-email-hemant.agrawal@nxp.com> <1490362538-20854-1-git-send-email-hemant.agrawal@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131348362134416020; (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)(39450400003)(39860400002)(39840400002)(39380400002)(39410400002)(39850400002)(39400400002)(2980300002)(1110001)(1109001)(339900001)(189002)(199003)(9170700003)(8936002)(305945005)(106466001)(105606002)(85426001)(33646002)(356003)(6916009)(5660300001)(8676002)(6666003)(50226002)(81166006)(2950100002)(5003940100001)(47776003)(54906002)(38730400002)(189998001)(50986999)(76176999)(50466002)(77096006)(86362001)(8656002)(4326008)(104016004)(2351001)(36756003)(110136004)(53936002)(2906002)(48376002); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR03MB2257; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:ovrnspm; MX:1; A:1; PTR:InfoDomainNonexistent; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11OLC013; 1:pQc/yajYUVTqzAKpoEOXY0dmrbjiIZzbQ9byDUQ/qPGx2eLvR6KAb3ucrGP4/e6YDxptKp0CsjAaAtDIYTrfYZ2d5HH1nk9VTIpN2htXW9qPQ9W6PozfWLqJXZ+Qc7qcOKABk3tmaTUlqI2VSaHAiRHjK8d9HypKN+Jrz0JLRZ7cwaavVos57W4zA1FjmuZdbQuhcdNfW1PiHiNhl16KgmsemMyQvdwnLZ44FGMi2ZOcfJ/DaASF4AFPahIVnMiIj6hEFCoOHWmEkvssQOoRg2o9ypJ2CCBOJZFIufuVTESj0MLgqWg3j38qaZxcEsJRxZ0Pg/fZHfl9UEiKgHDwzRrLuobKcRGFVwsxvyCBR8+tO54DcBmfsEXhml8FMBJE2LMvwr56leq8787NDcgIT90byjo5OYE4DJkvFBq4oaBoLMtde3z8RQ7JVFcSGPmRVFpZ/pG3oCUdoRbqT3tDJX6YPXUn3ROx29nkUA1nM5ST4cIebesG5Nww/RNM1+mSPyvjf3Grp5yOC4FOfU1LDwIpLkkrKvZIqRCkOd9c3yJg3Bg+yhMGHoLGwkJ5bE0E8sScD1F/WK9kGRKY71+h6lmYpx7Mc/41jqhO+gpiu8DelX8QFrgCpUZrmaFnt2irAZLIgcRVHnf0sLit0EWw4Q== MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: a1fd18af-a532-46c1-ea94-08d472bad550 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:BN3PR03MB2257; X-Microsoft-Exchange-Diagnostics: 1; BN3PR03MB2257; 3:TjtmWcC5aO7sekUa+hh0OzS/Hk3aT3sqPUJ/JwLe+7tXLbhcRXBryToUrpv92Yk1veMNzXk5fVFh/p2PeXXbJGeyUO6GA0xkv2e9AsNcgyxmG4d8wYp23AWQga62vmrzy+m83EQ3tqY9G6SzZAppoYkRgSCN15Ubjnd3T5Atol3j876vNdfCGrOXTue8W5lyVJec3hQK8T1yN3v0DOjDv6cwcUQEZEyaOosk16tSDrKivXpLDhqc3m7yrDVMhshvWhPvMLoZDO6b/5DflnZi51yLIV8IVwr1oL4PF6xVKeJuNaec87DcZKGFfmkRbitLjseayOCZlTPJq0gTNPrZO7oqluKT2v1A9OMYdfby32op+JJRuCafIqHomMNyfDfu; 25:w+qy+NQLRz8Ivja+F9jmgcJKPCevJsdfMj/M459BK58ld1wC3YvslElyaJu+gum9wkS1VVT9IKa9Ke3oYszHN033OtTUwZMDDEvtQDCKXCzMppPxRhKWsKo5lg8zeGyxOBhzriwp5bGv9t9F8Qrcjtb/pHhpoLmYcoujViXO2n6IHcyCQEC2Du2upELcm8bpETipAZ5824pE36AWJo/nQqcJZidVs4P+fK6fV3PKVJsKomJ9/BlP4aeOFjdEHcAdwwDIAhFmH8N9UneXEBtkSByrm6llDE1L744m+OpWBiGSyOkK3gDOInzHmX9AGTmpYak1UEqFhmJgZxOeJHf0OAjdVehC9lEFTXkxynXHR8XGVGOf7f4j6BLmJ+f7Ru0rehSRCoiSawOBrgH1hHTvVW9ewiVdmIj4eFFJFpm+LX3wTSDfA8OHoSCq40BaH5fggnHEVvonkKm7fvx2e867oA== X-Microsoft-Exchange-Diagnostics: 1; BN3PR03MB2257; 31:Lw9MnIXQVv4xho9Wb4Ip+6tBmQG/LYrTN4DPB4wyNCnT4gRp05KdTN5ct1D1Oq09lftzBG0Oy31IGViGIyQD5MK4ovG0ijPWluxZp2uBHwYyPaPfgKyLbCjhsYLG4KEqYfIjwnFgVl1Qbz4iyHrS7PrMYzmp9rbutz+Fnn/PQk1RCsvn/6puaCninH2JLR6JB1VFh/cKKiT8eAkeVV1LKrBCaFAvW3hjslnFyQy1icmeEB+q8aYt2cSVdq6FCVBsDq0fuUJSCM+nolKtJF7NmDkmb83GMkKmo9J4OxTL25g= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095060)(601004)(2401047)(8121501046)(5005006)(13017025)(13015025)(13018025)(13024025)(13023025)(10201501046)(3002001)(6055026)(6096035)(20161123559025)(20161123561025)(20161123556025)(20161123565025)(20161123563025); SRVR:BN3PR03MB2257; BCL:0; PCL:0; RULEID:(400006); SRVR:BN3PR03MB2257; X-Microsoft-Exchange-Diagnostics: 1; BN3PR03MB2257; 4:hayBzmBL3sOQFGONBYMSzP5Nkuf9Uhhql6ybfsT3JBKKDxzkYdvlqYcSKIYxatHKMEjcF+vxhvlHyXNEpSE7G4Vm8B4zh83SYq9iNMRiwoKOv7lsm0GJbYmHBmQ7JyRbpAb6lMabiS8U0kILBcnlxwDOL/EZdonrvaefEzoXBzGeLSscMjCNJhDx7zrNoDDDa5zuqoCeAP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zobaJk0y7oyg194YXZUwOQ2oXthH8cph551C2?= =?us-ascii?Q?eKmcNXq5GwA3yBL3NVwJ8wfzgUA1pVzNP8frKmNew5lYd8ti7u/ZFXOYueyD?= =?us-ascii?Q?SXhzcWMPr4TyKkbVt14nVa2RhSd7aRKa/nYeEOHbQQLjhNa76DL6Thno2il3?= =?us-ascii?Q?XHmZ6OkR930nJbYOs9gSH/fmaBkvaxgeu53eA362cEnAJCXXDV0GP/AD/2jA?= =?us-ascii?Q?1GP7BWQia1r4NWjYdlXobKikDPKtBJdTWnjNbFka5Dng6v9y/vmVupk1gM4g?= =?us-ascii?Q?jJ+YhdcikbVL+yVzr+BRn115yD0gG3IfMc2pW55lpINdNBJXuFnRU4du9Dtx?= =?us-ascii?Q?0TsSG882V0FUWNje8O11w61pBlQm8WJSlOt2RdLHNM6U76vsAjtEUIcrWBne?= =?us-ascii?Q?w3J3xvshxhGcKugKdVyvA4Es7sDMFvz3jHkQu7rx4hpFJBKPBkmpHFZuXepA?= =?us-ascii?Q?NVzKupapQGiDKB38ZupIACfFtxm2rftQjJqppCILSwrUToJCyS5bhcmUQskO?= =?us-ascii?Q?o63woZo7bhh0UX6EQohxNBfQGJ8UmScz7UI5dDYn/g/2B2mO8UDOmGxFL8kR?= =?us-ascii?Q?+tA99iC9TGMjvFoWGxD+IIGyOm+loIFT4DYL7DSgRFOik2EqcOCURFvDwryZ?= =?us-ascii?Q?aF+7SQ6KiOm6JRxoFVfVJrYIkKI+1Z5IYiliDI6KMooLBsxDQ5SM05v8myn/?= =?us-ascii?Q?Bb7mGdUFwXEyS/3irBJhMTSbOdP4pQ5q8edpHhoxWUxFu/kf5EwQSrXGz53w?= =?us-ascii?Q?o6AFyCloF/Huo3DQgCNXkvrAjjyFaHjfXrCxyzJFQI0FW4YLkGHayGPXqNW/?= =?us-ascii?Q?8n1NlWucHlloRu8LAtPhNNUH9ckbmxW0kUj?= X-Microsoft-Exchange-Diagnostics: 1; BN3PR03MB2257; 6:bI76/l45SpDQNzOj4+g4REe8MatpxhaF0nPeRRyUKvbdtiB0S/QdWiRa3iZIzg4oims3a/6mSKDLwtfr+GQlSanSX/47ntHaIr//41bhcp9cdF4QoCjvXEjZUdIRXtk04tjxwmSQs6wrTDqO7lGUHhgQvG4K4F/mGS+jEkX26Maz6wTEds49HnsU9smf5QVoAUULlUEX18XFBfEUX5RwSYfIF0KVxGugmkoqD7etsCFuDeURClL07gu8Fuv7K2jSE7jNSEL5QNhbFYRfZ1f98VUywdUfPTaXyxp+8xtMUK3Zh+Z4BOjo+4kpa7LD6F0QayexgCUkRgPPVe42j8xjAueS7GOyHaTmYc1yEkvr/qbswtDAdjOaPubu1igbEWb5AFi0/YoY6mTPDk+P337ku3uQyRiGIEOANWUMP/8HgbY=; 5:Y3NycOLmC1r1B7rEEkFep3gt4dn8fxllY6ZZI3s3rp5IJwSXOlRUcDclF0S8ieA/2XzVUNa1sal0jJSi0mF4GNK31RZS5I7MTaK7qjZfU9Yu5i9dpUbS+LvWvI2L81ZwL89OtWba4HuJhaM5BoexQFdjPqotQhonXic2HTgB0QyssdUmVgtOij453fX6PLhb; 24:yqzJhu7qo/PdYSWxKlVAmBkPsoZ1fjMBhhqOemo5Fu8LGk+ToNNG0aHyrUBoDyOKOURchmvBYiw+ZVc+cGOw/vSjGwEpj6N8zDvTdicsfa0= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN3PR03MB2257; 7:vshJEqhYYa4FRyzBR1yK/ANqBY7ykR377O4HY++NEbXJij+WhbDm6k43oNJ/lnCZyvYyXYSsoSO5efgArYx/nUw5/bnH5vVjdCHYSto9/Go71CQ78AaOg52x9YnakKTXAfjOFFDkB/O9X4kSrClvRKVxNxLlQQT7t6JBNy4ZiukBTPdB3NK65i77y942p+SwPsyD42j+5VvpsJFBcLsPNg82oGlYR9LSOFHlGXolFZQEE5tU8K16GWP6ttki/6I9sP3yMmsdz1OYHmXtvk6UYAf69VdVygNn4spuqs/NiABS56qZO6sR1JRupvF0JcjQcwMQtY6wD6D6KPe8FtF2Ig== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Mar 2017 13:36:53.2388 (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: BN3PR03MB2257 Subject: [dpdk-dev] [PATCH v10 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: Fri, 24 Mar 2017 13:36:55 -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 @@ 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