emanuele-f Posted October 23, 2020 Posted October 23, 2020 (edited) Running latest armbian buster on nanopi neo plus2 (https://www.armbian.com/nanopi-neo-plus2). Trying to set up a tc filter results in a "Error: TC classifier not found". The error can be reproduced by running: tc qdisc add dev eth0 root handle 1:0 htb default 10 tc class add dev eth0 parent 1:0 classid 1:10 htb rate 200mbit ceil 200mbit burst 15k tc qdisc add dev eth0 parent 1:10 sfq perturb 10 tc filter add dev eth0 parent 1:10 protocol all handle 0x310 flow hash keys nfct-src divisor 1024 According to https://stackoverflow.com/questions/61799390/enable-tc-of-iproute2-package-on-yocto, the CONFIG_NET_CLS_U32 is missing from the kernel configuration, verified with: zcat /proc/config.gz | grep NET_CLS_U32 # CONFIG_NET_CLS_U32 is not set The CONFIG_NET_CLS_U32 option is usually present in normal linux distributions, can you add it? Edited October 23, 2020 by emanuele-f Add software info
Igor Posted October 23, 2020 Posted October 23, 2020 25 minutes ago, emanuele-f said: in normal linux distributions Armbian is not lika a normal distribution, but very much a special distro for ARM single board computers dividied into (kernel) families to secure maximum performance which sadly bring way bigger maintaning expenses ... then normal - mee too - linux distribution. Its also a build system first. Like Yocto and Buildroot. A distribution is its side outcome and its supported in best effort manner. And it is also a base for many other mee-too distros that provides some ARM images. 25 minutes ago, emanuele-f said: can you add it? Also you can save us some time and do that: https://docs.armbian.com/Process_Contribute/ Here: https://github.com/armbian/build/blob/master/config/kernel/linux-sunxi64-current.config and perhaps also elsewhere: https://github.com/armbian/build/tree/master/config/kernel
emanuele-f Posted October 23, 2020 Author Posted October 23, 2020 Thanks for your prompt reply. I can see that the kernel module option is present in other families (e.g. https://github.com/armbian/build/blob/master/config/kernel/linux-rockchip64-current.config) and I assume that adding such option does not introduce a performance impact unless it is manually activated by running the "tc filter add.." command. I can try to build the kernel and the image and provide a pull request but it will take some time as it is my first time building armbian.
Igor Posted October 24, 2020 Posted October 24, 2020 14 hours ago, emanuele-f said: I can see that the kernel module option is present in other families We are to make them identical but since there so much other - more critical - issues, this is left mainly untouched and synched once per year or so. 14 hours ago, emanuele-f said: I assume that adding such option does not introduce a performance impact I would assume the same, yes. 14 hours ago, emanuele-f said: I can try to build the kernel and the image and provide a pull request but it will take some time as it is my first time building armbian. There is no urgency. Take your time.
Solution emanuele-f Posted October 24, 2020 Author Solution Posted October 24, 2020 Compilation was easy and painless, great work! Please check out https://github.com/armbian/build/pull/2277. 1
Recommended Posts