[dpdk-dev] [PATCH v5 1/6] ethdev: add rx interrupt enable/disable functions

Stephen Hemminger stephen at networkplumber.org
Mon Feb 23 17:59:18 CET 2015


On Tue, 24 Feb 2015 00:55:37 +0800
Zhou Danny <danny.zhou at intel.com> wrote:

> +int
> +rte_eth_dev_rx_queue_intr_enable(uint8_t port_id,
> +				uint16_t queue_id)
> +{
> +	struct rte_eth_dev *dev;
> +
> +	if (port_id >= nb_ports) {
> +		PMD_DEBUG_TRACE("Invalid port_id=%d\n", port_id);
> +		return (-ENODEV);

Please don't use the BSD style of extra useless paren's around
returns.


More information about the dev mailing list