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: Remove dead code for consistency between IPv4/v6 #24008

Merged
merged 1 commit into from Feb 28, 2023

Conversation

pchaigno
Copy link
Member

In resolve_srcid_ipv6(), we check that src_id is equal to WORLD_ID before updating it's value. That was in case derive_src_id() changed its value.

Given commit 32a921a ("bpf: Remove flowlabel optimization for identity") removed the call to derive_src_id(), src_id will now always be equal to WORLD_ID. Let's remove that check to be consistent with the sibling function resolve_srcid_ipv4().

In resolve_srcid_ipv6(), we check that src_id is equal to WORLD_ID
before updating it's value. That was in case derive_src_id() changed
its value.

Since commit 32a921a ("bpf: Remove flowlabel optimization for
identity") removed the call to derive_src_id(), src_id will now always
be equal to WORLD_ID. Let's remove that check to be consistent with the
sibling function resolve_srcid_ipv4().

Reported-by: Joe Stringer <joe@cilium.io>
Signed-off-by: Paul Chaignon <paul@cilium.io>
@pchaigno pchaigno 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. feature/ipv6 Relates to IPv6 protocol support labels Feb 24, 2023
@pchaigno pchaigno requested a review from a team as a code owner February 24, 2023 12:36
@pchaigno
Copy link
Member Author

pchaigno commented Feb 24, 2023

/test

Job 'Cilium-PR-K8s-1.25-kernel-4.19' failed:

Click to show.

Test Name

K8sDatapathConfig Host firewall With VXLAN

Failure Output

FAIL: Failed to reach 10.0.0.176:80 from testclient-host-6jjgb

If it is a flake and a GitHub issue doesn't already exist to track it, comment /mlh new-flake Cilium-PR-K8s-1.25-kernel-4.19 so I can create one.

@pchaigno
Copy link
Member Author

k8s-1.25-kernel-4.19 failed with known flake #15455. Other CI jobs are passing, reviews are in, marking ready to merge.

@pchaigno pchaigno added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Feb 25, 2023
@sayboras sayboras merged commit 2501ac9 into cilium:master Feb 28, 2023
@pchaigno pchaigno deleted the bpf-remove-dead-code branch February 28, 2023 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature/ipv6 Relates to IPv6 protocol support 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

4 participants