Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions adapter/syscall/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ endif
# like linux kernel.
#FF_USE_THREAD_STRUCT_HANDLE=1

# If FF_PRELOAD_SUPPORT_SELECT is enabled, we can use select in LD_PRELOAD mode.
# However, we need to set the value of FF_KERNEL_MAX_FD_SELECT based on our requirements to ensure file descriptors
# (FDs) for the user-space protocol stack can be covered by the select interface.
#FF_PRELOAD_SUPPORT_SELECT=1
#FF_KERNEL_MAX_FD_SELECT=128

PKGCONF ?= pkg-config

ifndef DEBUG
Expand Down Expand Up @@ -57,6 +63,10 @@ ifdef FF_USE_THREAD_STRUCT_HANDLE
CFLAGS+= -DFF_USE_THREAD_STRUCT_HANDLE
endif

ifdef FF_PRELOAD_SUPPORT_SELECT
CFLAGS+= -DFF_PRELOAD_SUPPORT_SELECT -DFF_KERNEL_MAX_FD_SELECT=$(FF_KERNEL_MAX_FD_SELECT) -DFF_USE_THREAD_STRUCT_HANDLE
endif

CFLAGS += -fPIC -Wall -Werror $(shell $(PKGCONF) --cflags libdpdk)

INCLUDES= -I. -I${FF_PATH}/lib
Expand Down
1 change: 1 addition & 0 deletions adapter/syscall/ff_declare_syscalls.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,5 @@ FF_SYSCALL_DECL(int, epoll_create, (int));
FF_SYSCALL_DECL(int, epoll_ctl, (int, int, int, struct epoll_event *));
FF_SYSCALL_DECL(int, epoll_wait, (int, struct epoll_event *, int, int));
FF_SYSCALL_DECL(pid_t, fork, (void));
FF_SYSCALL_DECL(int, select, (int , fd_set *, fd_set *, fd_set *, struct timeval *));
#undef FF_SYSCALL_DECL
Loading