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