1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

fpga: do not return poll FDs if we are not using FDs

Signed-off-by: Niklas Eiling <niklas.eiling@eonerc.rwth-aachen.de>
This commit is contained in:
Niklas Eiling 2024-06-05 17:35:47 +02:00 committed by pipeacosta
parent b4ef71aa74
commit b5cd0e530c

View file

@ -341,6 +341,11 @@ int FpgaNode::slowWrite(Sample *smps[], unsigned cnt) {
}
std::vector<int> FpgaNode::getPollFDs() {
if (!lowLatencyMode && card && !card->polling) {
return card->vfioDevice->getEventfdList();
} else {
return {};
}
return card->vfioDevice->getEventfdList();
}