Sure, no reason you can't do that.  Click doesn't care.

It sounds like you don't even need a lock on that final stage.  Just have each 
input thread drop packets off into a ring buffer.

--- On Wed, 2/23/11, Philip Prindeville <[email protected]> 
wrote:

> From: Philip Prindeville <[email protected]>
> Subject: [Click] Conversion of threads
> To: [email protected]
> Date: Wednesday, February 23, 2011, 9:36 PM
> I was wondering... if I'm running
> multiple duplicate paths each on its own core and I
> eventually need to collect them up so I can resequence
> packets and pass them up into user-space... how feasible is
> it to go from threaded and lockless to converging into a
> single locked queue (fan-in)?
> 
> I figure it would be the best of both worlds because most
> of the operations could happen threaded and without locking,
> and the locking only needs to be enforced in the final
> stage...
> 
> Thanks.
> 
> -Philip
> 
> _______________________________________________
> click mailing list
> [email protected]
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
> 


      
_______________________________________________
click mailing list
[email protected]
https://amsterdam.lcs.mit.edu/mailman/listinfo/click

Reply via email to