-
Notifications
You must be signed in to change notification settings - Fork 84
ExactCPUSwitch
ExactCPUSwitch — Click element; classifies packets by cpu
ExactCPUSwitch()
Batching: Batching natively supported
Ports: 1 input, 1 or more outputs
Processing: push
Can have any number of outputs. Chooses the output on which to emit each packet based on the thread's cpu. Contrary to CPUSwitch, the output is choosed using the thread-vector mapping. It means that the outputs will be evenly shared among threads. Eg, with CPUSwitch if threads 1, 7 and 8 push packets to a CPUSwitch with 3 outputs, the 1 and 7 will push to output 1, and 8 to output 2. Leading to an imbalance.
ExactCPUSwitch will use the known list of possible threads to balance evenly one input thread per output port, using a static mapping computed at initialization time.
Generated by click-elem2man from ../elements/standard/exactcpuswitch.hh:7
on 2022/11/25.