Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpf: lb: small cleanups #24320

Merged
merged 3 commits into from Mar 13, 2023
Merged

Conversation

julianwiedmann
Copy link
Member

@julianwiedmann julianwiedmann commented Mar 12, 2023

Clean up a few parameters in the lb_local() code flow, so that it's easier accessible to the casual reader.

Instead of passing in the saddr, just get it from the CT tuple. This
matches lb6_local(), and avoids one of the many function parameters.

Signed-off-by: Julian Wiedmann <jwi@isovalent.com>
Instead of passing the backend address as an extra pointer, just take it
from the backend struct. This wasn't possibly previously, as we couldn't
copy from a map value on a 4.9 kernel.

Signed-off-by: Julian Wiedmann <jwi@isovalent.com>
The csum_offset struct is only needed when re-writing a packet for DNAT to
the backend. Push it down into the relevant code.

Signed-off-by: Julian Wiedmann <jwi@isovalent.com>
@julianwiedmann julianwiedmann added sig/datapath Impacts bpf/ or low-level forwarding details, including map management and monitor messages. kind/cleanup This includes no functional changes. release-note/misc This PR makes changes that have no direct user impact. labels Mar 12, 2023
@julianwiedmann
Copy link
Member Author

/test

@julianwiedmann julianwiedmann changed the title WIP bpf: lb: small cleanups Mar 13, 2023
@julianwiedmann julianwiedmann marked this pull request as ready for review March 13, 2023 06:57
@julianwiedmann julianwiedmann requested a review from a team as a code owner March 13, 2023 06:57
@julianwiedmann julianwiedmann added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Mar 13, 2023
@borkmann borkmann merged commit 1574e2d into cilium:master Mar 13, 2023
@julianwiedmann julianwiedmann deleted the 1.14-bpf-lb-cleanups-2 branch March 13, 2023 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/cleanup This includes no functional changes. ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/misc This PR makes changes that have no direct user impact. sig/datapath Impacts bpf/ or low-level forwarding details, including map management and monitor messages.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants