Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ProjectsByJackHe committed Jan 9, 2025
1 parent 28955b3 commit b325728
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/platform/datapath_winkernel.c
Original file line number Diff line number Diff line change
Expand Up @@ -600,6 +600,9 @@ CxPlatDataPathQuerySockoptSupport(

} while (FALSE);

//
// Some USO/URO bug blocks TTL feature support on Windows Server 2022.
//
if (CxPlatform.dwBuildNumber != 20348) {
Datapath->Features |= CXPLAT_DATAPATH_FEATURE_TTL;
}
Expand Down
7 changes: 7 additions & 0 deletions src/platform/datapath_winuser.c
Original file line number Diff line number Diff line change
Expand Up @@ -700,6 +700,10 @@ CxPlatDataPathQuerySockoptSupport(
Datapath->Features |= CXPLAT_DATAPATH_FEATURE_RECV_COALESCING;
}
}

//
// Some USO/URO bug blocks TTL feature support on Windows Server 2022.
//
if (CxPlatform.dwBuildNumber != 20348) {
Datapath->Features |= CXPLAT_DATAPATH_FEATURE_TTL;
}
Expand Down Expand Up @@ -819,6 +823,9 @@ DataPathInitialize(
// Check for port reservation support.
//
#ifndef QUIC_UWP_BUILD
//
// Only RS5 and newer can use the port reservation feature safely.
//
if (CxPlatform.dwBuildNumber >= 17763) {
Datapath->Features |= CXPLAT_DATAPATH_FEATURE_PORT_RESERVATIONS;
}
Expand Down
2 changes: 1 addition & 1 deletion src/platform/platform_winuser.c
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ CxPlatInitialize(
}
FreeLibrary(NtDllHandle);
}
CXPLAT_DBG_ASSERT(SuccessfullySetVersion); // TODO: Is the assert here enough or is there an appropritae QUIC_STATUS we return?
CXPLAT_DBG_ASSERT(SuccessfullySetVersion); // TODO: Is the assert here enough or is there an appropriate QUIC_STATUS we return?

if (QUIC_FAILED(Status = CxPlatProcessorInfoInit())) {
QuicTraceEvent(
Expand Down

0 comments on commit b325728

Please sign in to comment.