Skip to content

Comments

Fix skb tracing on veth#397

Merged
brb merged 2 commits intocilium:mainfrom
jschwinger233:gray/fix-veth-tracing
Jul 10, 2024
Merged

Fix skb tracing on veth#397
brb merged 2 commits intocilium:mainfrom
jschwinger233:gray/fix-veth-tracing

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
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