API Reference Manual
1.46.0
|
Random Early Detection (RED) Random Early Detection is enabled to initiate a drop probability for the incoming packet when the packets in the queue/pool cross the specified threshold values. More...
#include <classification.h>
Data Fields | |
odp_bool_t | enable |
A boolean to enable RED When true, RED is enabled and configured with RED parameters. More... | |
odp_threshold_t | threshold |
Threshold parameters for RED RED is enabled when the resource usage is equal to or greater than the minimum threshold value and is disabled otherwise. | |
Random Early Detection (RED) Random Early Detection is enabled to initiate a drop probability for the incoming packet when the packets in the queue/pool cross the specified threshold values.
RED is enabled when 'red_enable' boolean is true and the resource usage is equal to or greater than the minimum threshold value. Resource usage could be defined either as the percentage of pool being full or the number of packets/bytes occupied in the queue depending on the platform capabilities.
When RED is enabled for a particular flow then further incoming packets are assigned a drop probability based on the size of the pool/queue.
Drop probability is configured as follows
RED is logically configured in the CoS and could be implemented in either pool or queue linked to the CoS depending on platform capabilities. Application should make sure not to link multiple CoS with different RED or BP configuration to the same queue or pool.
Definition at line 370 of file api/spec/classification.h.
odp_bool_t odp_red_param_t::enable |
A boolean to enable RED When true, RED is enabled and configured with RED parameters.
Otherwise, RED parameters are ignored. Default value is false.
Definition at line 375 of file api/spec/classification.h.