-
Notifications
You must be signed in to change notification settings - Fork 3.4k
bpf: vxlan helper improvements #34755
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: vxlan helper improvements #34755
Conversation
/test |
ca4eab6
to
8c77353
Compare
/test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look good to me, I just left small nit comments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looks good. A bit a confusion I have, most likely with my own knowledge, about the removal of the validation after eth rewrite. Left a Q.
Edit: resolved Q by staring at the code long enough 🤖
The referenced helper doesn't exist any longer. Signed-off-by: Julian Wiedmann <jwi@isovalent.com>
The VXLAN helpers currently assume that the outer packet has a L2 header, but this isn't necessarily true. Instead of hard-coding the `struct ethhdr` length, let the caller use ETH_HLEN instead (which can be either 14 or 0). Signed-off-by: Julian Wiedmann <jwi@isovalent.com>
Determine the L4 offset just once, so that we don't have to revalidate the IPv4 header after rewriting the MAC addresses. Signed-off-by: Julian Wiedmann <jwi@isovalent.com>
8c77353
to
0abebcf
Compare
/test |
A bit of cleanups, hopefully enough to support native L3 devices.