From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-cys01nam02on0051.outbound.protection.outlook.com [104.47.37.51]) by dpdk.org (Postfix) with ESMTP id 225A8239 for ; Mon, 4 Dec 2017 04:06:39 +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=XO1LkjeZONWNYUnR6falIDO0+0F6zMynPYsZcjbNr/s=; b=Qm/Zzo3oNIOH1qcDJs+fbffATbZXwN7OdBbCXZy7+/uXxyCRXhsgZ4TA/zQtNS9ptzX3iWXHxvdzHPP7yQMatGjh6Yi9F8ZQAOimpGXasH7L00lDPVAwGvvhbUkmxPFiySOKOBnQH/5nJPTEjjE6T5ZP/HjDrQ1Z++6TRp6mdvc= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.JacobKollanukkaran@cavium.com; Received: from jerin (122.167.110.209) by SN2PR07MB2526.namprd07.prod.outlook.com (2603:10b6:804:6::26) 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 03:06:35 +0000 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 Message-ID: <20171204030619.GA549@jerin> References: <1510699450-29204-1-git-send-email-gage.eads@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1510699450-29204-1-git-send-email-gage.eads@intel.com> User-Agent: Mutt/1.9.1 (2017-09-22) X-Originating-IP: [122.167.110.209] X-ClientProxiedBy: MAXPR0101CA0023.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:c::33) To SN2PR07MB2526.namprd07.prod.outlook.com (2603:10b6:804:6::26) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: be4e4076-9dc5-4616-a965-08d53ac4090e X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(5600026)(4604075)(2017052603286); SRVR:SN2PR07MB2526; X-Microsoft-Exchange-Diagnostics: 1; SN2PR07MB2526; 3:smo95f6KAaHRvhOX0jdvxPEopnxz9FNdbJtSBpH3F4ps+1DY5RllAlQz6r/IBIcYrd11BzrZIaAMyV28j/YvVkOeIV2jsynQufIizMtmhj2TXBa59YdbPoaQk245LR70LAd3DoyJP8ztica+uQ7Q9erfqJVVpQivfj+BRuWq16MXu2BslnePksF6t4P96zvmAU0UsXrlkXNGo9a23Mjprg10FsCMNjPw9VNX7jxNAbCWyT+su/YJt9VQoUVkq6Y8; 25:xw3HRr1CUQDQIpwOsSft9ecoJfMSDCLuZD5Y4ElOZyEljed2uNiqDr+NKfQ9dnJTNq+5yAExNoWOKZPR9mry0pSNVa/PzjpB28lE9xh9YQC9L8MIW9gNEp1JFVavYZ79GrKiKw/HOB7UIMlOdkblzlhFdDH8GEBVsDmgvgc35a312J0irrZvqwrUo5AU+JEfKWM5bSwIHEN51FgO8sRO3kUrtUTVv0rRSsMsoALB3PhS5iOTBRClxjycjJ1ZrzVRf6SiUMCBw1lHUOVIA1hVIrT5lxLe3OgSnVQvM3jwIUZwg7n0e809QNc79+ERcFWmxPo8pa1lAulNIHc3u/YVZA==; 31:CHZCwqStdEmHBcnwedSXCUysDSvV/fUf7eEbAmYFds9gzAoBz4W5PshvUK23tNH7j2gZYSyWMNDzpZHIgyG/bYbaZdoqGBATEYIYes7LuoDEiMww2ghAVdRkRPpvw5TyMt0gi+/Bsje3LnWQbsTL6Q73mYx2OELogy+6XdRsRq0hVdSWfWW65IE5A/EGkJtR0qgVYb/l3gekiL24HcT/PuALeDZJdm7W6dK6FyWv224= X-MS-TrafficTypeDiagnostic: SN2PR07MB2526: X-Microsoft-Exchange-Diagnostics: 1; SN2PR07MB2526; 20:qpkRDoS5SgMfa+BvcSwYkLLU5Pu0tL102Vzsq7si4mrkkCl+04CclSnIPo9mLh0fUajqSXmNnCTIiJdDFkxgbVIrtRosYYc1kRhquevQRYS7KJhG9/zIF4gEwZfRbBZM1Hoj4vf2HnGqthMbICHdsTz2Oa/t1cTHAFLUT/t0Btzu66WrSrVmj94eAkF7tKsSqWba2rk+8Z9SR9SIOPzWKDG/3udIomptAYebCm+4sKu4iSYwg6B9bmvDupsEsfcfTRNCfP4t1Vgm3wH54JTKbWaBrLAv/g84uE95cvB3Ad7ejWqh9vH1vXUcMCHmPk+9HX9S3BABEzVo9pKi/wytrU5+H6opuP1XEfezZQNIpllUeWGZIT+V0TORM0crOxTl3nk1rX8cvRulJIC1GvA7TQbhqmCuSM4fxuiYW3Q1ybyh+ttnC106XMs0Phg3+esHMIqNcIUnUqqc8uI3fZ4WJJg+PD0PsVektuJqoCIucGuT0WSLn3126XFzjxVDHu3IUCrKgbG1rqPKCA4J/ueOk3uGT3pBsSNKhez+tO8KRXNri3mBkh1Afb9LHuUSHvYVkDhkPYn3DoYVd/+my0qjjdpzV3m2+LDai44EoJVH5SQ= 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)(8121501046)(5005006)(93006095)(3231022)(3002001)(10201501046)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(20161123558100)(20161123560025)(20161123562025)(20161123555025)(6072148)(201708071742011); SRVR:SN2PR07MB2526; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:SN2PR07MB2526; X-Microsoft-Exchange-Diagnostics: 1; SN2PR07MB2526; 4:I2svN3RzpBe9HfnC6uF1NrKttsJ7wBwdZzopAWWnwpgTaJg9iyEbyLYslYY/20/WOWMChRDg0f0zx527cZsAlDChFMSVtc6bT4Z2sKRhBgYzydb+DyzZCT1oI3TfrAPletlpFxtfYGtmIOdBaxys1DtPpbmU0pX8yWdxjMxTJQltNVGSr7jUurS43f0IOLR3CMxoK8ZZuNDidw72bzUPYw2ckFlriuLyYbtDTLcDeycci+N95iyZRNUtVgRL2isgxpV3QgGlA8ZF7jVWisvPC0SLuzwQykrFox4iHneARmV3FdD40dyUwSZHNtHA13p6gFpi+UxNIv9Jj+Pp6X+Gx6qygWxPV9TAXV8wKF5aP/U= X-Forefront-PRVS: 051158ECBB X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(366004)(346002)(376002)(13464003)(199003)(189002)(9686003)(478600001)(229853002)(58126008)(105586002)(3846002)(23726003)(1076002)(106356001)(33656002)(33716001)(6116002)(16526018)(107886003)(53936002)(72206003)(101416001)(8676002)(8656006)(42882006)(2950100002)(305945005)(6916009)(7736002)(50466002)(6246003)(55016002)(189998001)(83506002)(4326008)(8936002)(6666003)(316002)(25786009)(2906002)(16586007)(81166006)(66066001)(52116002)(68736007)(6496006)(5660300001)(81156014)(47776003)(97736004)(54356011)(76176011)(18370500001); DIR:OUT; SFP:1101; SCL:1; SRVR:SN2PR07MB2526; 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; SN2PR07MB2526; 23:K7TbNMZtjg1K9kgTa13GTzWTg8gOx3ts03VkUiLpP?= =?us-ascii?Q?pORxj1Ai1B+3A0UoWDnTT5lpr/NSOa3rnmrDn3myMrFjzTzwnj1XWlIvR5On?= =?us-ascii?Q?oucZfmbTrXEvnl7Jt14sbTimf6CcQidg0YHxHbzU21Dn6X+O4JhRGD7pg3Oq?= =?us-ascii?Q?4wCMawUyKnXvSEQ5TKgAxO/SE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X5Ty6DZlmJyXc7nvPk6rs0WDvVyUkLRS+nVwOAtmhPIrT158PMZ6o7f9tfZFqVwg8AR7E87MmSlMVRlZ74WZW0jXkuSIiZRQt1edk4MICYh0xS+0alT6QnmmkqxSvZeFLtp1rK4pJe5ugtXXVu3JfJK6PpHGr+2OTxIT0SXvdFggfA/FNTHmS7h9tiliMVTttYznrKqRV+rXlH9SmZ72kBbu1SdxkE SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Dec 2017 03:06:35.9312 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: be4e4076-9dc5-4616-a965-08d53ac4090e X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN2PR07MB2526 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 03:06:40 -0000 -----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