From 1c7d57d5f51e035e59bc5392f35bd835abad015b Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Wed, 7 Dec 2022 17:04:45 +0100 Subject: [PATCH] fpga: do not reset VFIO container by hand We can rely on the Dtor of the global shared_ptr to destruct the container Signed-off-by: Steffen Vogel --- include/villas/nodes/fpga.hpp | 3 --- lib/nodes/fpga.cpp | 7 ------- 2 files changed, 10 deletions(-) diff --git a/include/villas/nodes/fpga.hpp b/include/villas/nodes/fpga.hpp index dc5002712..bb79448ee 100644 --- a/include/villas/nodes/fpga.hpp +++ b/include/villas/nodes/fpga.hpp @@ -114,9 +114,6 @@ public: virtual int start(SuperNode *sn); - - virtual - int stop(); }; } /* namespace node */ diff --git a/lib/nodes/fpga.cpp b/lib/nodes/fpga.cpp index 291d236b1..8f295a262 100644 --- a/lib/nodes/fpga.cpp +++ b/lib/nodes/fpga.cpp @@ -259,11 +259,4 @@ int FpgaNodeFactory::start(SuperNode *sn) return 0; } -int FpgaNodeFactory::stop() -{ - vfioContainer.reset(); // TODO: is this the proper way? - - return 0; -} - static FpgaNodeFactory p;