From b5cd0e530c6a7729bf6e6b21458e746ff5b98a2b Mon Sep 17 00:00:00 2001 From: Niklas Eiling Date: Wed, 5 Jun 2024 17:35:47 +0200 Subject: [PATCH] fpga: do not return poll FDs if we are not using FDs Signed-off-by: Niklas Eiling --- lib/nodes/fpga.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/nodes/fpga.cpp b/lib/nodes/fpga.cpp index f4acd4ec6..ec5d90952 100644 --- a/lib/nodes/fpga.cpp +++ b/lib/nodes/fpga.cpp @@ -341,6 +341,11 @@ int FpgaNode::slowWrite(Sample *smps[], unsigned cnt) { } std::vector FpgaNode::getPollFDs() { + if (!lowLatencyMode && card && !card->polling) { + return card->vfioDevice->getEventfdList(); + } else { + return {}; + } return card->vfioDevice->getEventfdList(); }