[dpdk-dev] [PATCH v9 09/12] ixgbe: enable rx queue interrupts for both PF and VF
Stephen Hemminger
stephen at networkplumber.org
Fri May 29 17:57:17 CEST 2015
On Fri, 29 May 2015 16:45:22 +0800
Cunming Liang <cunming.liang at intel.com> wrote:
> + if (intr_handle->intr_vec == NULL) {
> + PMD_INIT_LOG(ERR, "Failed to allocate %d rx_queues"
> + "intr_vec\n", dev->data->nb_rx_queues);
> + return -1;
> + }
> +
Please return an actual error code (like -ENOMEM) rather than generic -1.
It allows for easier diagnosis when using API's.
More information about the dev
mailing list