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

fix naming of factories

This commit is contained in:
Steffen Vogel 2020-07-08 15:10:26 +02:00
parent 8bb033f89d
commit 10b8878279
2 changed files with 6 additions and 6 deletions

View file

@ -92,14 +92,14 @@ setupFpgaCard(const std::string &configFile, const std::string &fpgaName)
}
// get the FPGA card plugin
auto fpgaCardPlugin = plugin::Registry::lookup<fpga::PCIeCardFactory>("pcie");
if (fpgaCardPlugin == nullptr) {
auto fpgaCardFactory = plugin::Registry::lookup<fpga::PCIeCardFactory>("pcie");
if (fpgaCardFactory == nullptr) {
logger->error("No FPGA plugin found");
exit(1);
}
// create all FPGA card instances using the corresponding plugin
auto cards = fpgaCardPlugin->make(fpgas, pciDevices, vfioContainer);
auto cards = fpgaCardFactory->make(fpgas, pciDevices, vfioContainer);
for (auto &fpgaCard : cards) {
if (fpgaCard->name == fpgaName) {

View file

@ -73,11 +73,11 @@ static void init()
cr_assert(json_object_size(json) > 0, "No FPGAs defined in config");
// get the FPGA card plugin
auto fpgaCardPlugin = plugin::Registry::lookup<fpga::PCIeCardFactory>("pcie");
cr_assert_not_null(fpgaCardPlugin, "No plugin for FPGA card found");
auto fpgaCardFactory = plugin::Registry::lookup<fpga::PCIeCardFactory>("pcie");
cr_assert_not_null(fpgaCardFactory, "No plugin for FPGA card found");
// create all FPGA card instances using the corresponding plugin
state.cards = fpgaCardPlugin->make(fpgas, pciDevices, vfioContainer);
state.cards = fpgaCardFactory->make(fpgas, pciDevices, vfioContainer);
cr_assert(state.cards.size() != 0, "No FPGA cards found!");