From: Satha Rao <[email protected]>
Correct the number of bytes to read during vdev interrupt processing.
The driver sets this value, and the rxtx interrupt handling already
performs this correctly.
Fixes: 99998feec90 ("eal/linux: add interrupt type for vdev")
Cc: [email protected]
Signed-off-by: Satha Rao <[email protected]>
---
lib/eal/linux/eal_interrupts.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/lib/eal/linux/eal_interrupts.c b/lib/eal/linux/eal_interrupts.c
index 6436f796eb..80eef7ec4b 100644
--- a/lib/eal/linux/eal_interrupts.c
+++ b/lib/eal/linux/eal_interrupts.c
@@ -949,6 +949,10 @@ eal_intr_process_interrupts(struct epoll_event *events,
int nfds)
break;
#endif
case RTE_INTR_HANDLE_VDEV:
+ /* For vdev, number of bytes to read is set by driver */
+ bytes_read =
rte_intr_efd_counter_size_get(src->intr_handle);
+ call = true;
+ break;
case RTE_INTR_HANDLE_EXT:
bytes_read = 0;
call = true;
--
2.25.1