From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pavan Nikhilesh Bhagavatula Subject: Re: [PATCH v2 01/15] service: rework probe and get name to use ids Date: Thu, 31 Aug 2017 00:55:17 +0530 Message-ID: <20170830192515.GA14859@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 Cc: dev@dpdk.org To: Harry van Haaren Return-path: Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0069.outbound.protection.outlook.com [104.47.36.69]) by dpdk.org (Postfix) with ESMTP id 0B99E2BAF for ; Wed, 30 Aug 2017 21:25:41 +0200 (CEST) Content-Disposition: inline In-Reply-To: <1503320296-51122-2-git-send-email-harry.van.haaren@intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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 Acked-by: Pavan Nikhilesh