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:
parent
b4ef71aa74
commit
b5cd0e530c
1 changed files with 5 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue