netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Thomas Graf <tgraf@suug.ch>
To: Chei-yol Kim <gauri@etri.re.kr>
Cc: netdev@vger.kernel.org
Subject: Re: [PATCH] pkt_sched: Control group classifier
Date: Tue, 14 Oct 2008 19:03:31 +0200	[thread overview]
Message-ID: <20081014170331.GC20815@postel.suug.ch> (raw)
In-Reply-To: <loom.20081014T115257-383@post.gmane.org>

* Chei-yol Kim <gauri@etri.re.kr> 2008-10-14 11:56
> Thomas Graf <tgraf <at> suug.ch> writes:
> 
> > 
> > This patch implements a very basic cgroup subsystem which allows
> > assigning classids to cgroups. It also adds a trivial classifier
> > to filter packets based on that classid and map them to classes.
> > 
> 
> In order to test your patch, I need more programs such as iproute-x.x.x 
> package modified for using your cgroup classifier.
> You seem to test your code now. Please send me additional code and patch for 
> testing environments.

Here is an example of how to use it:

mkdir -p /dev/cgroup
mount -t cgroup net_cls -onet_cls /dev/cgroup
mkdir /dev/cgroup/foo

# packets in cgroup foo go to class 10:1
echo 0xA0001 > /dev/cgroup/foo/net_cls.classid

tc qdisc add dev eth0 root handle 10: htb
tc class add dev eth0 parent 10:0 classid 10:1 htb rate 10mbit
tc class add dev eth0 parent 10:0 classid 10:2 htb rate 10mbit

# cgroup filter -> 10:X
tc filter add dev eth0 parent 10: protocol ip prio 10 handle 20: cgroup
# everything else -> 10:1
tc filter add dev eth0 parent 10: protocol ip prio 20 basic classid 10:2


  parent reply	other threads:[~2008-10-14 17:03 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-13 15:57 [PATCH] pkt_sched: Control group classifier Thomas Graf
2008-10-14 11:56 ` Chei-yol Kim
2008-10-14 17:00   ` Thomas Graf
2008-10-14 17:03   ` Thomas Graf [this message]
2008-10-16  5:41 ` Andi Kleen
2008-10-17 18:23   ` Thomas Graf
2008-10-17 18:32     ` Andi Kleen
2008-10-17 20:09       ` Thomas Graf
2008-10-18  5:38         ` Andi Kleen
2008-10-19 17:00           ` Thomas Graf

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=20081014170331.GC20815@postel.suug.ch \
    --to=tgraf@suug.ch \
    --cc=gauri@etri.re.kr \
    --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).