[PATCH 1/2]: powerpc/cell spidernet bottom half

Arnd Bergmann arnd at arndb.de
Thu Aug 17 08:16:46 EST 2006

Am Wednesday 16 August 2006 23:32 schrieb David Miller:
> Can spidernet be told these kinds of parameters?  "N packets or
> X usecs"?

It can not do exactly this but probably we can get close to it by

1.) Setting a one-time interrupt to fire x*10µs after putting a
   packet into the TX queue.


2.a) Enabling end of TX queue interrupts whenever more than y frames
     have been queued for TX.


2.b) Marking frame number y in the TX to fire an interrupt when it
     has been transmitted, and move the mark whenever we clean up
     TX descriptors.


2.c) Marking frame number y to generate an interrupt, but counting
     y from the end of the queue, and update the mark whenever we
     add frames to the queue tail.

I'm not sure which version of 2. would give us the best approximation.

	Arnd <><

More information about the Linuxppc-dev mailing list