jfjoch_receiver: minor fix in absence of IBVERBS

This commit is contained in:
2023-07-27 13:31:21 +02:00
parent 52aa879d47
commit 8def7d624c
+3 -2
View File
@@ -53,12 +53,13 @@ AcquisitionDevice *SetupAcquisitionDevice(const nlohmann::json &input, uint16_t
std::vector<uint16_t> tmp(RAW_MODULE_SIZE);
auto filename = input["custom_test_frame"].get<std::string>();
std::fstream file(filename.c_str(), std::fstream::in | std::fstream::binary);
file.read((char *) tmp.data(),RAW_MODULE_SIZE * sizeof(uint16_t));
file.read((char *) tmp.data(), RAW_MODULE_SIZE * sizeof(uint16_t));
pci_dev->SetCustomInternalGeneratorFrame(tmp);
}
ret = pci_dev;
}
#ifdef JFJOCH_USE_IBVERBS
} else if (input.contains("type") && (input["type"] == "mlx_raw_eth")) {
else if (input.contains("type") && (input["type"] == "mlx_raw_eth")) {
auto mlx_dev = new MlxRawEthDevice(pci_slot, data_stream, frame_buffer_size, numa_node);
mlx_dev->SetIPv4Address(ipv4_addr);
mlx_dev->SetMACAddress(MacAddressFromStr(input["mac_addr"].get<std::string>()));