Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[kernel 5.14] remove workaround for skb->mark scrub during veth traversal / bpf_redirect() #36329

@julianwiedmann

Description

@julianwiedmann

Background:
The BPF datapath code currently contains a workaround for a kernel limitation. When traversing between a veth pair in the same netns, the skb->mark is scrubbed. So we need to use the skb->cb instead. This has been resolved in newer kernels (5.14+) and backported to older kernels, but we're still carrying the workaround.

Proposal:
Remove the workaround once we require a new-enough kernel. Until then we can implement a probe, but it's not a priority.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/datapathImpacts bpf/ or low-level forwarding details, including map management and monitor messages.area/kernelRequires upstream work in the Linux kernel.kind/tech-debtTechnical debtpinnedThese issues are not marked stale by our issue bot.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions