Skip to content

Commit

Permalink
unify datapath_raw_winXXX
Browse files Browse the repository at this point in the history
  • Loading branch information
ami-GS committed Nov 27, 2024
1 parent f6bc45c commit 945d71f
Show file tree
Hide file tree
Showing 10 changed files with 6 additions and 300 deletions.
3 changes: 1 addition & 2 deletions scripts/clog.inputs
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@
../src/platform/datapath_raw_xdp_winuser.c
../src/platform/datapath_raw_xdp_winkernel.c
../src/platform/datapath_raw_xdp_linux.c
../src/platform/datapath_raw_winuser.c
../src/platform/datapath_raw_winkernel.c
../src/platform/datapath_raw_win.c
../src/platform/datapath_raw_linux.c
../src/platform/datapath_raw.c
../src/platform/crypt_bcrypt.c
Expand Down
12 changes: 0 additions & 12 deletions src/generated/linux/datapath_raw_winkernel.c.clog.h

This file was deleted.

91 changes: 0 additions & 91 deletions src/generated/linux/datapath_raw_winuser.c.clog.h

This file was deleted.

73 changes: 0 additions & 73 deletions src/generated/linux/datapath_raw_winuser.c.clog.h.lttng.h

This file was deleted.

This file was deleted.

7 changes: 0 additions & 7 deletions src/generated/linux/quic.clog_datapath_raw_winuser.c.clog.h.c

This file was deleted.

2 changes: 1 addition & 1 deletion src/platform/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ if("${CX_PLATFORM}" STREQUAL "windows")
${SYSTEM_PROCESSOR} STREQUAL "arm64ec")
set(SOURCES ${SOURCES} datapath_raw_dummy.c)
else()
set(SOURCES ${SOURCES} datapath_raw.c datapath_raw_winuser.c datapath_raw_socket.c datapath_raw_socket_win.c datapath_raw_socket_common.c datapath_raw_xdp_winuser.c)
set(SOURCES ${SOURCES} datapath_raw.c datapath_raw_win.c datapath_raw_socket.c datapath_raw_socket_win.c datapath_raw_socket_common.c datapath_raw_xdp_winuser.c)
endif()
else()
set(SOURCES ${SOURCES} inline.c platform_posix.c storage_posix.c cgroup.c datapath_unix.c)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

#include "datapath_raw_win.h"
#ifdef QUIC_CLOG
#include "datapath_raw_winuser.c.clog.h"
#include "datapath_raw_win.c.clog.h"
#endif

#pragma warning(disable:4116) // unnamed type definition in parentheses
Expand Down Expand Up @@ -241,5 +241,7 @@ CXPLAT_THREAD_CALLBACK(CxPlatRouteResolutionWorkerThread, Context)
CXPLAT_FREE(Operation, QUIC_POOL_ROUTE_RESOLUTION_OPER);
}

#ifndef _KERNEL_MODE
return 0;
#endif
}
111 changes: 0 additions & 111 deletions src/platform/datapath_raw_winkernel.c

This file was deleted.

2 changes: 1 addition & 1 deletion src/platform/platform.kernel.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<ClCompile Include="datapath_xplat.c" />
<ClCompile Include="datapath_win.c" />
<ClCompile Include="datapath_raw.c" />
<ClCompile Include="datapath_raw_winkernel.c" />
<ClCompile Include="datapath_raw_win.c" />
<ClCompile Include="datapath_raw_socket.c" />
<ClCompile Include="datapath_raw_socket_common.c" />
<ClCompile Include="datapath_raw_socket_win.c" />
Expand Down

0 comments on commit 945d71f

Please sign in to comment.