AcquisitionDevice: Completion queue is handled by particular implementation of the device
This commit is contained in:
@@ -29,10 +29,6 @@ int32_t MlxRawEthDevice::GetNUMANode() const {
|
||||
return numa_node;
|
||||
}
|
||||
|
||||
Completion MlxRawEthDevice::ReadCompletion() {
|
||||
return completion_queue.GetBlocking();
|
||||
}
|
||||
|
||||
void MlxRawEthDevice::HW_WriteActionRegister(const ActionConfig *job) {
|
||||
memcpy(&cfg, job, sizeof(ActionConfig));
|
||||
}
|
||||
@@ -45,7 +41,7 @@ void MlxRawEthDevice::MeasureThread() {
|
||||
|
||||
uint64_t packet_count = 0;
|
||||
|
||||
completion_queue.Put(Completion{
|
||||
work_completion_queue.Put(Completion{
|
||||
.type = Completion::Type::Start
|
||||
});
|
||||
|
||||
@@ -54,7 +50,7 @@ void MlxRawEthDevice::MeasureThread() {
|
||||
IBCompletionQueue cq(context, BUFFER_COUNT+2);
|
||||
IBQueuePair qp(pd, cq, 16, BUFFER_COUNT);
|
||||
IBRegBuffer buffer(pd, BUFFER_COUNT, BUFFER_SIZE, numa_node);
|
||||
ProcessJFPacket process(completion_queue, wr_queue, cfg.nmodules);
|
||||
ProcessJFPacket process(work_completion_queue, wr_queue, cfg.nmodules);
|
||||
|
||||
qp.Init();
|
||||
qp.ReadyToReceive();
|
||||
@@ -86,7 +82,7 @@ void MlxRawEthDevice::MeasureThread() {
|
||||
logger->ErrorException(e);
|
||||
}
|
||||
|
||||
completion_queue.Put(Completion{
|
||||
work_completion_queue.Put(Completion{
|
||||
.type = Completion::Type::End,
|
||||
.frame_number = packet_count
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user