From: Maciej Szwed Date: Tue, 19 Oct 2021 10:06:57 +0000 (+0200) Subject: interrupt: fix request notifier interrupt processing X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=aeed570a211fe31c976f9f4de07039cb7c8a125e;p=dpdk.git interrupt: fix request notifier interrupt processing We should call read() on RTE_INTR_HANDLE_VFIO_REQ event to confirm that event. Fixes: 0eb8a1c4c786 ("vfio: add request notifier interrupt") Cc: stable@dpdk.org Signed-off-by: Maciej Szwed --- diff --git a/lib/eal/linux/eal_interrupts.c b/lib/eal/linux/eal_interrupts.c index 15a27a2abf..6e3925efd4 100644 --- a/lib/eal/linux/eal_interrupts.c +++ b/lib/eal/linux/eal_interrupts.c @@ -947,17 +947,14 @@ eal_intr_process_interrupts(struct epoll_event *events, int nfds) bytes_read = sizeof(buf.timerfd_num); break; #ifdef VFIO_PRESENT +#ifdef HAVE_VFIO_DEV_REQ_INTERFACE + case RTE_INTR_HANDLE_VFIO_REQ: +#endif case RTE_INTR_HANDLE_VFIO_MSIX: case RTE_INTR_HANDLE_VFIO_MSI: case RTE_INTR_HANDLE_VFIO_LEGACY: bytes_read = sizeof(buf.vfio_intr_count); break; -#ifdef HAVE_VFIO_DEV_REQ_INTERFACE - case RTE_INTR_HANDLE_VFIO_REQ: - bytes_read = 0; - call = true; - break; -#endif #endif case RTE_INTR_HANDLE_VDEV: case RTE_INTR_HANDLE_EXT: