NIKSS-vSwitch / nikss

Native In-Kernel P4-programmable Software Switch for Software-Defined Networking (previously PSA-eBPF)
Apache License 2.0
48 stars 4 forks source link

Create shared library for psabpf #33

Closed mestery closed 2 years ago

mestery commented 2 years ago

If we want psabpf to operate as a shared library, we need to change it's build structure to do just this. Commit 8b247a3 attempted to do this, but it modified the libbpf build to be shared, which we would rather avoid. A better approach would be to first modify libbpf to add -fPIC to the non-shared library build, so we can then link the static library into the shared psabpf library, as 8b247a3 tried to do.

mestery commented 2 years ago

Putting a link in to the comments @tatry made: https://github.com/P4-Research/psabpf/pull/31#issuecomment-1120805216