#ifndef CPUSWITCH_HH #define CPUSWITCH_HH #include /* * =c * CPUSwitch() * =s smpclick * classifies packets by cpu * =d * Can have any number of outputs. * Chooses the output on which to emit each packet based on the thread's cpu. * =a * RoundRobinSwitch, StrideSwitch, HashSwitch */ class CPUSwitch : public Element { public: CPUSwitch(); ~CPUSwitch(); const char *class_name() const { return "CPUSwitch"; } const char *port_count() const { return "1/1-"; } const char *processing() const { return PUSH; } int configure(Vector &, ErrorHandler *); void push(int port, Packet *); }; #endif