Skip to content

bpf/complexity-tests: Add ENABLE_LOCAL_REDIRECT_POLICY#35016

Merged
tklauser merged 1 commit intocilium:mainfrom
ysksuzuki:add-lrp-to-complex-test
Sep 24, 2024
Merged

bpf/complexity-tests: Add ENABLE_LOCAL_REDIRECT_POLICY#35016
tklauser merged 1 commit intocilium:mainfrom
ysksuzuki:add-lrp-to-complex-test

Conversation

@ysksuzuki
Copy link
Copy Markdown
Member

@ysksuzuki ysksuzuki commented Sep 24, 2024

The datapath has #ifdefs 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

@maintainer-s-little-helper maintainer-s-little-helper bot added the dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. label Sep 24, 2024
@ysksuzuki ysksuzuki added release-note/ci This PR makes changes to the CI. area/lrp Impacts Local Redirect Policy. backport/author The backport will be carried out by the author of the PR. needs-backport/1.16 labels Sep 24, 2024
@maintainer-s-little-helper maintainer-s-little-helper bot removed dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. labels Sep 24, 2024
@ysksuzuki
Copy link
Copy Markdown
Member Author

/test

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: cilium#34240

Signed-off-by: Yusuke Suzuki <yusuke.suzuki@isovalent.com>
@ysksuzuki ysksuzuki force-pushed the add-lrp-to-complex-test branch from 7110291 to f220357 Compare September 24, 2024 04:37
@ysksuzuki
Copy link
Copy Markdown
Member Author

/test

@ysksuzuki ysksuzuki marked this pull request as ready for review September 24, 2024 05:33
@ysksuzuki ysksuzuki requested a review from a team as a code owner September 24, 2024 05:33
@ysksuzuki ysksuzuki requested a review from markpash September 24, 2024 05:33
@maintainer-s-little-helper maintainer-s-little-helper bot added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Sep 24, 2024
@tklauser tklauser added this pull request to the merge queue Sep 24, 2024
Merged via the queue into cilium:main with commit 8fcbc65 Sep 24, 2024
-DENABLE_SCTP=1
-DENABLE_IPSEC=1
-DEVENTS_MAP_RATE_LIMIT_PER_SECOND=1000
-DENABLE_LOCAL_REDIRECT_POLICY
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that we've been declaring these as -DENABLE_LOCAL_REDIRECT_POLICY=1, because the is_defined() helper strictly requires 0 or 1 as value.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, I will fix it. Thanks for the comment!

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@julianwiedmann julianwiedmann added backport-done/1.16 The backport for Cilium 1.16.x for this PR is done. and removed needs-backport/1.16 labels Sep 30, 2024
julianwiedmann added a commit that referenced this pull request Sep 1, 2025
Extend the LRP load-testing that was introduced with
#35016 and
#35099, so that the 5.4 kernel is
also covered.

This helps to reproduce the bug reported in
#40457.

Signed-off-by: Julian Wiedmann <jwi@isovalent.com>
@julianwiedmann
Copy link
Copy Markdown
Member

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.

@ysksuzuki 👋 coming from #41449 - do you remember why we didn't add the test coverage for v5.4 kernels? Let's say for configs where LRP is used without skipRedirectFromBackend ?

@ysksuzuki
Copy link
Copy Markdown
Member Author

@julianwiedmann As far as I remember this was part of the LRP-to-stable promotion. We required skipRedirectFromBackend for the stable profile, so I think kernels that didn’t support it were excluded from test coverage.

github-merge-queue bot pushed a commit that referenced this pull request Sep 1, 2025
Extend the LRP load-testing that was introduced with
#35016 and
#35099, so that the 5.4 kernel is
also covered.

This helps to reproduce the bug reported in
#40457.

Signed-off-by: Julian Wiedmann <jwi@isovalent.com>
julianwiedmann added a commit that referenced this pull request Sep 1, 2025
[ upstream commit 8a4db90 ]

Extend the LRP load-testing that was introduced with
#35016 and
#35099, so that the 5.4 kernel is
also covered.

This helps to reproduce the bug reported in
#40457.

Signed-off-by: Julian Wiedmann <jwi@isovalent.com>
github-merge-queue bot pushed a commit that referenced this pull request Sep 2, 2025
[ upstream commit 8a4db90 ]

Extend the LRP load-testing that was introduced with
#35016 and
#35099, so that the 5.4 kernel is
also covered.

This helps to reproduce the bug reported in
#40457.

Signed-off-by: Julian Wiedmann <jwi@isovalent.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/lrp Impacts Local Redirect Policy. backport/author The backport will be carried out by the author of the PR. backport-done/1.16 The backport for Cilium 1.16.x for this PR is done. ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/ci This PR makes changes to the CI.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add complexity test configuration for LRP

4 participants