From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0081.outbound.protection.outlook.com [104.47.38.81]) by dpdk.org (Postfix) with ESMTP id DE3012661 for ; Mon, 4 Dec 2017 06:12:52 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=ML7K8t5gd2r0B5OsIDhjn1ASJe5YIWKI+sC4aReOezg=; b=mUR4CeNbFJelsoAqcHEhWFs1jpBEGDCLqudKJS0flZzz0dhXTxtN5SqrKD7nsOV7goc4ywEQkZ39vCJgIoYEQABcE60+JeLR9HjRUhmkkXgQKolxGkpwb2lrlUtLLCda2GUOJUw2xF89xNLiK7LK081HQDTQtf6qEvrMMnOlCjQ= Received: from jerin (122.167.110.209) by CO2PR07MB2518.namprd07.prod.outlook.com (10.166.200.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.282.5; Mon, 4 Dec 2017 05:12:47 +0000 Date: Mon, 4 Dec 2017 10:42:32 +0530 From: Jerin Jacob To: Gage Eads Cc: dev@dpdk.org, harry.van.haaren@intel.com, bruce.richardson@intel.com, hemant.agrawal@nxp.com, nipun.gupta@nxp.com, santosh.shukla@caviumnetworks.com, pbhagavatula@caviumnetworks.com Message-ID: <20171204051231.GA19673@jerin> References: <1510699450-29204-1-git-send-email-gage.eads@intel.com> <20171204030619.GA549@jerin> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171204030619.GA549@jerin> User-Agent: Mutt/1.9.1 (2017-09-22) X-Originating-IP: [122.167.110.209] X-ClientProxiedBy: PN1PR0101CA0066.INDPRD01.PROD.OUTLOOK.COM (10.174.150.156) To CO2PR07MB2518.namprd07.prod.outlook.com (10.166.200.152) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 606aad17-2a4f-4bd4-49d5-08d53ad5aa49 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(5600026)(4604075)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(2017052603286); SRVR:CO2PR07MB2518; X-Microsoft-Exchange-Diagnostics: 1; CO2PR07MB2518; 3:C7L35JwlTkdb+EnmzadwNtAuwnC6+ziaS8m8ANCCiKDkFypweBGVKFrG8cFXdiIjISTe+qJvhD24plZRMkaMEr5YZ8vneOX0hxi2F6acUSnRQ1hTmw33OaGxAReBJ3DBYpsfD8w3CCPBj6wYvtXUTh4Kyx86UNUbR6k+tb1Lqn+BFmx8r1QcDXn8OCDFlqhuem06uWe+vksP45RfVpSLHP/CqzSYvOX9rk4GYKqxLFQbxOhims+b82zrnt1cRLDR; 25:eMvC7qiOwUV6Beyue7x78NNKu+9dhE/m/35l1oU7RLjuB1Sg7kocfO9xdtxxpnMIrcNEwEKXEnkiETx59X952J8FRwclmh2j9zUp3VduUKwgvJy+UJlO9EzBwJ67RryTIi1CM9zLe2PXOEfI+xZ9Am8qxAm2JKfOyzZDN/YdQ05NZK0HXCL9zcMqinQPyWdeesLL5wZvGiIa4/EsFz7yQD3jJTudEvQCvMpdpzx+ds32qZ6+XPA0kLOSxEkd3KzrRxVpsJ1sJG1xOaiaGxec3QLoVe9spB6nEwiGptVsmom7OjP1AGlshC/Rj9UNEDS64csTqoMueafRTi6WJ3Az/w==; 31:J0WX607yNgWEBAbqM80M+IEiP5YISl8iYmD9kfOsV5uaAKCcTyFzxyuL3NcdQJO8rxmVTTW5HNYti9nQLBBNvxuoonJ+RFu7UJFpxJXO97O3D5r7V/SDcotzDeZAr4vQeGfpy5tg9oMtvOngT03j3b6P2VtloKaILaEeanKsMPXUG9Nx8h3u4tbdk5ks/Kw+Bi4Q3PF4vOD40sEUsfxOyGE43BHQDpBPR/XCRNskiX4= X-MS-TrafficTypeDiagnostic: CO2PR07MB2518: Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.JacobKollanukkaran@cavium.com; X-Microsoft-Exchange-Diagnostics: 1; CO2PR07MB2518; 20:NLIP6JMZbP2Olt3SEH+MuLdbLrSu9sQZdAUo+PXVr19vXZpzRniNo/IdSeTtjscrhSmpMCgJM14RFfiJNlzld1RMUom4C86IY6VtPJpyMkj81bcYdZA5kX3ccS4Q6bJmT1H6kDaAXp5uvscGzxHh7hLBzdbpdN0rKkoTuCXWhM1DEIkmsep8otgJnNPZj8AFwvEgmM3+5fcmsR9hrq3/Ux6YlVnBQuyFI50S6IaoMTv+PaU09t+n/9BmeMl/pl/T4lmBbW/QVjSiuuksi9dfdx0ccGb0ScyA5ZDK4QcbcUJ4yfPUzOpJuAG46aUUPv75ebXUZwrZ6prUJyNPqEBMrGFsDnCO+cO5dy48cBAdWy7d5ePr5XdywxByg5ZJMlqayKe3Cfvwg9sd69pc6clrCKa9g23JP/jfkzTg/fl7le1ByOmryuhcYybvstPMd2meVW9JH0268LjA8bZoIxIDOdA19pWjJ6qjaUh+Woola6fiBSMa5u/a9vOl3umdjlZJTL/UIgZzi980reMYW6Im+XWrUoUTVgwo2RitTJc2Z5nm6ikXBkyO42cjAdEGthdB80Yn1WZ2YP/SO5ZIB+qakr+jVEt1KJ8lEWP1eMpZmys= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(2401047)(5005006)(8121501046)(10201501046)(93006095)(3231022)(3002001)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123555025)(20161123564025)(20161123560025)(20161123558100)(6072148)(201708071742011); SRVR:CO2PR07MB2518; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:CO2PR07MB2518; X-Microsoft-Exchange-Diagnostics: 1; CO2PR07MB2518; 4:bw0DKr2QmhUPoYA0tGM5i8ReRcXDUCuUYMEHZ35qUAr5L6FpAFrS3CvjzYj3yacE+l1q57ZGVuGIB+Jz9Un7O9GfiaMTd+XVFzrASyCtVX9kLrBPwJZedsd4EOtmOzdExbyUNG/hH5e5IH8bBlCM73sS1WVElJ4UexHukmE2KGKPleGiRdmT8iL8goCaAwwZB4PFsCCQqYjD0PbknHlhZytaEk7nvFMcW7f3aX/18vO37Jf7G4zp0Wt91GJyw8VmszGBSMpElFT6HRN3xNJYNVZZQysJkCXHQ58ll9kpxfUAurBw9H5A32KM6bpZGPhhz3qua4//+cz4IBcWrbKUsmi6/I9Is0flSzaWh5lcovo= X-Forefront-PRVS: 051158ECBB X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(346002)(376002)(366004)(13464003)(377424004)(199003)(189002)(50466002)(107886003)(6246003)(25786009)(33656002)(58126008)(105586002)(66066001)(47776003)(97736004)(3846002)(23726003)(305945005)(106356001)(76176011)(316002)(6496006)(16526018)(8676002)(81156014)(7736002)(1076002)(8936002)(189998001)(55016002)(72206003)(2906002)(6116002)(52116002)(8656006)(83506002)(54356011)(16586007)(81166006)(33716001)(4326008)(5660300001)(6916009)(2950100002)(6666003)(53936002)(478600001)(229853002)(9686003)(42882006)(68736007)(101416001)(18370500001); DIR:OUT; SFP:1101; SCL:1; SRVR:CO2PR07MB2518; H:jerin; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CO2PR07MB2518; 23:vN7NS1ODi3uhyXiahyBO1mrTAbWhMBls5TBs172ob?= =?us-ascii?Q?F9dTl51HnTV6O/LkItKd14H2XKug5ApYNRlCp9Hr1wtFFGcQXBXWhgWS4RDt?= =?us-ascii?Q?oZH2VfoiyQ9JFaQXEfT9am0ZIfvXD/GQ3tVmJYKyrlL5PZ76cGBw+3zdlcK3?= =?us-ascii?Q?eJ0WHSbWZvr9wG892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MsktJZd?= =?us-ascii?Q?a5jyDbgTdOIfVjAJbk0xXUt19/PofYSU0qmrrU6o9zGolseLMb3R154VV7yf?= =?us-ascii?Q?amaOoQXUzc3pn0KSRZ79ADi4W281c6sNo7br5gMyBtBKO9szYX6k/PtlmcHq?= =?us-ascii?Q?BVRxiyEjauoGn3bH2J4Su85t2RJalTWUNqo3xa+hw4lmRATOHEUDb7F14Ff/?= =?us-ascii?Q?X4eQnneaAhP5V8jzqhqynqGiNg+Rpm2faGZOp3zb9rJ8LNCuOPveTw+t1v6P?= =?us-ascii?B?QT09?= X-Microsoft-Antispam-Message-Info: +H5FZIBpsDyQc+jKpo9U9B8xLUlQ8g5QJr45T81aqyImj5KjW1RR+Tcc22E/9p+I5u/hsS4nfU3sPpYV/hoWow== X-Microsoft-Exchange-Diagnostics: 1; CO2PR07MB2518; 6:08JmTskK6YpU/NYCXeM4w7kKtFarIQ1BupCXTBvKQUCA8+Tgi+xYlV+AFcsayw+jRYpOBGg5a+QY4biUoICdqcaqLDNmEI6goy4HXd/Si+Fpg923fO777v8S6uzZAY5AUJP2XOsHsobiuAZ5QCVQ1Z7TBjKM8tIjCemgBozndkA7MKIjt9do1oAUFkAJWIaAy+aZccazQOSFFTlPbrqo1jFByXBOtdimeQlbw91VlOLoI1ElroZk/4Q8kxR53ZOWjRClkv2ssZYoBwiNxYQqH0Xch0Di75bkQcWQQX0SoFYcU2Ldr4pT8sx+KTp/VIYWkqPqmFuptb5Hfnf83bAwYgmADOafIviiZsl/fLLfUOk=; 5:CQukJNuPnfFgxkGBkOJv5ghSxeSnqv06Z5vGokz0zt4W+gIjRkSJDnJIlpRtkgVTfAjcaidu3Wn9QCZFZSe4ugeSNvXQS++OblwTxryis4LK4ElpZWYD0ukZWqmEs6+P21RYGBZfBA315Y9MlU26AwufPTBnvsdkK8sYY/lJx8o=; 24:VKsphWdHXN9Nm7dsdtntEmQejWESPhaWLkE8+q3/NZgXyTisI/yF6yJy25E8x4kWwDT+DwOWuQIK4xtN88ozaKPFaR9s+NjT1Jo8tA4rDuw=; 7:ldfLyJrADUqkZtmBIucF4AJnFYXZJcFHkIgTLmUi5/DCA8OYoojSc4yPyRi5XonXhgB5MQFHRLOthgeelrMq4Q08/Yd2qLWnd1CZgXHBr2lkgKgVbq3Og1qQ18q52F52yOaabZRBf+px8t9BBIa3Vb7TmahSA/HGKCA0h6C+o0Hu6P1+9u4nqxx+aP3t7OMDUS7O01fLcIHKpwGKhE6ahOIErHGHuoFhvcnTzlOVFn8Ar8NASIk36eZXVSuSKrEo SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Dec 2017 05:12:47.4511 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 606aad17-2a4f-4bd4-49d5-08d53ad5aa49 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO2PR07MB2518 Subject: Re: [dpdk-dev] [PATCH] eventdev: set rte errno in port link/unlink functions 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, 04 Dec 2017 05:12:53 -0000 -----Original Message----- > Date: Mon, 4 Dec 2017 08:36:20 +0530 > From: Jerin Jacob > To: Gage Eads > CC: dev@dpdk.org, harry.van.haaren@intel.com, bruce.richardson@intel.com, > hemant.agrawal@nxp.com, nipun.gupta@nxp.com, > santosh.shukla@caviumnetworks.com, pbhagavatula@caviumnetworks.com > Subject: Re: [dpdk-dev] [PATCH] eventdev: set rte errno in port link/unlink > functions > User-Agent: Mutt/1.9.1 (2017-09-22) > > -----Original Message----- > > Date: Tue, 14 Nov 2017 16:44:10 -0600 > > From: Gage Eads > > To: dev@dpdk.org > > CC: jerin.jacob@caviumnetworks.com, harry.van.haaren@intel.com, > > bruce.richardson@intel.com, hemant.agrawal@nxp.com, nipun.gupta@nxp.com, > > santosh.shukla@caviumnetworks.com, pbhagavatula@caviumnetworks.com > > Subject: [PATCH] eventdev: set rte errno in port link/unlink functions > > X-Mailer: git-send-email 2.7.4 > > > > The return value for rte_event_port_{link, unlink}() is defined as the > > "number of {links, unlinks} actually established." However, the eventdev > > layer's error checking returns negative error values. This commit aligns > > the eventdev code with the API definition by having it set rte_errno and > > return 0 if it detects an error. > > > > Fixes: 4f0804bbdfb9 ("eventdev: implement the northbound APIs") > > > > Signed-off-by: Gage Eads > > Acked-by: Jerin Jacob Applied to dpdk-next-eventdev/master. Thanks. >