Re: librte_bpf: roadmap or any specific plans for this library

2022-05-03 Thread Konstantin Ananyev
AFAIK linux BPF is restricted to work with a single argument only. I don't want DPDK version to fork too far away from 'canonical' version. Though, as I said above, nothing prevents you to create a struct with several fields, and pass pointer to that struct to your BPF program. Would such app

Re: librte_bpf: roadmap or any specific plans for this library

2022-05-03 Thread Björn Svensson A
Thanks for the feedback. >>Example of the new API: >> struct rte_bpf * >> rte_bpf_elf_image_load(const struct rte_bpf_prm *prm, char *image, >> size_t size, const char *sname); >> > Did you look at rte_bpf_load()? > Basically it works with already pre-load

Re: librte_bpf: roadmap or any specific plans for this library

2022-04-28 Thread Konstantin Ananyev
Hi Bjorn, > Hi all, > I hope this is the correct maillist for this topic. > > DPDK provides the nice library `librte_bpf` to load and execute eBPF bytecode > and we would like to broaden our usage of this library. Great to hear :) > Today there are hints that this library might have been purp

Re: librte_bpf: roadmap or any specific plans for this library

2022-04-28 Thread David Marchand
Hello, On Tue, Apr 26, 2022 at 10:34 AM Björn Svensson A wrote: > > Hi all, > I hope this is the correct maillist for this topic. Yes it is. I copied the maintainer and people that might be interested in this topic. > > DPDK provides the nice library `librte_bpf` to load and execute eBPF bytec

librte_bpf: roadmap or any specific plans for this library

2022-04-26 Thread Björn Svensson A
Hi all, I hope this is the correct maillist for this topic. DPDK provides the nice library `librte_bpf` to load and execute eBPF bytecode and we would like to broaden our usage of this library. Today there are hints that this library might have been purpose built to enable inspection or modifica