Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for user space control (custom user space programs or passing data from user space to kernel bpf #68

Open
srampal opened this issue Feb 15, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@srampal
Copy link

srampal commented Feb 15, 2022

Version

0.0.10

Linux Version

5.13.0-28-generic

Is your feature request related to a problem? Please describe.

No response

Describe the solution you'd like

Bumblebee currently does not allow the user any control on the user space program and only allows writing of some kernel programs. It would be very useful to allow some user space level control.

This could range from
(1) Generate a user space stub program that goes with the kernel program generated and shares the bpf map struct definitions etc
(2) Document any safe workarounds until then such as using the bpftools utility directly to interface with Bee's kernel space program. Document any race scenarios/ concurrency issues that developers may need to be aware of, or use of bpf maps vs global variables etc.

Basic use case example might be setting up network filters in the data plane based on user configured filter/ policy keys.

Describe alternatives you've considered

No response

Additional Context

No response

@srampal srampal changed the title Add support for user space control (customer user space programs or passing data from user space to kernel bpf program) Add support for user space control (custom user space programs or passing data from user space to kernel bpf Feb 15, 2022
@yuval-k yuval-k added the enhancement New feature or request label Mar 8, 2022
@EItanya
Copy link
Member

EItanya commented Jun 3, 2022

Hello, this is very interesting, and definitely something we've been thinking about. The issue is that bumblebee is fundamentally meant to abstract the plumbing of eBPF programs from the user. Also, the OCI images cannot easily run user space code as that falls in the realm of a traditional docker container. The only way to run user space code would be to add some kind of user space plugin system. I have been thinking about this myself, and was thinking about experimenting with WASM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants