From: Cunming Liang Date: Wed, 4 Nov 2015 08:45:33 +0000 (+0800) Subject: igb: avoid enabling interrupt with zero vector X-Git-Tag: spdx-start~8128 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=5ede7566c3bc2178dd75ca6f94b5e3de072ac129;p=dpdk.git igb: avoid enabling interrupt with zero vector Signed-off-by: Cunming Liang --- diff --git a/drivers/net/e1000/igb_ethdev.c b/drivers/net/e1000/igb_ethdev.c index 1332974c12..76d2acc79a 100644 --- a/drivers/net/e1000/igb_ethdev.c +++ b/drivers/net/e1000/igb_ethdev.c @@ -1122,11 +1122,11 @@ eth_igb_start(struct rte_eth_dev *dev) igb_pf_host_configure(dev); /* check and configure queue intr-vector mapping */ - if (dev->data->dev_conf.intr_conf.rxq != 0) + if (dev->data->dev_conf.intr_conf.rxq != 0) { intr_vector = dev->data->nb_rx_queues; - - if (rte_intr_efd_enable(intr_handle, intr_vector)) - return -1; + if (rte_intr_efd_enable(intr_handle, intr_vector)) + return -1; + } if (rte_intr_dp_is_en(intr_handle)) { intr_handle->intr_vec =