[dpdk-dev] [PATCH 1/5] ethdev: add multicast address filtering

Stephen Hemminger stephen at networkplumber.org
Thu May 28 18:22:56 CEST 2015


On Thu, 28 May 2015 17:05:19 +0200
Ivan Boule <ivan.boule at 6wind.com> wrote:

> +	if (port_id >= nb_ports) {
> +		PMD_DEBUG_TRACE("Invalid port_id=%d\n", port_id);
> +		return -ENODEV;
> +	}
> +

Use rte_eth_dev_is_valid_port() function instead.


More information about the dev mailing list