]> git.droids-corp.org - dpdk.git/commitdiff
interrupt: fix request notifier interrupt processing
authorMaciej Szwed <maciej.szwed@intel.com>
Tue, 19 Oct 2021 10:06:57 +0000 (12:06 +0200)
committerDavid Marchand <david.marchand@redhat.com>
Mon, 8 Nov 2021 17:26:07 +0000 (18:26 +0100)
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 <maciej.szwed@intel.com>
lib/eal/linux/eal_interrupts.c

index 15a27a2abf9c96edc8b1815fb179f3666c414e41..6e3925efd46f1a165ef0bc5acba99d7160ba5267 100644 (file)
@@ -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: