OpenNSL API Guide and Reference Manual
|
Some operating modes within switching devices can be set a few ways, but are usually not changed after device initialization. These often are properties that do not fit well into other parts of the OpenNSL APIs. They have been collected into one set of control APIs.
These APIs set parameters related to general device operation such as controlling whether certain types of packets should be sent to the local CPU, or setting the priority to be used when such packets are forwarded to the CPU. The port specific operations affect only the indicated port (where possible) while the general APIs affect all ports. Not all operations can be carried out on individual ports on all devices.
The various switch controls can be found in <opennsl/switch.h>.