Jump to content

"TC classifier not found" when using tc filters


Go to solution Solved by emanuele-f,

Recommended Posts

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 by emanuele-f
Add software info
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines