mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* new queuing discipline
@ 2001-04-08  9:37 Oldrich Kepka
  2001-04-08 17:00 ` kuznet
  0 siblings, 1 reply; 2+ messages in thread
From: Oldrich Kepka @ 2001-04-08  9:37 UTC (permalink / raw)
  To: linux-kernel

Hi,
I am developing new queuing disciline. The purpose of this queue is to delay
outgoing packets. I wrote module sch_delay.o. This module implements delay_e
nqueue() and delay_dequeue() functions. I also modify tc to comunicate throu
gh netlink with my module. Because i want to dequeue only when there are suf
ficiently old packet on the top of the queue, i immediately return from dequ
eue function returning NULL. But the dequeue function is called only when so
me event occures. I found out, that i occures for example when there are new
packet in the queue. No other conditions i found. But i need repeatedly test
the top packet in the queue.

How to accomplish it?

Thanks
Olda





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

* Re: new queuing discipline
  2001-04-08  9:37 new queuing discipline Oldrich Kepka
@ 2001-04-08 17:00 ` kuznet
  0 siblings, 0 replies; 2+ messages in thread
From: kuznet @ 2001-04-08 17:00 UTC (permalink / raw)
  To: Oldrich Kepka; +Cc: linux-kernel

Hello!

> packet in the queue. No other conditions i found. But i need repeatedly test
> the top packet in the queue.
> 
> How to accomplish it?

Look into sch_tbf.c for example. Hint: timer.

Alexey

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

end of thread, other threads:[~2001-04-08 17:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-04-08  9:37 new queuing discipline Oldrich Kepka
2001-04-08 17:00 ` kuznet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®