netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* taprio testing - Any help?
@ 2019-10-11 19:35 Murali Karicheri
  2019-10-11 20:12 ` Vinicius Costa Gomes
  0 siblings, 1 reply; 17+ messages in thread
From: Murali Karicheri @ 2019-10-11 19:35 UTC (permalink / raw)
  To: netdev

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@am57xx-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

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2019-10-17 22:20 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-11 19:35 taprio testing - Any help? Murali Karicheri
2019-10-11 20:12 ` Vinicius Costa Gomes
2019-10-11 20:56   ` Murali Karicheri
2019-10-11 21:26     ` Vinicius Costa Gomes
2019-10-13 21:10       ` Vladimir Oltean
2019-10-14 15:33         ` Murali Karicheri
2019-10-14 16:18           ` taprio testing with multiple streams Murali Karicheri
2019-10-14 23:39           ` taprio testing - Any help? Vinicius Costa Gomes
2019-10-16 17:02             ` Murali Karicheri
2019-10-16 17:14               ` Murali Karicheri
2019-10-16 17:22                 ` Murali Karicheri
2019-10-16 20:32               ` Vinicius Costa Gomes
2019-10-17 13:56                 ` Murali Karicheri
2019-10-17 19:32                   ` Vinicius Costa Gomes
2019-10-17 21:02                     ` Murali Karicheri
2019-10-17 22:26                       ` Murali Karicheri
2019-10-14 23:14         ` Vinicius Costa Gomes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).