Commit db59fdb5 authored by Steffen Vogel's avatar Steffen Vogel 🎅🏼
Browse files

fix naming of factories

parent 472f6699
Pipeline #305426 failed with stages
in 1 minute and 1 second
......@@ -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!");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment