[openbeosnetteam] [PATCH] mbuf queues

  • From: "David Reid" <dreid@xxxxxxxxxxxx>
  • To: openbeosnetteam@xxxxxxxxxxxxx
  • Date: Mon, 11 Feb 2002 15:40:56 GMT

This is a big patch and I'm not sure the server will like it, but here 
goes...

I'm not just blindly committing as this raises some issues...

Basically it changes the entire stack to use a set of queues. When we 
start we simply give the modules the opportunity to register an input 
and an output queue with a central array. the array pointers are passed 
into the modules.

When one module wants to pass on data it simply adds the mbuf to the 
queue for that protocol - and that's it. The protocol gets woken up by 
a sem being released and processes the mbuf. Simple really.

The issues? This design would mean that every module runs 2 threads. 
Each queue eats 2 sem's so it's a sight more hungry than the old 
design.

the advantages. It'll be faster as each protocol can get on with it 
while the others are doing their stuff. Simpler mechanism for passing 
data between stacks and even more removal of dependancies between 
modules.

So, attached is the patch.  Please review and see what you think.

david


-- Binary/unsupported file stripped by Listar --
-- Type: application/octet-stream
-- File: diffs


-- Binary/unsupported file stripped by Listar --
-- Type: application/x-be_attribute
-- File: BeOS Attributes




Other related posts:

  • » [openbeosnetteam] [PATCH] mbuf queues