Skip to content

Attach XDP programs using bpf_link instead of netlink #27630

@ti-mo

Description

@ti-mo

Similar to #20739 where we implement cgroup attachments using bpf_link, the same can now be done for XDP using https://pkg.go.dev/github.com/cilium/ebpf/link#AttachXDP.

We can pin XDP links to /sys/fs/bpf/cilium/xdp/<ifname>. Cilium 1.14 and 1.13 need to be taught to remove a file at this location before attempting to attach XDP programs using netlink.

Metadata

Metadata

Assignees

Labels

area/datapathImpacts bpf/ or low-level forwarding details, including map management and monitor messages.area/loaderImpacts the loading of BPF programs into the kernel.kind/enhancementThis would improve or streamline existing functionality.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions