Skip to content

Commit

Permalink
bpf: add 6.1 kernel support for build tests
Browse files Browse the repository at this point in the history
[ upstream commit fc7b72f ]

#29349 added complexity tests for 6.1.
But we also want to select the relevant features for the build tests.

Signed-off-by: Julian Wiedmann <[email protected]>
Signed-off-by: Gilberto Bertin <[email protected]>
  • Loading branch information
julianwiedmann authored and jibi committed Jan 11, 2024
1 parent 333fe47 commit fbe60e3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions bpf/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,11 @@ MAX_BASE_OPTIONS += -DENABLE_MASQUERADE_IPV4=1 -DENABLE_MASQUERADE_IPV6=1 \
-DENABLE_NODEPORT_ACCELERATION=1 -DENABLE_SESSION_AFFINITY=1 \
-DENABLE_DSR_ICMP_ERRORS=1 -DENABLE_DSR=1 -DENABLE_DSR_HYBRID=1 \
-DENABLE_IPV4_FRAGMENTS=1
ifneq (,$(filter $(KERNEL),54 510 netnext))
ifneq (,$(filter $(KERNEL),54 510 61 netnext))
# Egress Gateway requires >= 5.2 kernels, bandwidth manager requires >= 5.1.
MAX_BASE_OPTIONS += -DENABLE_BANDWIDTH_MANAGER=1 -DENABLE_EGRESS_GATEWAY=1 -DENABLE_VTEP=1
endif
ifneq (,$(filter $(KERNEL),510 netnext))
ifneq (,$(filter $(KERNEL),510 61 netnext))
# BPF TProxy requires 5.7, BPF Host routing 5.10, L3 devices 5.8.
MAX_BASE_OPTIONS += -DENABLE_TPROXY=1 -DENABLE_HOST_ROUTING=1 -DETH_HLEN=0
endif
Expand Down Expand Up @@ -118,7 +118,7 @@ bpf_sock.o: bpf_sock.ll
ifndef MAX_OVERLAY_OPTIONS
MAX_OVERLAY_OPTIONS = $(MAX_BASE_OPTIONS) -DENCAP_IFINDEX=1 -DTUNNEL_MODE=1
MAX_OVERLAY_OPTIONS += -DLB_SELECTION=1 -DLB_SELECTION_MAGLEV=1
ifneq (,$(filter $(KERNEL),510 netnext))
ifneq (,$(filter $(KERNEL),510 61 netnext))
MAX_OVERLAY_OPTIONS += -DENABLE_WIREGUARD=1
endif
ifeq ($(KERNEL),netnext)
Expand Down Expand Up @@ -167,7 +167,7 @@ HOST_OPTIONS = $(LXC_OPTIONS) \
ifndef MAX_HOST_OPTIONS
MAX_HOST_OPTIONS = $(MAX_BASE_OPTIONS) -DENCAP_IFINDEX=1 -DTUNNEL_MODE=1

ifneq (,$(filter $(KERNEL),510 netnext))
ifneq (,$(filter $(KERNEL),510 61 netnext))
MAX_HOST_OPTIONS += -DENABLE_WIREGUARD=1
endif
ifeq ($(KERNEL),netnext)
Expand Down Expand Up @@ -261,7 +261,7 @@ LXC_OPTIONS = \
ifndef MAX_LXC_OPTIONS
MAX_LXC_OPTIONS = $(MAX_BASE_OPTIONS) -DENCAP_IFINDEX=1 -DTUNNEL_MODE=1

ifneq (,$(filter $(KERNEL),510 netnext))
ifneq (,$(filter $(KERNEL),510 61 netnext))
MAX_LXC_OPTIONS += -DENABLE_WIREGUARD=1
endif
ifeq ($(KERNEL),netnext)
Expand Down

0 comments on commit fbe60e3

Please sign in to comment.