Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamically load/unload xdp dll #3770

Merged
merged 2 commits into from
Jul 21, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
make it compile
mtfriesen committed Jul 21, 2023
commit 700c12dd0e0eb3a31210e9920118c94095917c22
7 changes: 3 additions & 4 deletions src/platform/datapath_raw_xdp_win.c
Original file line number Diff line number Diff line change
@@ -1018,8 +1018,7 @@ CxPlatDpRawInitialize(
const uint16_t* ProcessorList;

CxPlatListInitializeHead(&Xdp->Interfaces);
XDP_LOAD_API_CONTEXT XdpApiLoadContext;
if (QUIC_FAILED(XdpLoadApi(XDP_VERSION_PRERELEASE, &Xdp->, &Xdp->XdpApi))) {
if (QUIC_FAILED(XdpLoadApi(XDP_VERSION_PRERELEASE, &Xdp->XdpApiLoadContext, &Xdp->XdpApi))) {
Status = QUIC_STATUS_NOT_SUPPORTED;
goto Error;
}
@@ -1233,7 +1232,7 @@ CxPlatDpRawInitialize(
}

if (Xdp->XdpApi) {
XdpUnloadApi(&Xdp->XdpApiLoadContext, Xdp->XdpApi);
XdpUnloadApi(Xdp->XdpApiLoadContext, Xdp->XdpApi);
}
}

@@ -1261,7 +1260,7 @@ CxPlatDpRawRelease(
CxPlatDpRawInterfaceUninitialize(Interface);
CxPlatFree(Interface, IF_TAG);
}
XdpCloseApi(&Xdp->XdpApiLoadContext, Xdp->XdpApi);
XdpUnloadApi(Xdp->XdpApiLoadContext, Xdp->XdpApi);
CxPlatDataPathUninitializeComplete((CXPLAT_DATAPATH*)Xdp);
}
}