All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] how to add my own traffic scheduler to TC
@ 2004-03-03 15:17 Kennedy Cheng
  2004-03-03 16:46 ` Roy
  2004-03-04 11:47 ` Kennedy Cheng
  0 siblings, 2 replies; 3+ messages in thread
From: Kennedy Cheng @ 2004-03-03 15:17 UTC (permalink / raw)
  To: lartc

What are the steps needed to add my own traffic scheduler to TC?

My understanding is that I need to do something in the net/sched/
directory: add a schedular eg sch_blue.c, change the Makefile, config.in
and sch_api.c; add the appropriate qopt, xstats struct... in the
include/linux/pkt_sched.h. I've got it all compiled without warnings or
error. When I typed "tc add dev eth0 root blue limit 1000kB......", it
complained "Unknown qdisc "blue", hence option "limit" is unparsable".
When I typed "tc add dev eth0 root red limit 1000kB.....", it worked
fine (of course).

The code I wrote was a complete copy of the sch_red.c, with text changed
to blue instead of red. TC is not happy with my blue scheduler. What
have I done wrong? Have I missed something?

Linux Kernel version 2.4.20-8

Many Thanks,
Kennedy


_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-03-04 11:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-03 15:17 [LARTC] how to add my own traffic scheduler to TC Kennedy Cheng
2004-03-03 16:46 ` Roy
2004-03-04 11:47 ` Kennedy Cheng

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.