SolarCapture C Bindings User Guide  SF-115721-CD
Issue 1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
sc_rr_spreader Node Reference

This node spreads received packets over its set of outgoing links in round-robin order.

Detailed Description

This node spreads received packets over its set of outgoing links in round-robin order. It is usually used together with sc_rr_gather to spread load over multiple worker threads.

Packets are emitted by sc_rr_gather in the same order that they are received by sc_rr_spreader. (To ensure this, corresponding links must be added to sc_rr_spreader and sc_rr_gather in the same order). There is no guarantee as to the order in which packets will be handled by worker threads.

This mechanism of spreading load is suitable when the packet processing is stateless, and the work done per packet is either independent of the packet length, or the packet lengths are distributed randomly.

Arguments

None

Named Input Links

None