Re: [iovisor-dev] XDP eBPF extending with an input parameter?

2016-07-06 Thread Alexei Starovoitov via iovisor-dev
On Wed, Jul 06, 2016 at 05:21:53PM +0200, Jesper Dangaard Brouer wrote: > > How easy is it to extend the XDP/eBPF program with a new input > parameter? trivial. do git blame include/uapi/linux/bpf.h and see commits for struct __sk_buff We've been adding input md fields non stop without breaking

[iovisor-dev] XDP eBPF extending with an input parameter?

2016-07-06 Thread Jesper Dangaard Brouer via iovisor-dev
How easy is it to extend the XDP/eBPF program with a new input parameter? 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 ). The concepts of "ports" are not-defined-yet, thus,