Skip to content

Commit e4c8271

Browse files
committed
fix interface init phase with proper flag and error code
1 parent 33fcea4 commit e4c8271

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/platform/datapath_raw_xdp_wincommon.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ CxPlatGetRssQueueProcessors(
193193
Status = XskBind(TxXsk, InterfaceIndex, i, Flags);
194194
if (QUIC_FAILED(Status)) {
195195
CxPlatCloseHandle(TxXsk);
196-
if (Status == E_INVALIDARG) { // No more queues. Break out.
196+
if (Status == QUIC_STATUS_INVALID_PARAMETER) { // No more queues. Break out.
197197
*Count = i;
198198
break; // Expected failure if there is no more queue.
199199
}

src/platform/datapath_raw_xdp_winkernel.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ CxPlatDpRawInitialize(
8080

8181
if (pIfRow->Type == IF_TYPE_ETHERNET_CSMACD &&
8282
pIfRow->OperStatus == IfOperStatusUp &&
83-
pIfRow->PhysicalAddressLength == ETH_MAC_ADDR_LEN) {
83+
pIfRow->PhysicalAddressLength == ETH_MAC_ADDR_LEN &&
84+
pIfRow->InterfaceAndOperStatusFlags.ConnectorPresent) {
8485
XDP_INTERFACE* Interface = CXPLAT_ALLOC_NONPAGED(sizeof(XDP_INTERFACE), IF_TAG);
8586
if (Interface == NULL) {
8687
QuicTraceEvent(

0 commit comments

Comments
 (0)