Intel® IXP400 Software
Access-Layer Components: Queue Manager (IxQMgr) API
may be called from a client polling mechanism, which calls the dispatcher to read the queues status at regular intervals. In the first example, the dispatcher is called in the context of an interrupt and the dispatcher gets invoked when the queue status change.
A parameter passed to the ixQMgrDispatcherLoopRun() function determines whether the lower set of 32 queues, queues
Note: Application software does not need to access the queues directly. The underlying
18.9Dispatcher Modes
The Codelet/Customer code must first initialize the IxQMgr by making a call to ixQMgrInit(), which takes no parameters and returns success or failure. No other IxQMgr functions may be called by other
Note: The ixQMgrInit() function should only be called once for a system. Once the IxQMgr has been started all other
The
—Perform Queue configuration
—Set the watermark levels
—Reads and writes entries to and from AQM
—Provides
—Set the priority of a dispatcher callback
Once the IxQMgr is initialized, the access component configures the queues. Queue configuration is done by setting up the attributes for respective queues. These attributes are typically set in the access components by using ixQMgrQConfig( ) and ixQMgrWatermarkSet( ) functions. Depending upon whether the queue is half full, nearly full, etc., the watermark level triggers the change of the status flag for a particular queue. The queue configuration and setting of the watermark levels and queue priority should be performed prior to enabling of the queue notification status flag. Once the queues are configured, the notification callback needs to be set or else it will go to a dummy callback. The Queue dispatcher loop can be started at any time following a ixQMgrInit(). However, the dispatcher function will service the callback only once the queue notification is enabled.
The IxQMgr governs the flow of traffic in Intel® IXP400 Software. Depending upon the OS, the application, and the performance required, there are three different ways the dispatcher can be called: Busy loop,
Programmer’s Guide | IXP400 Software Version 2.0 | April 2005 |
| Document Number: 252539, Revision: 007 | 269 |