Skip to content
This repository has been archived by the owner on Sep 24, 2024. It is now read-only.

Commit

Permalink
[TEST]: change to batched SubmitDataPlaneRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
monkey-sheng committed Dec 26, 2023
1 parent 5b25772 commit b5943bd
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions DPDPU/NetworkEngine/Source/PEPOTLDKTCP.c
Original file line number Diff line number Diff line change
Expand Up @@ -2857,6 +2857,10 @@ NetfeRxTxProcess(
offsetInMsg = 0;
totalBytesOfDPUReqs = 0;

RequestIdT firstIndex = FeLcore->ReadOpsTailPointer;
DataPlaneRequestContext* firstCtxt = &(FeLcore->ReadOps[firstIndex].ReadCtxt);
printf("DPU offlaoding firstIndex: %hu\n", firstIndex);

for (i = 0; i != FeLcore->NumReqsForDPU; i++) {
ReadOpDescriptorT* readOp = &FeLcore->ReadOps[FeLcore->ReadOpsTailPointer];
readOp->ReadResp.Result = DDS_ERROR_CODE_IO_PENDING;
Expand Down Expand Up @@ -2888,18 +2892,27 @@ NetfeRxTxProcess(
#endif
readOp->StreamCtxt = (ContextT)FeStream;

SubmitDataPlaneRequest(
// now batching, don't submit one by one
/* SubmitDataPlaneRequest(
FS,
&readOp->ReadCtxt,
true,
DDS_DPU_IO_SLOT_NUMBER_BASE + FeLcore->ReadOpsTailPointer
);
); */
// `SubmitDataPlaneRequest` signature has changed

readOp->ReadCtxt.IsRead = 1;

FeLcore->ReadOpsTailPointer++;
if (FeLcore->ReadOpsTailPointer == DDS_MAX_OUTSTANDING_IO) {
FeLcore->ReadOpsTailPointer = 0;
}
}
//
// Batched SubmitDataPlaneRequest() call here
//
//
SubmitDataPlaneRequest(FS, firstCtxt, firstIndex, n);

if (FeLcore->NumReqsForHost) {
//
Expand Down

0 comments on commit b5943bd

Please sign in to comment.