Skip to content

Commit

Permalink
make status code valid for both user/kernel
Browse files Browse the repository at this point in the history
  • Loading branch information
ami-GS committed Dec 13, 2024
1 parent e4c8271 commit 57ba0a0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/platform/datapath_raw_xdp_wincommon.h
Original file line number Diff line number Diff line change
Expand Up @@ -1543,13 +1543,13 @@ CxPlatXdpExecute(
CxPlatZeroMemory(
&Queue->RxIoSqe.DatapathSqe.Sqe.Overlapped,
sizeof(Queue->RxIoSqe.DatapathSqe.Sqe.Overlapped));
HRESULT hr =
XDP_STATUS hr =
XskNotifyAsync(
Queue->RxXsk, XSK_NOTIFY_FLAG_WAIT_RX,
&Queue->RxIoSqe.DatapathSqe.Sqe.Overlapped);
if (hr == HRESULT_FROM_WIN32(ERROR_IO_PENDING)) {
if (hr == XDP_STATUS_PENDING) {
Queue->RxQueued = TRUE;
} else if (hr == S_OK) {
} else if (hr == XDP_STATUS_SUCCESS) {
Partition->Ec.Ready = TRUE;
} else {
QuicTraceEvent(
Expand All @@ -1567,13 +1567,13 @@ CxPlatXdpExecute(
CxPlatZeroMemory(
&Queue->TxIoSqe.DatapathSqe.Sqe.Overlapped,
sizeof(Queue->TxIoSqe.DatapathSqe.Sqe.Overlapped));
HRESULT hr =
XDP_STATUS hr =
XskNotifyAsync(
Queue->TxXsk, XSK_NOTIFY_FLAG_WAIT_TX,
&Queue->TxIoSqe.DatapathSqe.Sqe.Overlapped);
if (hr == HRESULT_FROM_WIN32(ERROR_IO_PENDING)) {
if (hr == XDP_STATUS_PENDING) {
Queue->TxQueued = TRUE;
} else if (hr == S_OK) {
} else if (hr == XDP_STATUS_SUCCESS) {
Partition->Ec.Ready = TRUE;
} else {
QuicTraceEvent(
Expand Down

0 comments on commit 57ba0a0

Please sign in to comment.