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:
parent
8bb033f89d
commit
10b8878279
2 changed files with 6 additions and 6 deletions
|
@ -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) {
|
||||
|
|
|
@ -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!");
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue