edgecomllc / eupf

5G User Plane Function (UPF) based on eBPF
Apache License 2.0
106 stars 20 forks source link

Add config options for eupf ebpf-program #398

Open pirog-spb opened 1 year ago

pirog-spb commented 1 year ago

At the moment the only way to configure ebpf befaviour is build options. There are several cases where start time configuration is more suitable:

Investigate possibility to use rodata section to setup startup configuration parameters. See bpf_config config in https://github.com/xdp-project/bpf-examples/blob/master/pping/pping_kern.c

pirog-spb commented 1 year ago

Yet another hint https://stackoverflow.com/questions/70475993/how-to-let-user-space-to-populate-an-ebpf-global-data-at-load-time