From 4ae1d081fb75e045e0c6b9e774647056715cd204 Mon Sep 17 00:00:00 2001 From: Wenzhuo Lu Date: Wed, 24 Jan 2018 16:16:50 +0800 Subject: [PATCH] net/i40e: fix VF Rx interrupt enabling When using UIO, after enabling the interrupt to get the PF message, VF RX queue interrupt is not working. It's expected, as UIO doesn't support multiple interrupt. So, PMD should not try to enable RX queue interrupt. Then APP can know the RX queue interrupt is not enabled and only choose the polling mode. Fixes: ae19955e7c86 ("i40evf: support reporting PF reset") CC: stable@dpdk.org Signed-off-by: Wenzhuo Lu Acked-by: Helin Zhang Acked-by: Beilei Xing --- drivers/net/i40e/i40e_ethdev_vf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/i40e/i40e_ethdev_vf.c b/drivers/net/i40e/i40e_ethdev_vf.c index 6ac3f8c04a..57f76131a0 100644 --- a/drivers/net/i40e/i40e_ethdev_vf.c +++ b/drivers/net/i40e/i40e_ethdev_vf.c @@ -1976,7 +1976,8 @@ i40evf_dev_start(struct rte_eth_dev *dev) dev->data->nb_tx_queues); /* check and configure queue intr-vector mapping */ - if (dev->data->dev_conf.intr_conf.rxq != 0) { + if (rte_intr_cap_multiple(intr_handle) && + dev->data->dev_conf.intr_conf.rxq) { intr_vector = dev->data->nb_rx_queues; if (rte_intr_efd_enable(intr_handle, intr_vector)) return -1; -- 2.20.1