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 unneeded orig_dip from ipv6_host_policy_egress #23724

Merged
merged 1 commit into from Feb 15, 2023

Conversation

gentoo-root
Copy link
Contributor

There is no need to copy the IPv6 address to a local variable, because the packet data is not going to change. Just use the address from the packet headers directly.

Signed-off-by: Maxim Mikityanskiy maxim@isovalent.com

See #23577, it's the same change in another function.

There is no need to copy the IPv6 address to a local variable, because
the packet data is not going to change. Just use the address from the
packet headers directly.

Signed-off-by: Maxim Mikityanskiy <maxim@isovalent.com>
@gentoo-root gentoo-root added kind/cleanup This includes no functional changes. release-note/misc This PR makes changes that have no direct user impact. labels Feb 13, 2023
@gentoo-root gentoo-root requested a review from a team as a code owner February 13, 2023 21:25
Copy link

@NikAleksandrov NikAleksandrov left a comment

Choose a reason for hiding this comment

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

Hehe I was just going to ask about orig_sip below and saw the last sentence. :)
Looks good to me.

@pchaigno
Copy link
Member

/test

@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 Feb 14, 2023
@nbusseneau
Copy link
Member

@gentoo-root Thanks for your contribution! :)

@nbusseneau nbusseneau merged commit 2ef7b03 into cilium:master Feb 15, 2023
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants