XDP eBPF extending with an input parameter?

Jesper Dangaard Brouer

How easy is it to extend the XDP/eBPF program with a new input

I see the need for providing the input "source-port" to the eBPF
program. E.g. needed when implementing a basic learning bridge
(basically a map of <src-mac,src-port>). The concepts of "ports" are
not-defined-yet, thus, this change need to be part of a later

Maybe this "source-port-id" can instead be stored as part of the eBPF
program structure? (as it is likely known at registration time)

Reminder: XDP patchset I'm referring to is avail here[1]:
[1] https://git.kernel.org/cgit/linux/kernel/git/ast/bpf.git/?h=xdp

Best regards,
Jesper Dangaard Brouer
MSc.CS, Principal Kernel Engineer at Red Hat
Author of http://www.iptv-analyzer.org
LinkedIn: http://www.linkedin.com/in/brouer

Join iovisor-dev@lists.iovisor.org to automatically receive all group messages.