Skip to content

Commit

Permalink
removed IgnoreOrder
Browse files Browse the repository at this point in the history
  • Loading branch information
gaurav2699 committed Dec 3, 2024
1 parent e7b4add commit 5fdcc8d
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/core/connection.c
Original file line number Diff line number Diff line change
Expand Up @@ -5233,7 +5233,7 @@ QuicConnRecvFrames(
}

Connection->NextRecvAckFreqSeqNum = Frame.SequenceNumber + 1;
Connection->State.IgnoreReordering = Frame.IgnoreOrder;
Connection->State.IgnoreReordering = Frame.ReorderingThreshold == 0;
if (Frame.UpdateMaxAckDelay == 0) {
Connection->Settings.MaxAckDelayMs = 0;
} else if (Frame.UpdateMaxAckDelay < 1000) {
Expand Down
7 changes: 1 addition & 6 deletions src/core/frame.c
Original file line number Diff line number Diff line change
Expand Up @@ -1238,7 +1238,6 @@ typedef struct QUIC_ACK_FREQUENCY_EXTRAS {

union {
struct {
uint8_t IgnoreOrder : 1;
uint8_t IgnoreCE : 1;
uint8_t Reserved : 6;
};
Expand Down Expand Up @@ -1268,11 +1267,9 @@ QuicAckFrequencyFrameEncode(
return FALSE;
}

CXPLAT_DBG_ASSERT(Frame->IgnoreOrder <= 1); // IgnoreOrder should only be 0 or 1.
CXPLAT_DBG_ASSERT(Frame->IgnoreCE <= 1); // IgnoreCE should only be 0 or 1.

QUIC_ACK_FREQUENCY_EXTRAS Extras = { .Value = 0 };
Extras.IgnoreOrder = Frame->IgnoreOrder;
Extras.IgnoreCE = Frame->IgnoreCE;

Buffer = Buffer + *Offset;
Expand Down Expand Up @@ -1305,7 +1302,6 @@ QuicAckFrequencyFrameDecode(
!QuicUint8tDecode(BufferLength, Buffer, Offset, &Extras.Value)) {
return FALSE;
}
Frame->IgnoreOrder = Extras.IgnoreOrder;
Frame->IgnoreCE = Extras.IgnoreCE;
return TRUE;
}
Expand Down Expand Up @@ -1966,15 +1962,14 @@ QuicFrameLog(

QuicTraceLogVerbose(
FrameLogAckFrequency,
"[%c][%cX][%llu] ACK_FREQUENCY SeqNum:%llu PktTolerance:%llu MaxAckDelay:%llu ReorderThreshold:%llu IgnoreOrder:%hhu IgnoreCE:%hhu",
"[%c][%cX][%llu] ACK_FREQUENCY SeqNum:%llu PktTolerance:%llu MaxAckDelay:%llu ReorderThreshold:%llu IgnoreCE:%hhu",
PtkConnPre(Connection),
PktRxPre(Rx),
PacketNumber,
Frame.SequenceNumber,
Frame.PacketTolerance,
Frame.UpdateMaxAckDelay,
Frame.ReorderingThreshold,
Frame.IgnoreOrder,
Frame.IgnoreCE);
break;
}
Expand Down
1 change: 0 additions & 1 deletion src/core/frame.h
Original file line number Diff line number Diff line change
Expand Up @@ -847,7 +847,6 @@ typedef struct QUIC_ACK_FREQUENCY_EX {
QUIC_VAR_INT PacketTolerance;
QUIC_VAR_INT UpdateMaxAckDelay; // In microseconds (us)
QUIC_VAR_INT ReorderingThreshold;
BOOLEAN IgnoreOrder;
BOOLEAN IgnoreCE;

} QUIC_ACK_FREQUENCY_EX;
Expand Down
1 change: 0 additions & 1 deletion src/core/send.c
Original file line number Diff line number Diff line change
Expand Up @@ -897,7 +897,6 @@ QuicSendWriteFrames(
Frame.PacketTolerance = Connection->PeerPacketTolerance;
Frame.UpdateMaxAckDelay = MS_TO_US(QuicConnGetAckDelay(Connection));
Frame.ReorderingThreshold = Connection->PeerReorderingThreshold;
Frame.IgnoreOrder = FALSE;
Frame.IgnoreCE = FALSE;

if (QuicAckFrequencyFrameEncode(
Expand Down

0 comments on commit 5fdcc8d

Please sign in to comment.