[Click] Conversion of threads

Bobby Longpocket bobbylongpocket at yahoo.com
Thu Feb 24 01:24:49 EST 2011


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 <philipp_subx at redfish-solutions.com> wrote:

> From: Philip Prindeville <philipp_subx at redfish-solutions.com>
> Subject: [Click] Conversion of threads
> To: click at pdos.csail.mit.edu
> 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
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
> 


      


More information about the click mailing list