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 approach work for you?

Good alternative idea. We will test this approach.
I guess we will use the RTE_BPF_ARG_PTR as an argument for the program in this case.

Yes, I believe so.



Just as sidenote: we have also had a glance at
https://github.com/iovisor/ubpf <https://github.com/iovisor/ubpf>
as an alternative. This is a standalone BPF VM lib, but with Apache 2.0 license and it's not bound to the dpdk log framework. I have no views on benefits using this in dpdk, but it might be an input for future talks about a common library / collaboration.

Thanks again.
Bjorn

Reply via email to