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: Mon, 4 Sep 2017 20:02:15 +0530 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 Cc: dev@dpdk.org To: Harry van Haaren 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) 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 Series-Acked-by: Pavan Nikhilesh