Skip to content

Commit 0fdcc91

Browse files
committed
Changes for latest code
1 parent 8dbaa0f commit 0fdcc91

File tree

7 files changed

+47
-46
lines changed

7 files changed

+47
-46
lines changed

src/core/frame.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,8 @@ typedef enum QUIC_FRAME_TYPE {
174174
} QUIC_FRAME_TYPE;
175175

176176
CXPLAT_STATIC_ASSERT(
177-
QUIC_FRAME_MAX_SUPPORTED <= (uint64_t)UINT16_MAX,
178-
"Sent packet metadata 'Type' field above assumes frames types fit in 16-bits");
177+
QUIC_FRAME_MAX_SUPPORTED <= (uint64_t)UINT32_MAX,
178+
"Sent packet metadata 'Type' field above assumes frames types fit in 32-bits");
179179

180180
CXPLAT_STATIC_ASSERT(
181181
QUIC_FRAME_MAX_SUPPORTED <= (uint64_t)UINT32_MAX,

src/core/packet_space.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ QuicPacketSpaceInitialize(
2424
)
2525
{
2626
QUIC_PACKET_SPACE* Packets =
27-
CxPlatPoolAlloc(&Connection->Partition->PacketSpacePool);
27+
CxPlatPoolAlloc(&PathID->Connection->Partition->PacketSpacePool);
2828
if (Packets == NULL) {
2929
QuicTraceEvent(
3030
AllocFailure,

src/core/pathid.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -793,6 +793,7 @@ QuicPathIDWriteNewConnectionIDFrame(
793793
SourceCid->CID.Length);
794794
CXPLAT_DBG_ASSERT(SourceCid->CID.Length == MsQuicLib.CidTotalLength);
795795
QuicLibraryGenerateStatelessResetToken(
796+
PathID->Connection->Partition,
796797
SourceCid->CID.Data,
797798
Frame.Buffer + SourceCid->CID.Length);
798799

src/core/pathid.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ QuicPathIDGenerateNewSourceCids(
220220
//
221221
_IRQL_requires_max_(DISPATCH_LEVEL)
222222
_Success_(return != NULL)
223-
inline
223+
QUIC_INLINE
224224
QUIC_CID_SLIST_ENTRY*
225225
QuicPathIDGetSourceCidFromSeq(
226226
_In_ QUIC_PATHID* PathID,
@@ -269,7 +269,7 @@ QuicPathIDGetSourceCidFromSeq(
269269
// Look up a source CID by data buffer.
270270
//
271271
_IRQL_requires_max_(DISPATCH_LEVEL)
272-
inline
272+
QUIC_INLINE
273273
QUIC_CID_SLIST_ENTRY*
274274
QuicPathIDGetSourceCidFromBuf(
275275
_In_ QUIC_PATHID* PathID,
@@ -344,7 +344,7 @@ QuicPathIDUpdateDestCid(
344344
// Look up a source CID by sequence number.
345345
//
346346
_IRQL_requires_max_(DISPATCH_LEVEL)
347-
inline
347+
QUIC_INLINE
348348
QUIC_CID_LIST_ENTRY*
349349
QuicPathIDGetDestCidFromSeq(
350350
_In_ QUIC_PATHID* PathID,
@@ -407,7 +407,7 @@ QuicPathIDWriteRetireConnectionIDFrame(
407407
// Adds a ref to a PathID.
408408
//
409409
_IRQL_requires_max_(DISPATCH_LEVEL)
410-
inline
410+
QUIC_INLINE
411411
void
412412
QuicPathIDAddRef(
413413
_In_ QUIC_PATHID* PathID,
@@ -432,7 +432,7 @@ QuicPathIDAddRef(
432432
#pragma warning(push)
433433
#pragma warning(disable:6014) // SAL doesn't understand ref counts
434434
_IRQL_requires_max_(DISPATCH_LEVEL)
435-
inline
435+
QUIC_INLINE
436436
BOOLEAN
437437
QuicPathIDRelease(
438438
_In_ __drv_freesMem(Mem) QUIC_PATHID* PathID,

src/generated/linux/connection.c.clog.h

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1322,6 +1322,24 @@ tracepoint(CLOG_CONNECTION_C, IndicatePathAdded , arg1);\
13221322

13231323

13241324

1325+
/*----------------------------------------------------------
1326+
// Decoder Ring for IndicatePathRemoved
1327+
// [conn][%p] Indicating QUIC_CONNECTION_EVENT_PATH_REMOVED
1328+
// QuicTraceLogConnVerbose(
1329+
IndicatePathRemoved,
1330+
Connection,
1331+
"Indicating QUIC_CONNECTION_EVENT_PATH_REMOVED");
1332+
// arg1 = arg1 = Connection = arg1
1333+
----------------------------------------------------------*/
1334+
#ifndef _clog_3_ARGS_TRACE_IndicatePathRemoved
1335+
#define _clog_3_ARGS_TRACE_IndicatePathRemoved(uniqueId, arg1, encoded_arg_string)\
1336+
tracepoint(CLOG_CONNECTION_C, IndicatePathRemoved , arg1);\
1337+
1338+
#endif
1339+
1340+
1341+
1342+
13251343
/*----------------------------------------------------------
13261344
// Decoder Ring for IndicatePathStatusChanged
13271345
// [conn][%p] Indicating QUIC_CONNECTION_EVENT_PATH_STATUS_CHANGED
@@ -1398,24 +1416,6 @@ tracepoint(CLOG_CONNECTION_C, UdpRecvDeferred , arg1, arg3);\
13981416

13991417

14001418

1401-
/*----------------------------------------------------------
1402-
// Decoder Ring for IndicatePathRemoved
1403-
// [conn][%p] Indicating QUIC_CONNECTION_EVENT_PATH_REMOVED
1404-
// QuicTraceLogConnVerbose(
1405-
IndicatePathRemoved,
1406-
Connection,
1407-
"Indicating QUIC_CONNECTION_EVENT_PATH_REMOVED");
1408-
// arg1 = arg1 = Connection = arg1
1409-
----------------------------------------------------------*/
1410-
#ifndef _clog_3_ARGS_TRACE_IndicatePathRemoved
1411-
#define _clog_3_ARGS_TRACE_IndicatePathRemoved(uniqueId, arg1, encoded_arg_string)\
1412-
tracepoint(CLOG_CONNECTION_C, IndicatePathRemoved , arg1);\
1413-
1414-
#endif
1415-
1416-
1417-
1418-
14191419
/*----------------------------------------------------------
14201420
// Decoder Ring for DatagramReceiveEnableUpdated
14211421
// [conn][%p] Updated datagram receive enabled to %hhu

src/generated/linux/connection.c.clog.h.lttng.h

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1462,6 +1462,25 @@ TRACEPOINT_EVENT(CLOG_CONNECTION_C, IndicatePathAdded,
14621462

14631463

14641464

1465+
/*----------------------------------------------------------
1466+
// Decoder Ring for IndicatePathRemoved
1467+
// [conn][%p] Indicating QUIC_CONNECTION_EVENT_PATH_REMOVED
1468+
// QuicTraceLogConnVerbose(
1469+
IndicatePathRemoved,
1470+
Connection,
1471+
"Indicating QUIC_CONNECTION_EVENT_PATH_REMOVED");
1472+
// arg1 = arg1 = Connection = arg1
1473+
----------------------------------------------------------*/
1474+
TRACEPOINT_EVENT(CLOG_CONNECTION_C, IndicatePathRemoved,
1475+
TP_ARGS(
1476+
const void *, arg1),
1477+
TP_FIELDS(
1478+
ctf_integer_hex(uint64_t, arg1, (uint64_t)arg1)
1479+
)
1480+
)
1481+
1482+
1483+
14651484
/*----------------------------------------------------------
14661485
// Decoder Ring for IndicatePathStatusChanged
14671486
// [conn][%p] Indicating QUIC_CONNECTION_EVENT_PATH_STATUS_CHANGED
@@ -1546,25 +1565,6 @@ TRACEPOINT_EVENT(CLOG_CONNECTION_C, UdpRecvDeferred,
15461565

15471566

15481567

1549-
/*----------------------------------------------------------
1550-
// Decoder Ring for IndicatePathRemoved
1551-
// [conn][%p] Indicating QUIC_CONNECTION_EVENT_PATH_REMOVED
1552-
// QuicTraceLogConnVerbose(
1553-
IndicatePathRemoved,
1554-
Connection,
1555-
"Indicating QUIC_CONNECTION_EVENT_PATH_REMOVED");
1556-
// arg1 = arg1 = Connection = arg1
1557-
----------------------------------------------------------*/
1558-
TRACEPOINT_EVENT(CLOG_CONNECTION_C, IndicatePathRemoved,
1559-
TP_ARGS(
1560-
const void *, arg1),
1561-
TP_FIELDS(
1562-
ctf_integer_hex(uint64_t, arg1, (uint64_t)arg1)
1563-
)
1564-
)
1565-
1566-
1567-
15681568
/*----------------------------------------------------------
15691569
// Decoder Ring for DatagramReceiveEnableUpdated
15701570
// [conn][%p] Updated datagram receive enabled to %hhu

src/inc/quic_crypt.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ QuicCryptoCombineIvAndPacketNumber(
289289
IvOut[11] = IvIn[11] ^ PacketNumber[0];
290290
}
291291

292-
inline
292+
QUIC_INLINE
293293
void
294294
QuicCryptoCombineIvAndPathIDAndPacketNumber(
295295
_In_reads_bytes_(CXPLAT_IV_LENGTH)

0 commit comments

Comments
 (0)