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.

