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

Add Load Balancing Tests #1707

Merged
merged 12 commits into from
Jun 14, 2021
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
Next Next commit
Run in kernel mode too
nibanks committed Jun 11, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 27945fa6a649199a249e95c5bf5d40c13577c009
6 changes: 5 additions & 1 deletion src/test/MsQuicTests.h
Original file line number Diff line number Diff line change
@@ -849,4 +849,8 @@ typedef struct {
#define IOCTL_QUIC_RUN_MTU_DISCOVERY \
QUIC_CTL_CODE(68, METHOD_BUFFERED, FILE_WRITE_DATA)

#define QUIC_MAX_IOCTL_FUNC_CODE 68
#define IOCTL_QUIC_RUN_LOAD_BALANCED_HANDSHAKE \
QUIC_CTL_CODE(69, METHOD_BUFFERED, FILE_WRITE_DATA)
// int - Family

#define QUIC_MAX_IOCTL_FUNC_CODE 69
2 changes: 1 addition & 1 deletion src/test/bin/quic_gtest.cpp
Original file line number Diff line number Diff line change
@@ -985,7 +985,7 @@ TEST_P(WithFamilyArgs, ChangeMaxStreamIDs) {
TEST_P(WithFamilyArgs, LoadBalanced) {
TestLoggerT<ParamType> Logger("QuicTestLoadBalancedHandshake", GetParam());
if (TestingKernelMode) {
//ASSERT_TRUE(DriverClient.Run(IOCTL_QUIC_RUN_NAT_ADDR_REBIND, GetParam().Family));
ASSERT_TRUE(DriverClient.Run(IOCTL_QUIC_RUN_LOAD_BALANCED_HANDSHAKE, GetParam().Family));
} else {
QuicTestLoadBalancedHandshake(GetParam().Family);
}
8 changes: 7 additions & 1 deletion src/test/bin/winkernel/control.cpp
Original file line number Diff line number Diff line change
@@ -438,7 +438,8 @@ size_t QUIC_IOCTL_BUFFER_SIZES[] =
0,
0,
0,
sizeof(QUIC_RUN_MTU_DISCOVERY_PARAMS)
sizeof(QUIC_RUN_MTU_DISCOVERY_PARAMS),
sizeof(INT32)
};

CXPLAT_STATIC_ASSERT(
@@ -1058,6 +1059,11 @@ QuicTestCtlEvtIoDeviceControl(
Params->MtuDiscoveryParams.RaiseMinimumMtu));
break;

case IOCTL_QUIC_RUN_LOAD_BALANCED_HANDSHAKE:
CXPLAT_FRE_ASSERT(Params != nullptr);
QuicTestCtlRun(QuicTestLoadBalancedHandshake(Params->Family));
break;

default:
Status = STATUS_NOT_IMPLEMENTED;
break;