From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0073.outbound.protection.outlook.com [104.47.40.73]) by dpdk.org (Postfix) with ESMTP id 80DD37CF9 for ; Mon, 4 Sep 2017 16:32:58 +0200 (CEST) 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=19db5cTBY93qJMOh1CnaTop11pEz5uuGXkkqeKuSUTc=; b=IktSmDRasiSIn2cI/eoeH4NYKWLeCx8yu9pbnRr/W0kFqpfI1ce+Yi933E5t70wxOC+nkywXYfDeahTYfvFrb2FHmzmnOobqvLASjGc/BO5puc8nFPq4BvAqrCxXplP4iLTjYIbzb9bdlxrj41eD3xhwPz2N8PxDyWeq7+yCIDc= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Pavan.Bhagavatula@cavium.com; Received: from PBHAGAVATULA-LT (111.93.218.67) by MWHPR07MB3469.namprd07.prod.outlook.com (10.164.192.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.13.10; Mon, 4 Sep 2017 14:32:55 +0000 Date: Mon, 4 Sep 2017 20:02:15 +0530 From: Pavan Nikhilesh Bhagavatula To: Harry van Haaren Cc: dev@dpdk.org Message-ID: <20170904143214.GA5486@PBHAGAVATULA-LT> References: <1502800360-15782-1-git-send-email-harry.van.haaren@intel.com> <1503320296-51122-1-git-send-email-harry.van.haaren@intel.com> <1503320296-51122-2-git-send-email-harry.van.haaren@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1503320296-51122-2-git-send-email-harry.van.haaren@intel.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: BM1PR01CA0108.INDPRD01.PROD.OUTLOOK.COM (10.174.208.24) To MWHPR07MB3469.namprd07.prod.outlook.com (10.164.192.20) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 02441536-208a-4322-190d-08d4f3a1d593 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(300000503095)(300135400095)(2017052603199)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:MWHPR07MB3469; X-Microsoft-Exchange-Diagnostics: 1; MWHPR07MB3469; 3:7jndQE0xQ7ofF+LrkhY2LoWphxDtHPvxJ5ZtvVwiFl739pfAXVOxtSIkQEd/0CFLZ7VFhXYd5kmb7FT7/ktezJKkMpYbJEZtsvXHxLZN/TijMwXAFGmJeokKEKvJCTGNW4/0hfxlKOnVCLdCtPIwJZ1laZUqKlqoYEYOzU/f2JFgV2cSXyhyQKGheXe4o6/kNMzXXGMm/UkCYZEdgj/vQoYT8pXh369HFzs39l6KCxBRtsd4iyJAZNU85RgWCUzx; 25:LfdixAW6ywP/xz+Jw0tdmP+C3x2Hj+1lCVLX51EzbD3VmOcWTlQlqd2vnDT6LT8eC3ya45ImTTiiqJp4aNQI9OivsUrWhOZHxA0AjBMeQQVXrJJ7Yeohv8v5ZhqBZPUIh8KMIaCRhBMNcrBBwbZsJ8EMmdhj8XdLDkb6LOz4JZQL0SzcUcHitD8ynFdEE33OxbHSjASPLnb6C4Bt1rQriLyRi6Ko6/zkLFIthdUwCH1UMvyWYSvTvq9nD5UFb+2f3otjdNltVLdceVdLwsyKNLqQM+aQ8xx8JQeu1CGNbRmE3D9J5X3MlLoVkKrAgRy+ZJV6r8IpqpUxxXfd32USIQ==; 31:5jqTcUdG8JBqzwhc+J66NzbfFeku+f4+fw2Ac52b4CUyh7POdbTwq1Y1vHEesc3T3lhVKEQdDYSOCUtnaaNVn2SOZ1nLoELThoSSY71MG7en+U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twbGiAR0/BmCv9ye7VIqVMOaFuC1Kc1UOKXScTz//Nh13NI= X-Exchange-Antispam-Report-Test: UriScan:(228905959029699); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(8121501046)(5005006)(93006095)(10201501046)(100000703101)(100105400095)(3002001)(6041248)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123555025)(20161123558100)(20161123564025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:MWHPR07MB3469; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:MWHPR07MB3469; X-Forefront-PRVS: 0420213CCD X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(24454002)(189002)(199003)(478600001)(5660300001)(6496005)(50986999)(6246003)(189998001)(25786009)(54356999)(76176999)(106356001)(83506001)(101416001)(53936002)(2906002)(55016002)(47776003)(9686003)(5009440100003)(4001350100001)(72206003)(66066001)(4326008)(1076002)(229853002)(6116002)(3846002)(23726003)(97736004)(33656002)(42882006)(2950100002)(6916009)(6666003)(8936002)(105586002)(110136004)(81166006)(81156014)(8676002)(50466002)(7736002)(68736007)(33716001)(305945005)(42186005)(18370500001)(107986001); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR07MB3469; H:PBHAGAVATULA-LT; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A: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; MWHPR07MB3469; 23:v3x0rhOvHhV7DnR45VYEGwc/xxM+tBmWJoPWmiRWK?= =?us-ascii?Q?bjqmBybgu1wExHiq7X9xzCXF770XKpuzB/HmeozD9q/200Eo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XbDLwfioYJ/dqn7l4/VbUy+HyERKEWmDBrBqtz0Xiij87yAwri42HKA06/rmioC3W27lotLjAGR13ALbbpDdn+SBIsHz0Mocfu/ju0nLlLJWgxruFmAlLee2cMlxK9zL0NHSz5FOdn0kMf0tfGvKhOMNhnpELCKEVrnwjJSN5kZ0dB8E/w= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Sep 2017 14:32:55.4085 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR07MB3469 Subject: Re: [dpdk-dev] [PATCH v2 01/15] service: rework probe and get name to use ids 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 Sep 2017 14:32:59 -0000 On Mon, Aug 21, 2017 at 01:58:02PM +0100, Harry van Haaren wrote: > This commit adds a macro to easily validate a service ID, and then > lookup the service pointer, or return a user-specified error code. > This marco will be heavily used in the following patches as it will > be ID based instead of pointer-based. > > The probe_capability function is reworked to use an integer ID instead > of a pointer. Rework the service_get_name() function is updated to use > IDs. Unit tests are updated to keep things compiling after each commit. > > Signed-off-by: Harry van Haaren Series-Acked-by: Pavan Nikhilesh