Skip to content

bpf: tests: simplify __lb_v4_upsert_service()#44911

Merged
julianwiedmann merged 1 commit intomainfrom
pr/jwi/main/bpf-test-proto
Mar 31, 2026
Merged

bpf: tests: simplify __lb_v4_upsert_service()#44911
julianwiedmann merged 1 commit intomainfrom
pr/jwi/main/bpf-test-proto

Conversation

@julianwiedmann
Copy link
Copy Markdown
Member

12065b5 ("bpf: test: support service definition with mixed L4 proto values") added support for configuring a dual-scope SVC with mixed L4 proto values (the actual proto, and ANY).

But we now always have L4 service differentiation, and 3091b2e ("bpf: tests: Remove redundant function") removed the helper for services with mixed L4 protos. Clean up the redundant proto_int parameter as well.

12065b5 ("bpf: test: support service definition with mixed L4 proto values")
added support for configuring a dual-scope SVC with mixed L4 proto values
(the actual proto, and ANY).

But we now always have L4 service differentiation, and
3091b2e ("bpf: tests: Remove redundant function") removed the helper
for services with mixed L4 protos. Clean up the redundant `proto_int`
parameter as well.

Signed-off-by: Julian Wiedmann <jwi@isovalent.com>
@julianwiedmann julianwiedmann added area/datapath Impacts bpf/ or low-level forwarding details, including map management and monitor messages. release-note/ci This PR makes changes to the CI. area/loadbalancing Impacts load-balancing and Kubernetes service implementations labels Mar 20, 2026
@julianwiedmann julianwiedmann requested a review from ajmmm March 20, 2026 16:41
@julianwiedmann julianwiedmann marked this pull request as ready for review March 20, 2026 16:41
@julianwiedmann julianwiedmann requested a review from a team as a code owner March 20, 2026 16:41
@julianwiedmann julianwiedmann requested a review from jrife March 20, 2026 16:41
@julianwiedmann
Copy link
Copy Markdown
Member Author

/test

Copy link
Copy Markdown
Member

@ajmmm ajmmm left a comment

Choose a reason for hiding this comment

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

I hadn't spotted that doubling up. Nice little cleanup!

@ajmmm
Copy link
Copy Markdown
Member

ajmmm commented Mar 20, 2026

Is there a reason why only the v4 path had the scope-specific protocol, but v6 did not?

@julianwiedmann
Copy link
Copy Markdown
Member Author

Is there a reason why only the v4 path had the scope-specific protocol, but v6 did not?

I wondered about the same for a moment. And just blamed it on me being lazy back then.

@julianwiedmann
Copy link
Copy Markdown
Member Author

/test

Copy link
Copy Markdown
Contributor

@jrife jrife left a comment

Choose a reason for hiding this comment

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

Thanks, sorry for the delay.

@julianwiedmann julianwiedmann added this pull request to the merge queue Mar 31, 2026
@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 Mar 31, 2026
Merged via the queue into main with commit 3123165 Mar 31, 2026
98 of 99 checks passed
@julianwiedmann julianwiedmann deleted the pr/jwi/main/bpf-test-proto branch March 31, 2026 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/datapath Impacts bpf/ or low-level forwarding details, including map management and monitor messages. area/loadbalancing Impacts load-balancing and Kubernetes service implementations 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.

4 participants