From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jerin Jacob Subject: Re: [PATCH 2/4] eventdev: implement the northbound APIs Date: Sat, 26 Nov 2016 04:38:44 +0530 Message-ID: <20161125230844.GA4789@svelivela-lt.caveonetworks.com> References: <1479447902-3700-1-git-send-email-jerin.jacob@caviumnetworks.com> <1479447902-3700-3-git-send-email-jerin.jacob@caviumnetworks.com> <4871697.UraAQdum7A@xps13> <20161125041750.GA18469@localhost.localdomain> <59AF69C657FD0841A61C55336867B5B035B4EB9F@IRSMSX103.ger.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Cc: Thomas Monjalon , "dev@dpdk.org" , "Van Haaren, Harry" , "hemant.agrawal@nxp.com" , "Eads, Gage" To: "Richardson, Bruce" Return-path: Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0050.outbound.protection.outlook.com [104.47.41.50]) by dpdk.org (Postfix) with ESMTP id 50EBD106A for ; Sat, 26 Nov 2016 00:08:55 +0100 (CET) Content-Disposition: inline In-Reply-To: <59AF69C657FD0841A61C55336867B5B035B4EB9F@IRSMSX103.ger.corp.intel.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Fri, Nov 25, 2016 at 09:55:39AM +0000, Richardson, Bruce wrote: > > > > +/* Macros to check for valid device */ #define > > > > +RTE_EVENTDEV_VALID_DEVID_OR_ERR_RET(dev_id, retval) do { \ > > > > > > Sometimes you use RTE_EVENT_DEV_ and sometimes RTE_EVENTDEV. > > > (I prefer the latter). > > > > I choose the naming conversion based on the interface. API side it is > > rte_event_ and driver side it is rte_eventdev_* > > > > rte_event_dev_count; > > rte_event_dev_get_dev_id > > rte_event_dev_socket_id; > > rte_event_dev_info_get; > > rte_event_dev_configure; > > rte_event_dev_start; > > rte_event_dev_stop; > > rte_event_dev_close; > > rte_event_dev_dump; > > > > rte_event_port_default_conf_get; > > rte_event_port_setup; > > rte_event_port_dequeue_depth; > > rte_event_port_enqueue_depth; > > rte_event_port_count; > > rte_event_port_link; > > rte_event_port_unlink; > > rte_event_port_links_get; > > > > rte_event_queue_default_conf_get > > rte_event_queue_setup; > > rte_event_queue_count; > > rte_event_queue_priority; > > > > rte_event_dequeue_wait_time; > > > > rte_eventdev_pmd_allocate; > > rte_eventdev_pmd_release; > > rte_eventdev_pmd_vdev_init; > > rte_eventdev_pmd_pci_probe; > > rte_eventdev_pmd_pci_remove; > > For this last set, you probably are ok prefixing with just "rte_event_pmd_", and drop the "dev" as unnecessary. That makes everything have a prefix of "rte_event_" and thereafter dev, port, queue, or pmd as appropriate. OK. I will change the last set to rte_event_pmd_* > > /Bruce