Skip to content
Tom Barbette edited this page Nov 25, 2022 · 1 revision

ExactCPUSwitch Element Documentation

NAME

ExactCPUSwitch — Click element; classifies packets by cpu

SYNOPSIS

ExactCPUSwitch()

Batching: Batching natively supported
Ports: 1 input, 1 or more outputs
Processing: push

DESCRIPTION

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.

SEE ALSO

CPUSwitch

Generated by click-elem2man from ../elements/standard/exactcpuswitch.hh:7 on 2022/11/25.

Clone this wiki locally