#ifndef CPUSWITCH_HH
#define CPUSWITCH_HH
#include <click/element.hh>
/*
* =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<String> &, ErrorHandler *);
void push(int port, Packet *);
};
#endif
syntax highlighted by Code2HTML, v. 0.9.1