From: John Fastabend <john.r.fastabend@intel.com>
To: "John A. Sullivan III" <jsullivan@opensourcedevel.com>
Cc: "netdev@vger.kernel.org" <netdev@vger.kernel.org>
Subject: Re: tc filter show not displaying anything
Date: Thu, 15 Dec 2011 21:00:09 -0800 [thread overview]
Message-ID: <4EEAD059.5010907@intel.com> (raw)
In-Reply-To: <1324010915.8451.319.camel@denise.theartistscloset.com>
On 12/15/2011 8:48 PM, John A. Sullivan III wrote:
> Hello, all. I'm starting to feel really stupid and showing my newbidity
> to tc. I do a:
> tc filter show dev eth1
> and nothing is displayed but I suspect the filter is there because if I
> try to add it again, the kernel complains with:
> RTNETLINK answers: File exists
> We have an error talking to the kernel
>
> Here is what I have put together so far (disregard the silly ports - it
> is just for netcat testing):
>
> tc qdisc add dev eth1 root handle 1: hfsc default 20
> tc class add dev eth1 parent 1: classid 1:1 hfsc sc rate 1490kbit ul rate 1490kbit
> tc class add dev eth1 parent 1:1 classid 1:20 hfsc rt rate 800kbit ls rate 200kbit
> tc qdisc add dev eth1 parent 1:20 handle 1201 sfq perturb 10
> tc class add dev eth1 parent 1:1 classid 1:10 hfsc rt umax 16000kbit dmax 13ms rate 400kbit ls rate 1000kbit
> tc qdisc add dev eth1 parent 1:10 handle 1101 sfq perturb 10
> iptables -t mangle -A POSTROUTING -p 6 --syn --dport 443 -j CONNMARK --set-mark 0x10
> iptables -t mangle -A POSTROUTING -p 6 -j CONNMARK --restore-mark
>
> I then did:
>
> root@testswitch01:~# tc filter add dev eth1 parent 1:1 protocol ip prio 1 handle 0x10 fw flowid 1:10
> root@testswitch01:~# tc filter show dev eth1
> root@testswitch01:~# tc filter show parent 1:1
>
> What simple, practical thing did I mangle? Thanks - John
>
#tc filter show dev eth1 parent 1:1
works here.
next prev parent reply other threads:[~2011-12-16 5:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-16 4:48 tc filter show not displaying anything John A. Sullivan III
2011-12-16 5:00 ` John Fastabend [this message]
2011-12-16 5:33 ` John A. Sullivan III
2011-12-16 5:17 ` Eric Dumazet
2011-12-16 5:39 ` John A. Sullivan III
2011-12-16 5:42 ` Eric Dumazet
2011-12-16 19:06 ` John A. Sullivan III
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=4EEAD059.5010907@intel.com \
--to=john.r.fastabend@intel.com \
--cc=jsullivan@opensourcedevel.com \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
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