From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0088.outbound.protection.outlook.com [104.47.36.88]) by dpdk.org (Postfix) with ESMTP id 217C81B728 for ; Fri, 13 Oct 2017 16:52:11 +0200 (CEST) Received: from MWHPR03CA0041.namprd03.prod.outlook.com (10.174.173.158) by DM5PR03MB2700.namprd03.prod.outlook.com (10.168.197.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.77.7; Fri, 13 Oct 2017 14:52:10 +0000 Received: from BY2FFO11FD015.protection.gbl (2a01:111:f400:7c0c::139) by MWHPR03CA0041.outlook.office365.com (2603:10b6:301:3b::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.77.21 via Frontend Transport; Fri, 13 Oct 2017 14:52:10 +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; 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 BY2FFO11FD015.mail.protection.outlook.com (10.1.14.131) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.77.10 via Frontend Transport; Fri, 13 Oct 2017 14:52:09 +0000 Received: from [10.214.249.170] ([10.214.249.170]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v9DEq6ji020842; Fri, 13 Oct 2017 07:52:07 -0700 To: Nipun Gupta , References: <1507657887-11366-1-git-send-email-nipun.gupta@nxp.com> <1507828729-18194-1-git-send-email-nipun.gupta@nxp.com> <1507828729-18194-4-git-send-email-nipun.gupta@nxp.com> CC: , From: Hemant Agrawal Message-ID: Date: Fri, 13 Oct 2017 20:22:05 +0530 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <1507828729-18194-4-git-send-email-nipun.gupta@nxp.com> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-EOPAttributedMessage: 0 X-Matching-Connectors: 131523799299279840; (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)(39380400002)(346002)(39860400002)(376002)(2980300002)(1110001)(1109001)(339900001)(199003)(377454003)(24454002)(189002)(31686004)(498600001)(77096006)(47776003)(189998001)(50466002)(6246003)(86362001)(2906002)(8676002)(31696002)(53936002)(23746002)(104016004)(65826007)(230700001)(68736007)(64126003)(33646002)(53546010)(4326008)(5660300001)(97736004)(65806001)(106466001)(58126008)(105606002)(2950100002)(356003)(110136005)(316002)(54906003)(8656003)(36756003)(76176999)(54356999)(305945005)(50986999)(83506001)(81166006)(229853002)(8936002)(81156014)(65956001)(85426001); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR03MB2700; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD015; 1:3N7xTQASPRKmCWlLR7HMELo1ScTecDfzncUdnyuiysRpuJzBxBC3byf+r+ayN0u+fzsu8vp4aDLDpLdYZWXcvdgb5/Y4MlDQQDsdIvaTssBBntTabWUT0Z4D6CfEa2He X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 552b3f1c-c3f0-4405-df77-08d51249fb1f X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017052603199)(201703131430075)(201703131517081); SRVR:DM5PR03MB2700; X-Microsoft-Exchange-Diagnostics: 1; DM5PR03MB2700; 3:7Pux2xi16pw04p+hDIY+W3JDqzsKlEzdovoZfnW56shDObAB6oh/CPoZDirzqr5X55E54KkDx7evOG9P6HmdvMx8PmlC/Y6O1KrLNHAWGypz/JIau9N93cWUvHpGOazhChJoPb6mIRwsIUJAx+W5w7HdpMPGL0yiZ7OZNk8uh/DdPnJ5oanLM7PYrF8hpIoJYkKgkWacl/LjJrHqgkoTDw89oe6Xms87Vsh8dUTnBzRYbuT2e8ScQiLXmsPgL0MPIxT+0oXTGq+xmpVYnPDynBoNJ8bK5Om9FYsw5L2z9gTQWsR87DsxGtGRSNUr11y/Jc0UTkp9K7AM3u7lasC/nIqECZIWf3EJlBROw+JBEL4=; 25:13F1h7MReg5tZemYmHF5NfTfMZzJQ+FXsmZFW7g2qYZo+pZ1slPhY5qhNkEwMN8uvLWVF0jxWkMWqKf6i8nPsHTGSoeUkJcea81Wq6F1uOUOPk6KCLFqanWg3doJPDhti6gw3c6m23zIsuB10iZvRyeO0erT0r1gkWP3HtLKAi2MNyrETxd6tsoSWU+jSH4hdArA8FgK/C/bQ4vHuvqwvTtTtseKH1Z6xFbGfnoshcfokeEeeO4Ot13V+yE4kdNobZafPubBvyEDzBTPYdMUdkDzRWh8VcNv857r0dEQ2ZuiWsjW1/WkZ946/NAFAAy+jLDGSMSFTWU7PY17K8817w== X-MS-TrafficTypeDiagnostic: DM5PR03MB2700: X-Microsoft-Exchange-Diagnostics: 1; DM5PR03MB2700; 31:KH2nIXYhHs5YRBzc4gaE/OfeejweSH3VqB5y5TCAKc+4gDryqcRDByeDUBdPmFlbtiXCat7hihfn+eXnLgLjpF8I+KMQDPo9CAshNlWbIe4XRbJ7A+Orzjrh87uJlzmJmsDmx3c9KBsFNLcXAtwuqMCmEiV4jE59tDNo5ziBwwjFuTD7ciM8niaB38+tmz1PEpd9lPIH1SgRC52zMHF9FaizwflNqGBZSrdZe6rzNgo=; 4:K2zTDWWpWZHrKPqJIsxriv0NMHHGYL8xaAd1CyeTgxJOiWFMdg0eUm3h5Y8LTiH899DuO1kVaE1ybyV0hYdZ4ABsu8AxHIJEryAOzl9+73bKb2VeJJjYa9seXeDP7qFtLfZymakhihrvgxCzRbLAKlo4j7aYxCKPh7wlqnRsZRroFhaIcU4ulP3oX67sPhE/WrBDR9ZArp/IAiMyN+kvi7f82Vr1lf1uiBoumQL5Iy36k0N6+1ybUXPmGLThhPYJGOglXBmO34Fd0k2T0TZQPhG+FMHihgGLb4Bz/iYVbLM= X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(2401047)(8121501046)(5005006)(93006095)(93001095)(10201501046)(100000703101)(100105400095)(3002001)(6055026)(6096035)(20161123563025)(20161123556025)(20161123565025)(201703131430075)(201703131448075)(201703131433075)(201703161259150)(201703151042153)(20161123561025)(20161123559100)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:DM5PR03MB2700; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:DM5PR03MB2700; X-Forefront-PRVS: 04599F3534 X-Microsoft-Exchange-Diagnostics: =?Windows-1252?Q?1; DM5PR03MB2700; 23:CqnYZOIiYISnTr95FfmjbImpFHEvUdblLxdzy?= =?Windows-1252?Q?XgmBfHBJsyAz0qxzgyuQwdT+fwTDiRVk0fUTRkMo335gtm/H/FRJdvyi?= =?Windows-1252?Q?TI4R1hyjwwAqYcHHl4scN/AYYZitP8+5t2KwiNN8NCCdyCit6Ippafwy?= =?Windows-1252?Q?ThRAeI29RjES0aU2XnxPH2nwKrswecAc1fjZ0G8kWo6K5DSgdTXkwsTh?= =?Windows-1252?Q?RYkp+eye0fuzP3jmEI/g1r6O5+Zeke2HbGV9awsHwWlD1qPymAaeYCa4?= =?Windows-1252?Q?AcPZALPb1Xp/jk728GHZV94YMiiF4Ue/xDS5SFsqd1VSSny3MJw9KEpO?= =?Windows-1252?Q?8K/BRdJaB8muO7EX/3f+ydUypqAgoIq/wf7JWZdE2Jb4DZQaE4AFJo9q?= =?Windows-1252?Q?OS3IixbVFdL3z35q3RnAFPyUbommbpWselGC0Tv7UTKVEGGX/3WTZmvv?= =?Windows-1252?Q?MbFHn6A6QjhoddLJdwEyCXAFOD76bMLm9eGvz7jF7PBAtNay4dl8Qk2/?= =?Windows-1252?Q?QLJinc3s1k69HerHOxPg7lRUpTDUu9yrMs5KqnB+EJ7ShQUyJ+peKEoE?= =?Windows-1252?Q?emaaNec/vO9bhSnmPR01NbJdqj2wD2lv4GNbWxkc/H9pWEeZPHwqIFBZ?= =?Windows-1252?Q?ls8fi81X8qll0LNlPK9mHbJXPhRtew4sn2qAbfSbYRo68MI7uwhN6ueA?= =?Windows-1252?Q?Hb/1xFRToSJr5eKV1pwaJK8XSayzjcjAoetBa1ecwl/9O3x2u+FDjfXj?= =?Windows-1252?Q?gz4znDGmBJtLaUAxQdhXarfjEdarOhuHolQFkIgpEuJ6v8TJWw5keEML?= =?Windows-1252?Q?uZPH9sfWJO/iYOuLWWZwuxFmVnOMvokKPD7sMlxxkFaaKDj8+4AXlCOE?= =?Windows-1252?Q?KBAlIcSIYrRjA5oiuMHRuTC2g7WR1auV2XcQ/2ic2SWZieAFqVaKtGL5?= =?Windows-1252?Q?GZH7bnwDkqeg2cFZXTbVrbZyRu3lIFGV/cYwfvYtp3dTzcrgcqNc6tz0?= =?Windows-1252?Q?L+619Q2r5eM3ugMjymccE1Wsq4Lw/HYGvNTZ+ecI0w6QHqr49sX8Mg9L?= =?Windows-1252?Q?CfQD+ecYklX1t79jdyvFHz03KxltnhFzrlpRtm9Boghd1a6x6Puv/9Um?= =?Windows-1252?Q?+kAAynwDsdbF5OhxcoCLr8wh+kMwIy/XS4LlxBatHpc3EC5vSC8u681C?= =?Windows-1252?Q?3BRZLp75TdShdHc1CEOpfj11mOG3SYyQyT1prGySinwj/aFMgzhEpzx7?= =?Windows-1252?Q?ZFJlxTSb+iJyC5cZkbclR9w/OcriWkKZ7/PS8cF7pIHDANbQzRGcXMCi?= =?Windows-1252?Q?4CU7vVezB27RFjC9CuA+i8r46zhyPVUWm0T+vRQ7AWsF9PXeNCjKGR/b?= =?Windows-1252?Q?hUcDuMXiQVEY/vADbTiPL/NWlxxFkNPYCXZHTvYqhqC6Utvuq2wVYw+1?= =?Windows-1252?Q?TOYS+dezPlmZPFx3065fyVXZY1Agenf5DZS5B70K0xcfIDq3XQVuhJPG?= =?Windows-1252?Q?Tyz5uk=3D?= X-Microsoft-Exchange-Diagnostics: 1; DM5PR03MB2700; 6:R0cpq/duHF20P4yKkysvU7ZffasFjb+8frq/Hi466q+zmUTyrErbxi1pp1YtaZTha6zf1lGpyJHk9VKuA+OD/ekgiGkWOOqPQM/GbofaXqGqf408n3EXPjxPsqeDFHv7iCD6SAyhnERomXudv8A7cAgBcY5ZHOuWvIWv8f8LNNb1kWI85Fqel2nXA1bQYJEQWswbY2yF9y1PpN6yN6c8bPMImqkpW3ohRy3cwpWp/xoKJlSpoto+3ps5nBBQdG/ieOiBgN0tJiMDDwjY9pHbZq63oQYcyjn6ifW9Jo535tVphWQr9N7YI3QjBCsVZdmpIPU5//m9zGrQtX7XXeF7mw==; 5:3VOI95gyMd3w8gZOdlf6Um0sRZRNrju+IO5DXAlnnU3+AmB+LNiC4naZi9pq7XEjasSil3kTOvhyY1I5oLDCMpCfpVgXSIlaa7GY05dmvfFmwWIxQVpV+v3SqNpAdM6xTxd3mONJt/ZoCo/BtYWPdA==; 24:6R6EN6nDn2wBwEBCtMtmjBcDR4CaLyxmAneOn9MQdI3MNvXLnEl60K0EXOkD0jyBQwaldUGZowhca74cXhnebBTcG3KJ58VxgMYw4GEE62Y=; 7:2JlU7CU8HSmWdnm80E7oiuJ85PLgss5Il9Eq/CYlnc+s415COj72EW9ryJwLv39vZW9nk6YCuTHcWvr9YSX7qyEzNvg8pGTyvhjkYjWLzV5bHkx6arHqubBe3kvhJh2XRSvzabvsgb5tGEphhqAG24gQUnpUaAoerIb9Bo9dGymNd8/a75FEDvVvvPpJH8LLghtU0xIcEhJkq/P+7psGS0SMUduzDOIf1l3l4/wA9oY= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Oct 2017 14:52:09.6003 (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: DM5PR03MB2700 Subject: Re: [dpdk-dev] [PATCH v2 4/4] event/dpaa2: improve the err handling and log msg 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, 13 Oct 2017 14:52:12 -0000 On 10/12/2017 10:48 PM, Nipun Gupta wrote: > Signed-off-by: Nipun Gupta > --- > drivers/event/dpaa2/dpaa2_eventdev.c | 9 +++++++++ > drivers/event/dpaa2/dpaa2_hw_dpcon.c | 2 +- > 2 files changed, 10 insertions(+), 1 deletion(-) > > diff --git a/drivers/event/dpaa2/dpaa2_eventdev.c b/drivers/event/dpaa2/dpaa2_eventdev.c > index ee3a164..d1be5de 100644 > --- a/drivers/event/dpaa2/dpaa2_eventdev.c > +++ b/drivers/event/dpaa2/dpaa2_eventdev.c > @@ -140,11 +140,20 @@ > */ > struct rte_event *ev_temp = rte_malloc(NULL, > sizeof(struct rte_event), 0); > + > + if (!ev_temp) { > + if (!loop) > + return num_tx; > + frames_to_send = loop; > + PMD_DRV_LOG(ERR, "Unable to allocate memory"); > + goto send_partial; > + } > rte_memcpy(ev_temp, event, sizeof(struct rte_event)); > DPAA2_SET_FD_ADDR((&fd_arr[loop]), ev_temp); > DPAA2_SET_FD_LEN((&fd_arr[loop]), > sizeof(struct rte_event)); > } > +send_partial: > loop = 0; > while (loop < frames_to_send) { > loop += qbman_swp_enqueue_multiple_desc(swp, > diff --git a/drivers/event/dpaa2/dpaa2_hw_dpcon.c b/drivers/event/dpaa2/dpaa2_hw_dpcon.c > index 2c416b5..005e623 100644 > --- a/drivers/event/dpaa2/dpaa2_hw_dpcon.c > +++ b/drivers/event/dpaa2/dpaa2_hw_dpcon.c > @@ -100,7 +100,7 @@ > > TAILQ_INSERT_TAIL(&dpcon_dev_list, dpcon_node, next); > > - PMD_DRV_LOG(DEBUG, "DPAA2: Added [dpcon.%d]", dpcon_id); > + RTE_LOG(DEBUG, PMD, "DPAA2: Added [dpcon.%d]\n", dpcon_id); > > return 0; > } > Acked-by: Hemant Agrawal