Skip to content

Commit

Permalink
fix build on Ubuntu 18 (microsoft#3379)
Browse files Browse the repository at this point in the history
  • Loading branch information
wfurt authored Feb 1, 2023
1 parent 5c8bd8e commit b6a46e3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/platform/datapath_epoll.c
Original file line number Diff line number Diff line change
Expand Up @@ -1184,6 +1184,7 @@ CxPlatSocketContextInitialize(
goto Exit;
}

#ifdef UDP_GRO
if (SocketContext->DatapathProc->Datapath->Features & CXPLAT_DATAPATH_FEATURE_RECV_COALESCING) {
Option = TRUE;
Result =
Expand All @@ -1204,6 +1205,7 @@ CxPlatSocketContextInitialize(
goto Exit;
}
}
#endif

//
// The socket is shared by multiple QUIC endpoints, so increase the receive
Expand Down Expand Up @@ -1807,10 +1809,12 @@ CxPlatSocketContextRecvComplete(
CXPLAT_DBG_ASSERT(FALSE);
}
} else if (CMsg->cmsg_level == IPPROTO_UDP) {
#ifdef UDP_GRO
if (CMsg->cmsg_type == UDP_GRO) {
CXPLAT_DBG_ASSERT_CMSG(CMsg, uint16_t);
SegmentLength = *(uint16_t*)CMSG_DATA(CMsg);
}
#endif
} else {
CXPLAT_DBG_ASSERT(FALSE);
}
Expand Down

0 comments on commit b6a46e3

Please sign in to comment.