From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH 2/4] eventdev: implement the northbound APIs Date: Wed, 23 Nov 2016 20:18:09 +0100 Message-ID: <4871697.UraAQdum7A@xps13> References: <1479447902-3700-1-git-send-email-jerin.jacob@caviumnetworks.com> <1479447902-3700-3-git-send-email-jerin.jacob@caviumnetworks.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, bruce.richardson@intel.com, harry.van.haaren@intel.com, hemant.agrawal@nxp.com, gage.eads@intel.com To: Jerin Jacob Return-path: Received: from mail-wj0-f178.google.com (mail-wj0-f178.google.com [209.85.210.178]) by dpdk.org (Postfix) with ESMTP id B36362BB0 for ; Wed, 23 Nov 2016 20:18:13 +0100 (CET) Received: by mail-wj0-f178.google.com with SMTP id v7so15567668wjy.2 for ; Wed, 23 Nov 2016 11:18:13 -0800 (PST) In-Reply-To: <1479447902-3700-3-git-send-email-jerin.jacob@caviumnetworks.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" 2016-11-18 11:15, Jerin Jacob: > This patch set defines the southbound driver interface > and implements the common code required for northbound > eventdev API interface. Please make two separate patches. > +#ifdef RTE_LIBRTE_EVENTDEV_DEBUG > +#define RTE_PMD_DEBUG_TRACE(...) \ > + rte_pmd_debug_trace(__func__, __VA_ARGS__) > +#else > +#define RTE_PMD_DEBUG_TRACE(...) > +#endif I would like to discuss the need for a debug option as there is already a log level. > +/* Logging Macros */ > +#define EDEV_LOG_ERR(fmt, args...) \ Every symbols and macros in an exported header must be prefixed by RTE_. > +/* 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). > +struct rte_eventdev_driver { > + struct rte_pci_driver pci_drv; /**< The PMD is also a PCI driver. */ It must not be directly linked to the underlying bus.