Skip to content

Commit

Permalink
all arch to build dataptah_xplat.c
Browse files Browse the repository at this point in the history
  • Loading branch information
ami-GS committed Apr 22, 2024
1 parent 2cfa516 commit ddfdcfa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/platform/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,19 @@ endif()
set(SOURCES crypt.c hashtable.c pcp.c platform_worker.c toeplitz.c)

if("${CX_PLATFORM}" STREQUAL "windows")
set(SOURCES ${SOURCES} platform_winuser.c storage_winuser.c datapath_win.c datapath_winuser.c)
set(SOURCES ${SOURCES} platform_winuser.c storage_winuser.c datapath_win.c datapath_winuser.c datapath_xplat.c)
if(QUIC_UWP_BUILD OR
QUIC_GAMECORE_BUILD OR
${SYSTEM_PROCESSOR} STREQUAL "arm" OR
${SYSTEM_PROCESSOR} STREQUAL "arm64" OR
${SYSTEM_PROCESSOR} STREQUAL "arm64ec")
set(SOURCES ${SOURCES} datapath_raw_dummy.c)
else()
set(SOURCES ${SOURCES} datapath_xplat.c datapath_raw.c datapath_raw_win.c datapath_raw_socket.c datapath_raw_socket_win.c datapath_raw_xdp_win.c)
set(SOURCES ${SOURCES} datapath_raw.c datapath_raw_win.c datapath_raw_socket.c datapath_raw_socket_win.c datapath_raw_xdp_win.c)
endif()
else()
set(LINUX_XDP_ENABLED FALSE)
set(SOURCES ${SOURCES} inline.c platform_posix.c storage_posix.c cgroup.c)
set(SOURCES ${SOURCES} inline.c platform_posix.c storage_posix.c cgroup.c datapath_xplat.c)
if(CX_PLATFORM STREQUAL "linux" AND NOT CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
set(SOURCES ${SOURCES} datapath_linux.c datapath_epoll.c)
if ((${UBUNTU_VERSION} STREQUAL "20.04") OR
Expand All @@ -36,7 +36,7 @@ else()
set(SOURCES ${SOURCES} datapath_raw_dummy.c)
else()
set(LINUX_XDP_ENABLED TRUE)
set(SOURCES ${SOURCES} datapath_xplat.c datapath_unix.c datapath_raw.c datapath_raw_linux.c datapath_raw_socket.c datapath_raw_socket_linux.c datapath_raw_xdp_linux.c)
set(SOURCES ${SOURCES} datapath_unix.c datapath_raw.c datapath_raw_linux.c datapath_raw_socket.c datapath_raw_socket_linux.c datapath_raw_xdp_linux.c)
endif()
else()
set(SOURCES ${SOURCES} datapath_kqueue.c datapath_unix.c)
Expand Down
2 changes: 1 addition & 1 deletion src/platform/datapath_raw.c
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ CxPlatDpRawRxEthernet(
CXPLAT_DBG_ASSERT(Packets[i+1]->Next == NULL);
i++;
}
Datapath->ParentDataPath->UdpHandlers.Receive(CxPlatRawToSocket(Socket), Socket->ClientContext, (CXPLAT_RECV_DATA*)PacketChain);
Datapath->ParentDataPath->UdpHandlers.Receive(CxPlatRawToSocket(Socket), Socket->ClientContext, PacketChain);
} else if (PacketChain->Reserved == L4_TYPE_TCP_SYN || PacketChain->Reserved == L4_TYPE_TCP_SYNACK) {
CxPlatDpRawSocketAckSyn(Socket, PacketChain);
CxPlatDpRawRxFree(PacketChain);
Expand Down

0 comments on commit ddfdcfa

Please sign in to comment.