File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 29
29
# like linux kernel.
30
30
# FF_USE_THREAD_STRUCT_HANDLE=1
31
31
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
+
32
38
PKGCONF ?= pkg-config
33
39
34
40
ifndef DEBUG
@@ -57,6 +63,10 @@ ifdef FF_USE_THREAD_STRUCT_HANDLE
57
63
CFLAGS+= -DFF_USE_THREAD_STRUCT_HANDLE
58
64
endif
59
65
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
+
60
70
CFLAGS += -fPIC -Wall -Werror $(shell $(PKGCONF ) --cflags libdpdk)
61
71
62
72
INCLUDES = -I. -I${FF_PATH}/lib
You can’t perform that action at this time.
0 commit comments