RFC: toolchain for building eBPF modules within the OpenWrt build system

2021-10-03 Thread Felix Fietkau
Hi, I recently spent some time digging into what's needed for proper eBPF build support in OpenWrt. Here's what I found so far: Most out-of-tree eBPF based projects fork some of the BPF related kernel headers from various different kernel versions and manually maintain those forks. These header

Re: RFC: toolchain for building eBPF modules within the OpenWrt build system

2021-10-03 Thread Rosen Penev
On Sun, Oct 3, 2021 at 5:47 AM Felix Fietkau wrote: > > > Hi, > > I recently spent some time digging into what's needed for proper eBPF > build support in OpenWrt. Here's what I found so far: > > Most out-of-tree eBPF based projects fork some of the BPF related kernel > headers from various differ

Re: RFC: toolchain for building eBPF modules within the OpenWrt build system

2021-10-04 Thread Jo-Philipp Wich
Hi Felix, I'd suggest to require a preinstalled host toolchain for the time being. ~ Jo ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Re: RFC: toolchain for building eBPF modules within the OpenWrt build system

2021-10-04 Thread Enrico Mioso
retch, but I am under the impression there will be cases where this can be desirable. My 2 cents only. Enrico On Mon, 4 Oct 2021, Jo-Philipp Wich wrote: Date: Mon, 4 Oct 2021 15:20:50 From: Jo-Philipp Wich To: openwrt-devel@lists.openwrt.org Subject: Re: RFC: toolchain for building eBPF modules

Re: RFC: toolchain for building eBPF modules within the OpenWrt build system

2021-10-04 Thread Thomas Hühn
Hiho, Thx for the nice summary! From my more admin, testing, running Mesh network perspective on OpenWrt I would prefer option 4) Reasons: -eBPF filters running in OpenWrt should be a reviewed process overseen by the core team -the CO-RE concept with userspace scripting for mature eBPF filters

Re: RFC: toolchain for building eBPF modules within the OpenWrt build system

2021-10-17 Thread Felix Fietkau
On 2021-10-04 15:20, Jo-Philipp Wich wrote: Hi Felix, I'd suggest to require a preinstalled host toolchain for the time being. How about requiring a preinstalled host toolchain by default, but building it from source on buildbot? If we rely on the toolchain on the host, the builds might var

Re: RFC: toolchain for building eBPF modules within the OpenWrt build system

2021-10-18 Thread Florian Eckert
I'd suggest to require a preinstalled host toolchain for the time being. How about requiring a preinstalled host toolchain by default, but building it from source on buildbot? I wouldn't make it dependent on whether openwrt compiles on the buildbot or not. I am not using this build option

Re: RFC: toolchain for building eBPF modules within the OpenWrt build system

2021-10-18 Thread Felix Fietkau
On 2021-10-18 15:37, Florian Eckert wrote: I'd suggest to require a preinstalled host toolchain for the time being. How about requiring a preinstalled host toolchain by default, but building it from source on buildbot? I wouldn't make it dependent on whether openwrt compiles on the buildbot