ebpf icon indicating copy to clipboard operation
ebpf copied to clipboard

Add XDP Linux Functions

Open nathanjsweet opened this issue 7 years ago • 4 comments

on behalf of @lmb

Add functions to attach an XDP program to a device (separate package?)

nathanjsweet avatar Apr 09 '18 19:04 nathanjsweet

I'd love to merge it here, but if you want to make it a separate package that's fine too.

nathanjsweet avatar Apr 09 '18 19:04 nathanjsweet

From a quick look attaching XDP requires sending netlink messages, which is the opposite of lightweight. We'd at least have to add a third party dependency, hence my suggestion to use a different package

lmb avatar Apr 09 '18 20:04 lmb

Just found https://godoc.org/github.com/vishvananda/netlink#LinkSetXdpFdWithFlags which would work fine with our current interface. Seems like it doesn't define the flags that can be used though.

lmb avatar Apr 13 '18 15:04 lmb

I think its worth doing this in a separate package, this would allow us to make e.g. supporting hardware offload nicer.

lmb avatar May 21 '18 08:05 lmb