API Reference Manual  1.45.0
odp_red_param_t Struct Reference

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>

Collaboration diagram for odp_red_param_t:
[legend]

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.
 

Detailed Description

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

  • Drop probability is 100%, when resource usage >= threshold.max
  • Drop probability is 0%, when resource usage <= threshold.min
  • Drop probability is between 0...100 % when resource usage is between threshold.min and threshold.max

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.

Field Documentation

◆ enable

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.


The documentation for this struct was generated from the following file: