Hello!
I am currently trying to do some experiments for verifying the TSN functions like the image below. I am using 2 i.MX8MP boards and a LS1021ATSN switch.
Anyway, I did time synchronization and configured a TAPRIO command on the swp3 port, which is connected to the receiver board(i.MX8MP).
Then I tried to configure the clsact to swp3 to allocate certain traffic classes and queues for some kinds of network traffics so that the TAPRIO can allocate appropriate time stamps for the traffic classes and the queues.
However, when I typed the command "tc qdisc add dev swp3 clsact", it gave me the error saying "Error: Cannot find ingress queue for specified device".
Then I checked the interface with the command "ethtool -l swp3", it gave me an error like the image below.
And when I check the same thing for the i.MX8MP evk, I could see the queue lists as below.
So, it seems that the swpX interfaces don't have multi-queues and as far as I know, for using the TSN functions, an network interface must have multi-queues.
I am wondering why this happens, so if anyone have a solution for this, please help me.
Thanks.
Best Regards.
please use OpenIL-v1.11 rootfs, you can also replace kernel using the newer version of Linux, due what you are trying is not supported in newest real timeEdge OS.
I suggest to use the LS1028A for TSN
dear @SH8Lee ,
please try the next command config:
tc qdisc add dev eth0 root handle 1: multiq
note: rename eth0 parameter regarding your board.
https://www.kernel.org/doc/Documentation/networking/multiqueue.txt
for details on TSN Qdisc use the next link
https://tsn.readthedocs.io/qdiscs.html
Or, I wonder if you can build a new LS1021ATSN boot image that includes all the modules or functions needed for TSN demonstration?
What I mean for "all the modules or functions needed for TSN demonstration" are multiqueue, clsact, skbedit, etc., as well as TAS, TAPRIO, PTP and so on.
I want a complete image which enables me to follow all the processes of the example demonstration scenario in "4.1.5 TSN on LS1021A-TSN", of NXP Real-time Edge Software 2.4 official User Guide, at least.
Thank you again.
Thank you for your reply.
However, when I type the command you told me to try, it gives me an error saying "Error: Specified qdisc kind is unknown".
And when I check the default qdisc status of the interface that I want to execute the multi-queue function, it shows only one line as below.
qdisc noqueue 0: root refcnt 2
I think it is because something is not installed on this board, but not sure.
Can you give me more solutions for this, please?
Thanks.