38 #ifndef OPENAPI_COS_H_INCLUDED
39 #define OPENAPI_COS_H_INCLUDED
43 #define OPEN_COS_ALL_INTERFACES 0
153 uint8_t dropPrecedence, uint8_t ecnEnabled, int16_t wredMinThreshold,
154 int16_t wredMaxThreshold, int16_t wredDropProbability);
196 uint64_t *dropCount, uint64_t *ecnMarked);
235 uint32_t intfNum, uint8_t queueNum,
open_error_t openapiCosQueueIntfShapingRateGet(openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t *rate)
Get the COS egress shaping rate for an interface.
open_error_t openapiCosQueueWredSet(openapiClientHandle_t *client_handle, uint32_t intfNum, uint8_t queueNum, uint8_t enableWred)
Enable or disable WRED for a given queue and for a given or all interfaces.
open_error_t openapiCosQueueIntfShapingRateUnitsGet(openapiClientHandle_t *client_handle, OPEN_RATE_UNIT_t *rateUnit)
Get the units used to express rates.
open_error_t
OPEN uses these enumerators to indicate the error codes.
open_error_t openapiCosQueueWredStatsClear(openapiClientHandle_t *client_handle, uint32_t intfNum, uint8_t queueNum)
Clear WRED and ECN counters for a given queue and for a given or all interfaces.
OPEN_RATE_UNIT_t
OpEN uses this enumeration to define rate units.
open_error_t openapiCosQueueWredDropParamsReset(openapiClientHandle_t *client_handle, uint32_t intfNum, uint8_t queueNum)
Reset WRED and ECN drop configuration on a given queue for a given or all interfaces.
open_error_t openapiCosQueueWredStatsGet(openapiClientHandle_t *client_handle, uint32_t intfNum, uint8_t queueNum, uint64_t *dropCount, uint64_t *ecnMarked)
Get WRED drop and ECN marked counters for a given queue and for a given or all interfaces.
open_error_t openapiCosQueueIntfShapingRateSet(openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t rate)
Set the COS egress shaping rate for an interface.
open_error_t openapiCosQueueIntfShapingPercentageIncrementGet(openapiClientHandle_t *client_handle, uint32_t *increment)
Get the minimum increment allowed when percentage of link speed is used to express rates...
open_error_t openapiCosQueueWredDropParamsSet(openapiClientHandle_t *client_handle, uint32_t intfNum, uint8_t queueNum, uint8_t dropPrecedence, uint8_t ecnEnabled, int16_t wredMinThreshold, int16_t wredMaxThreshold, int16_t wredDropProbability)
Set WRED and ECN drop configuration on a given queue for a given or all interfaces.