Qosify: new package for DSCP marking + cake

Thanks for the hint. That approach makes it really easy to include qosify in a build.

Documenting the steps for others:

  • download the llvm-bpf-13.0.0.tar.xz from your router's target downloads to your buildroot. E.g. https://downloads.openwrt.org/snapshots/targets/ipq806x/generic/llvm-bpf-13.0.0.tar.xz

  • extract the files into the buildroot: tar -xvf llvm-bpf-13.0.0.tar.xz

  • Change toolchain option to use a prebuilt LLVM toolchain, and enable qosify. I only needed to add these two lines into my .config recipe, and all other dependencies got pulled in automatically:

    CONFIG_USE_LLVM_PREBUILT=y
    CONFIG_PACKAGE_qosify=y
    

If you have extracted the LLVM toolchain properly, it will get detected by make menuconfig or defconfig, and the related options get set correctly in .config. If the toolchain is missing, the modified config settings will not show up in .config.

4 Likes