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

draft km xdp proto #4023

Draft
wants to merge 13 commits into
base: main
Choose a base branch
from
Draft

draft km xdp proto #4023

wants to merge 13 commits into from

Conversation

nigriMSFT
Copy link
Contributor

Description

Describe the purpose of and changes within this Pull Request.

Testing

Do any existing tests cover this change? Are new tests needed?

Documentation

Is there any documentation impact for this change?

Comment on lines 320 to 327
$CurrentCommitHash = Get-GitHash -RepoDir $RootDir
$CurrentCommitDate = Get-CommitDate -RepoDir $RootDir
# $CurrentCommitHash = Get-GitHash -RepoDir $RootDir
# $CurrentCommitDate = Get-CommitDate -RepoDir $RootDir
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Revert this please

@@ -314,11 +319,12 @@ if ($Local) {
$RemoteDirectory = Invoke-TestCommand -Session $Session -ScriptBlock {
Join-Path (Get-Location) "Tests"
}
$RemoteDirectory = "C:\msquic\artifacts\bin"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Revert

@@ -365,34 +371,34 @@ function LocalTeardown {
$RemoteExePath = Get-ExePath -PathRoot $RemoteDirectory -Platform $RemotePlatform -IsRemote $true
$LocalExePath = Get-ExePath -PathRoot $LocalDirectory -Platform $LocalPlatform -IsRemote $false

# See if we are an AZP PR
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Revert this please, as well as all other changes like this

Comment on lines +464 to +466
if (TimeoutMs == 0xffffffff) {
return KeWaitForSingleObject(Event, Executive, KernelMode, FALSE, NULL);
} else {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this necessary? It shouldn't call this function if it's not waiting with a timeout.


if (IsListEmpty(&queue->Events)) {
CxPlatDispatchLockRelease(&queue->Lock);
CxPlatEventWaitWithTimeout(queue->EventsAvailable, wait_time);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If wait_time is zero, then we shouldn't lock again.

@@ -10,6 +10,7 @@
--*/

#include "HpsClient.h"
#include <stdlib.h>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All these changes should be unnecessary in the latest version of secnetperf.

Comment on lines +321 to +325
if (Status == QUIC_STATUS_PENDING) {
return QUIC_STATUS_PENDING;
} else {
return Status;
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't you just always return Status?

@@ -221,6 +221,9 @@ CxPlatWorkersLazyStart(
for (uint32_t i = 0; i < CxPlatWorkerCount; ++i) {
if (CxPlatWorkers[i].InitializedThread) {
CxPlatWorkers[i].StoppingThread = TRUE;
// QuicTraceLogInfo(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Most of these are just commented out code. Remove?

Copy link

codecov bot commented Dec 29, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (a11b58b) 86.17% compared to head (b6e4d07) 86.85%.
Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4023      +/-   ##
==========================================
+ Coverage   86.17%   86.85%   +0.67%     
==========================================
  Files          56       56              
  Lines       16953    16929      -24     
==========================================
+ Hits        14610    14704      +94     
+ Misses       2343     2225     -118     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants