All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jamal Hadi Salim <jhs@mojatatu.com>
To: John Fastabend <john.fastabend@gmail.com>
Cc: Cong Wang <xiyou.wangcong@gmail.com>, netdev <netdev@vger.kernel.org>
Subject: Re: tc rsvp filter show broke
Date: Fri, 26 Sep 2014 18:48:13 -0400	[thread overview]
Message-ID: <5425ED2D.1000005@mojatatu.com> (raw)
In-Reply-To: <5425A545.1040907@gmail.com>

On 09/26/14 13:41, John Fastabend wrote:
> Hi Jamal,
>
> Here is another strange 'tc' result that I think is a
> bug. If it was intended I can't see why. Show filter
> commands on rsvp classifiers only list the first entry?
>

Hrm  - poking inside there and this seems to be one of those
classifiers that hasnt been getting a lot of love. Doesnt
support actions well for example.

It seems to work for me:
----------
/sbin/tc -V
tc utility, iproute2-ss140610

uname -a
Linux jhs-1 3.16.0-rc2+ #4 SMP Fri Aug 29 11:13:53 EDT 2014 x86_64 
x86_64 x86_64 GNU/Linux

sudo /sbin/tc qdisc add dev eth0 root handle 1:0 prio
sudo /sbin/tc filter add dev eth0 pref 10 proto ip parent 1:0 rsvp 
session 10.0.0.1 ipproto icmp classid 1:1  police rate 1kbit burst 90k 
conform-exceed drop/ok
/sbin/tc -s filter show dev eth0 parent 1:0
filter protocol ip pref 10 rsvp
filter protocol ip pref 10 rsvp fh 0x0001100a flowid 1:1 session 
10.0.0.1 ipproto icmp
  Sent 0 bytes 0 pkts (dropped 0, overlimits 0)

Now lets send a fast ping:
sudo ping -f 10.0.0.1 -c 10000
.......
10000 packets transmitted, 386 received, 96% packet loss, time 115495ms
rtt min/avg/max/mdev = 0.300/0.499/1.262/0.164 ms, ipg/ewma 11.550/0.463 ms

/sbin/tc -s filter show dev eth0 parent 1:0
filter protocol ip pref 10 rsvp
filter protocol ip pref 10 rsvp fh 0x0001100a flowid 1:1 session 
10.0.0.1 ipproto icmp
  Sent 980000 bytes 10000 pkts (dropped 9614, overlimits 9614)

cheers,
jamal

  reply	other threads:[~2014-09-26 22:48 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-26 17:41 tc rsvp filter show broke John Fastabend
2014-09-26 22:48 ` Jamal Hadi Salim [this message]
2014-09-26 23:25   ` John Fastabend
2014-09-28 15:05     ` Jamal Hadi Salim
2014-09-28 17:15       ` Cong Wang
2014-09-28 17:50         ` John Fastabend
2014-09-28 18:48           ` Jamal Hadi Salim
2014-09-29  1:40           ` Cong Wang
2014-09-29  5:34             ` John Fastabend

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=5425ED2D.1000005@mojatatu.com \
    --to=jhs@mojatatu.com \
    --cc=john.fastabend@gmail.com \
    --cc=netdev@vger.kernel.org \
    --cc=xiyou.wangcong@gmail.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.