[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <e03d01a0-8a70-6764-1c0e-04386d06a6c8@ti.com>
Date: Thu, 17 Oct 2019 18:26:04 -0400
From: Murali Karicheri <m-karicheri2@...com>
To: Vinicius Costa Gomes <vinicius.gomes@...el.com>,
Vladimir Oltean <olteanv@...il.com>
CC: "netdev@...r.kernel.org" <netdev@...r.kernel.org>
Subject: Re: taprio testing - Any help?
Vinicius,
On 10/17/2019 05:02 PM, Murali Karicheri wrote:
> On 10/17/2019 03:32 PM, Vinicius Costa Gomes wrote:
>> Murali Karicheri <m-karicheri2@...com> writes:
>>>
>>> root@...7xx-evm:~# tc qdisc replace dev eth0 parent root handle 100
>>> taprio \
>>> > num_tc 4 \
>>> > map 2 3 1 0 2 2 2 2 2 2 2 2 2 2 2 2 \
>>> > queues 1@0 1@0 1@0 1@0 \
>>> > base-time 1564535762845777831 \
>>> > sched-entry S 0xC 15000000 \
>>> > sched-entry S 0x2 15000000 \
>>> > sched-entry S 0x4 15000000 \
>>> > sched-entry S 0x8 15000000 \
>>> > txtime-delay 300000 \
>>> > flags 0x1 \
>>> > clockid CLOCK_TAI
>>> RTNETLINK answers: Invalid argument
>>>
>>> Anything wrong with the command syntax?
>>
>> I tried this example here, and it got accepted ok. I am using the
>> current net-next master. The first thing that comes to mind is that
>> perhaps you backported some old version of some of the patches (so it's
>> different than what's upstream now).
> Was on master of kernel.org. Will try net-next master now.
>
> Murali
>>
>>
>> Cheers,
>> --
>> Vinicius
>>
>
>
Today I have tried with RT kernel and it looks great. I can see the
frames in the correct order. Here are the complete set of commands
used with RT kernel. Just used taprio, no ETF. I introduced a guard
band in between schedules. Not sure if that is needed. I will try
without it and see if the capture looks the same.
ifconfig eth0 192.168.2.20
ethtool -L eth0 tx 4
tc qdisc replace dev eth0 parent root handle 100 taprio \
num_tc 4 \
map 0 0 2 3 1 1 0 0 0 0 0 0 0 0 0 0 \
queues 1@0 1@1 1@2 1@3 \
base-time 1564535762845777831 \
sched-entry S 0x3 30000000 \
sched-entry S 0x0 10000000 \
sched-entry S 0x4 30000000 \
sched-entry S 0x0 10000000 \
sched-entry S 0x8 30000000 \
clockid CLOCK_TAI
iptables -t mangle -A POSTROUTING -p udp --dport 10000 -j CLASSIFY
--set-class 0:0
iptables -t mangle -A POSTROUTING -p udp --dport 20000 -j CLASSIFY
--set-class 0:2
iptables -t mangle -A POSTROUTING -p udp --dport 30000 -j CLASSIFY
--set-class 0:3
iperf -c 192.168.2.10 -u -b50M -p 10000 -t20&
iperf -c 192.168.2.10 -u -b50M -p 20000 -t20&
iperf -c 192.168.2.10 -u -b100M -p 30000 -t20&
Thanks for all your help.
Regards,
Murali
Powered by blists - more mailing lists