File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2929# like linux kernel.
3030# FF_USE_THREAD_STRUCT_HANDLE=1
3131
32+ # If FF_PRELOAD_SUPPORT_SELECT is enabled, we can use select in LD_PRELOAD mode.
33+ # However, we need to set the value of FF_KERNEL_MAX_FD_SELECT based on our requirements to ensure file descriptors
34+ # (FDs) for the user-space protocol stack can be covered by the select interface.
35+ # FF_PRELOAD_SUPPORT_SELECT=1
36+ # FF_KERNEL_MAX_FD_SELECT=128
37+
3238PKGCONF ?= pkg-config
3339
3440ifndef DEBUG
@@ -57,6 +63,10 @@ ifdef FF_USE_THREAD_STRUCT_HANDLE
5763 CFLAGS+= -DFF_USE_THREAD_STRUCT_HANDLE
5864endif
5965
66+ ifdef FF_PRELOAD_SUPPORT_SELECT
67+ CFLAGS+= -DFF_PRELOAD_SUPPORT_SELECT -DFF_KERNEL_MAX_FD_SELECT=$(FF_KERNEL_MAX_FD_SELECT) -DFF_USE_THREAD_STRUCT_HANDLE
68+ endif
69+
6070CFLAGS += -fPIC -Wall -Werror $(shell $(PKGCONF ) --cflags libdpdk)
6171
6272INCLUDES = -I. -I${FF_PATH}/lib
You can’t perform that action at this time.
0 commit comments