[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20090615113609.db5c0613.usui@mxm.nes.nec.co.jp>
Date: Mon, 15 Jun 2009 11:36:09 +0900
From: Minoru Usui <usui@....nes.nec.co.jp>
To: 김재열 <gauri@...i.re.kr>
Cc: <tgraf@...radead.org>, <netdev@...r.kernel.org>,
<containers@...ts.linux-foundation.org>
Subject: Re: [HELP] for using class group classifier network controller
Hi, Cheiyol
> # classid 1:10
>
> echo 0x1000A > /dev/cpuctl/foo/net_cls.classid
>
> #classid 1:20
>
> echo 0x10014 > /dev/cpuctl/bob/net_cls.classid
(snip)
> # add class 1:10 for foo group
>
> $TC class add dev eth0 parent 1:0 classid 1:10 htb rate 50mbit
>
> # add class 1:20 for bob group
>
> $TC class add dev eth0 parent 1:0 classid 1:20 htb rate 30mbit
>
> # default class
>
> $TC class add dev eth0 parent 1:0 classid 1:30 htb rate 10mbit
In class ID to use TC, both a major number and a minor number are hexadecimal.
So 1:10 equals 0x00010010.
I think, you should set 0x10010 to net_cls.classid if you classify to 1:10.
--
Minoru Usui <usui@....nes.nec.co.jp>
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists