Hello I''m doing some qdisc programming and I want to get/read the current ingress rate from a kernel module I was wondering what is the most convenient of achieving this My idea is to load the ingress qdisc and the police filter if necessary. and modify the source to export a structure or function so I can read the ingress rate. How does this sound? Is there a simpler way? With regards R.Harper _________________________________________________________________ Log på MSN Messenger direkte fra nettet http://webmessenger.msn.com/
good afternoon, I am a newbie to tc. i want to set qdisc to pfifo_fast, using the command below: % tc qdisc add dev eth0 root pfifo_fast RTNETLINK answers: Invalid argument why am i getting this error message? thanx. victor
What for? I''ts already there - it''s the default qdisc when there''s no other assigned. So to set eth0 qdisc to pfifo_fast you just need to (as root of course) #tc qdisc del root dev eth0 check with #tc qdisc show dev eth0 Martin On Saturday 07 May 2005 11:27, Victor Yeo wrote:> good afternoon, > > I am a newbie to tc. > > i want to set qdisc to pfifo_fast, using the command below: > % tc qdisc add dev eth0 root pfifo_fast > RTNETLINK answers: Invalid argument > > why am i getting this error message? > > thanx. > > victor > > > _______________________________________________ > LARTC mailing list > LARTC@mailman.ds9a.nl > http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
the problem is after i delete the qdisc, and check again, there is nothing being displayed. Is this correct? #tc qdisc del root dev eth0 #tc qdisc show dev eth0 ----- Original Message ----- From: "Marcin Ka?u?a" <marcin_ml@sekretarka.no-ip.org> To: <lartc@mailman.ds9a.nl> Cc: "Victor Yeo" <yeosv@ndc.com.tw> Sent: Monday, May 09, 2005 12:45 AM Subject: Re: [LARTC] pfifo_fast error message> What for? I''ts already there - it''s the default qdisc when there''s noother> assigned. So to set eth0 qdisc to pfifo_fast you just need to (as root of > course) > #tc qdisc del root dev eth0 > > check with > #tc qdisc show dev eth0 > > Martin > > On Saturday 07 May 2005 11:27, Victor Yeo wrote: > > good afternoon, > > > > I am a newbie to tc. > > > > i want to set qdisc to pfifo_fast, using the command below: > > % tc qdisc add dev eth0 root pfifo_fast > > RTNETLINK answers: Invalid argument > > > > why am i getting this error message? > > > > thanx. > > > > victor > > > > > > _______________________________________________ > > LARTC mailing list > > LARTC@mailman.ds9a.nl > > http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc >
Victor Yeo wrote:> > the problem is after i delete the qdisc, and check again, there is nothing > being displayed. Is this correct? > > #tc qdisc del root dev eth0 > > #tc qdisc show dev eth0tc qdisc show dev eth0 returns: qdisc pfifo_fast 0: bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1 If you see anything else, then I''d say you have a problem. -- gypsy
gypsy wrote:>Victor Yeo wrote: > > >>the problem is after i delete the qdisc, and check again, there is nothing >>being displayed. Is this correct? >> >>#tc qdisc del root dev eth0 >> >>#tc qdisc show dev eth0 >> >> > >tc qdisc show dev eth0 returns: > >qdisc pfifo_fast 0: bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1 > >If you see anything else, then I''d say you have a problem. >-- >gypsy > > >Older versions of the iproute2 tools didn''t know anything about pfifo_fast, it would even core dump sometimes. This was one of the first bugs I fixed about a year ago