jfjoch_receiver: minor fix in absence of IBVERBS
This commit is contained in:
@@ -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>()));
|
||||
|
||||
Reference in New Issue
Block a user