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

Fix skb tracing on veth #397

Merged
merged 2 commits into from
Jul 10, 2024
Merged

Conversation

jschwinger233
Copy link
Member

After #339, skb_addresses map stores skb->head as key, but kprobe prog on veth_convert_skb_to_xdp_buff still lookup map by &skb. This PR makes things right.

Fixes: #391

cilium#339 changed how pwru collects
skb_addr, now it holds the value of skb->head instead of &skb.

This patch renames value name `skb_addr` to `skb_head`, as well as map
name `skb_addresses` to `skb_heads`.

Signed-off-by: gray <[email protected]>
After cilium#339, skb_addresses (now
skb_heads) map uses skb->head as key rather than &skb. Kprobe prog on
veth_convert_skb_to_xdp_buff should be adjusted to that change.

Signed-off-by: gray <[email protected]>
@jschwinger233 jschwinger233 marked this pull request as ready for review July 10, 2024 11:29
@jschwinger233 jschwinger233 requested a review from a team as a code owner July 10, 2024 11:29
@jschwinger233 jschwinger233 requested review from brb and removed request for a team July 10, 2024 11:29
Copy link
Member

@brb brb left a comment

Choose a reason for hiding this comment

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

Thanks!

@brb brb merged commit cf5229b into cilium:main Jul 10, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants