From: Cong Wang <cwang@twopensource.com>
To: Erik Hugne <erik.hugne@ericsson.com>
Cc: netdev <netdev@vger.kernel.org>
Subject: Re: tc ingress filters not applied
Date: Mon, 30 Mar 2015 10:00:58 -0700 [thread overview]
Message-ID: <CAHA+R7O9pfEmGsr_w+srVuOWcA5PTT8pv1Awb_EOOSqxXKVahA@mail.gmail.com> (raw)
In-Reply-To: <20150330141523.GQ23551@haze>
On Mon, Mar 30, 2015 at 7:15 AM, Erik Hugne <erik.hugne@ericsson.com> wrote:
> I'm having troubles with TC policing, the ingress filters does not seem to be
> applied.
>
> node1 ~ # tc qdisc add dev eth0 ingress
> node1 ~ # tc qdisc ls
> qdisc pfifo_fast 0: dev eth0 root refcnt 2 bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
> qdisc ingress ffff: dev eth0 parent ffff:fff1 ----------------
> //Test 1: Limit TIPC low importance traffic to 100mbit
> node1 ~ # tc filter add dev eth0 parent ffff: protocol tipc u32 match u8 0 1E at
> 0 police rate 100mbit buffer 10k drop flowid :1
> node1 ~ # tc filter show dev eth0
> node1 ~ #
>
> //Test 2: Limit ICMP to 20kbit
> node1 ~ # tc filter add dev eth0 parent ffff: protocol ip prio 20 u32 match ip p
> rotocol 1 0xff police rate 20kbit buffer 10k drop flowid :2
> node1 ~ # tc filter show dev eth0
tc filter show dev eth0 parent ffff:
next prev parent reply other threads:[~2015-03-30 17:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-30 14:15 tc ingress filters not applied Erik Hugne
2015-03-30 17:00 ` Cong Wang [this message]
2015-03-31 6:32 ` Erik Hugne
2015-07-06 17:24 ` Huan Le
2015-07-06 17:43 ` Daniel Borkmann
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=CAHA+R7O9pfEmGsr_w+srVuOWcA5PTT8pv1Awb_EOOSqxXKVahA@mail.gmail.com \
--to=cwang@twopensource.com \
--cc=erik.hugne@ericsson.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;
as well as URLs for NNTP newsgroup(s).