[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <a69550fc-b545-b5de-edd9-25d1e3be5f6b@ti.com>
Date: Fri, 11 Oct 2019 15:35:13 -0400
From: Murali Karicheri <m-karicheri2@...com>
To: "netdev@...r.kernel.org" <netdev@...r.kernel.org>
Subject: taprio testing - Any help?
Hi,
I am testing the taprio (802.1Q Time Aware Shaper) as part of my
pre-work to implement taprio hw offload and test.
I was able to configure tap prio on my board and looking to do
some traffic test and wondering how to play with the tc command
to direct traffic to a specfic queue. For example I have setup
taprio to create 5 traffic classes as shows below;-
Now I plan to create iperf streams to pass through different
gates. Now how do I use tc filters to mark the packets to
go through these gates/queues? I heard about skbedit action
in tc filter to change the priority field of SKB to allow
the above mapping to happen. Any example that some one can
point me to?
Here is what I have tried so far.
tc qdisc replace dev eth0 parent root handle 100 taprio \
num_tc 5 \
map 0 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 \
queues 1@0 1@1 1@2 1@3 1@4 \
base-time 1564628923967325838 \
sched-entry S 01 4000000 \
sched-entry S 02 4000000 \
sched-entry S 04 4000000 \
sched-entry S 08 4000000 \
sched-entry S 10 4000000 \
clockid CLOCK_TAI
root@...7xx-evm:~# tc qdisc show dev eth0
qdisc taprio 100: root refcnt 9 tc 5 map 0 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2
queues offset 0 count 1 offset 1 count 1 offset 2 count 1 offset 3 count
1 offset 4 count 1
clockid TAI offload 0 base-time 1564628923967325838 cycle-time
20000000 cycle-time-extension 0
index 0 cmd S gatemask 0x1 interval 4000000
index 1 cmd S gatemask 0x2 interval 4000000
index 2 cmd S gatemask 0x4 interval 4000000
index 3 cmd S gatemask 0x8 interval 4000000
index 4 cmd S gatemask 0x10 interval 4000000
qdisc pfifo 0: parent 100:5 limit 1000p
qdisc pfifo 0: parent 100:4 limit 1000p
qdisc pfifo 0: parent 100:3 limit 1000p
qdisc pfifo 0: parent 100:2 limit 1000p
qdisc pfifo 0: parent 100:1 limit 1000p
Murali
Powered by blists - more mailing lists