From: Vinicius Costa Gomes <vinicius.gomes@intel•com>
To: Murali Karicheri <m-karicheri2@ti•com>,
"netdev\@vger.kernel.org" <netdev@vger•kernel.org>
Subject: Re: taprio testing - Any help?
Date: Fri, 11 Oct 2019 13:12:08 -0700 [thread overview]
Message-ID: <87v9sv3uuf.fsf@linux.intel.com> (raw)
In-Reply-To: <a69550fc-b545-b5de-edd9-25d1e3be5f6b@ti.com>
Hi Murali,
Murali Karicheri <m-karicheri2@ti•com> writes:
> 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?
What I have been using for testing these kinds of use cases (like iperf)
is to use an iptables rule to set the priority for some kinds of traffic.
Something like this:
sudo iptables -t mangle -A POSTROUTING -p udp --dport 7788 -j CLASSIFY --set-class 0:3
This will set the skb->priority of UDP packets matching that rule to 3.
Another alternative is to create a net_prio cgroup, and the sockets
created under that hierarchy would have have that priority. I don't have
an example handy for this right now, sorry.
Is this what you were looking for?
Cheers,
--
Vinicius
next prev parent reply other threads:[~2019-10-11 20:11 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-11 19:35 taprio testing - Any help? Murali Karicheri
2019-10-11 20:12 ` Vinicius Costa Gomes [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87v9sv3uuf.fsf@linux.intel.com \
--to=vinicius.gomes@intel$(echo .)com \
--cc=m-karicheri2@ti$(echo .)com \
--cc=netdev@vger$(echo .)kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox