Skip to content

Commit 8fcbc65

Browse files
ysksuzukitklauser
authored andcommitted
bpf/complexity-tests: Add ENABLE_LOCAL_REDIRECT_POLICY
The datapath has `#ifdef`s for this define in its service translation path for both socket LB and per packet LB, so we should add it to the complexity tests. Note that skipRedirectFromBackend configuration requires SO_NETNS_COOKIE feature available in Linux kernel version >= 5.8. So this commit adds ENABLE_LOCAL_REDIRECT_POLICY to the kernel version >= 5.8. Fixes: #34240 Signed-off-by: Yusuke Suzuki <yusuke.suzuki@isovalent.com>
1 parent 8dd02f7 commit 8fcbc65

61 files changed

Lines changed: 61 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

bpf/complexity-tests/510/bpf_host/1.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,4 @@
3535
-DENABLE_SCTP=1
3636
-DENABLE_IPSEC=1
3737
-DEVENTS_MAP_RATE_LIMIT_PER_SECOND=1000
38+
-DENABLE_LOCAL_REDIRECT_POLICY

bpf/complexity-tests/510/bpf_host/2.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,4 @@
3838
-DENABLE_SCTP=1
3939
-DENABLE_IPSEC=1
4040
-DEVENTS_MAP_RATE_LIMIT_PER_SECOND=1000
41+
-DENABLE_LOCAL_REDIRECT_POLICY

bpf/complexity-tests/510/bpf_host/3.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,4 @@
3333
-DENABLE_SCTP=1
3434
-DENABLE_IPSEC=1
3535
-DEVENTS_MAP_RATE_LIMIT_PER_SECOND=1000
36+
-DENABLE_LOCAL_REDIRECT_POLICY

bpf/complexity-tests/510/bpf_host/4.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,4 @@
3838
-DENABLE_WIREGUARD=1
3939
-DENCRYPTION_STRICT_MODE=1
4040
-DEVENTS_MAP_RATE_LIMIT_PER_SECOND=1000
41+
-DENABLE_LOCAL_REDIRECT_POLICY

bpf/complexity-tests/510/bpf_host/5.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,4 @@
3434
-DSERVICE_NO_BACKEND_RESPONSE=1
3535
-DENABLE_IPSEC=1
3636
-DEVENTS_MAP_RATE_LIMIT_PER_SECOND=1000
37+
-DENABLE_LOCAL_REDIRECT_POLICY

bpf/complexity-tests/510/bpf_host/6.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,4 @@
3737
-DSERVICE_NO_BACKEND_RESPONSE=1
3838
-DENABLE_IPSEC=1
3939
-DEVENTS_MAP_RATE_LIMIT_PER_SECOND=1000
40+
-DENABLE_LOCAL_REDIRECT_POLICY

bpf/complexity-tests/510/bpf_lxc/1.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,4 @@
3333
-DENABLE_SCTP=1
3434
-DENABLE_IPSEC=1
3535
-DEVENTS_MAP_RATE_LIMIT_PER_SECOND=1000
36+
-DENABLE_LOCAL_REDIRECT_POLICY

bpf/complexity-tests/510/bpf_lxc/2.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,4 @@
3636
-DENABLE_SCTP=1
3737
-DENABLE_IPSEC=1
3838
-DEVENTS_MAP_RATE_LIMIT_PER_SECOND=1000
39+
-DENABLE_LOCAL_REDIRECT_POLICY

bpf/complexity-tests/510/bpf_lxc/3.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,4 @@
3131
-DENABLE_SCTP=1
3232
-DENABLE_IPSEC=1
3333
-DEVENTS_MAP_RATE_LIMIT_PER_SECOND=1000
34+
-DENABLE_LOCAL_REDIRECT_POLICY

bpf/complexity-tests/510/bpf_lxc/4.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,4 @@
3535
-DSERVICE_NO_BACKEND_RESPONSE=1
3636
-DENABLE_IPSEC=1
3737
-DEVENTS_MAP_RATE_LIMIT_PER_SECOND=1000
38+
-DENABLE_LOCAL_REDIRECT_POLICY

0 commit comments

Comments
 (0)