|
Open Ethernet Networking (OpEN) API Guide and Reference Manual
3.13.1.2
|
Macros | |
| #define | OPEN_COS_ALL_INTERFACES 0 |
| #define | OPEN_COS_QUEUE_ID_MIN 0 |
| #define | OPEN_MAX_CFG_DROP_PREC_LEVELS 4 |
| #define | OPEN_MIN_CFG_DROP_PREC_LEVELS 1 |
Enumerations | |
| enum | OPEN_QOS_COS_MAP_TRUST_MODE_t { OPEN_QOS_COS_MAP_TRUST_MODE_INVALID = 0, OPEN_QOS_COS_MAP_TRUST_MODE_UNTRUSTED, OPEN_QOS_COS_MAP_TRUST_MODE_DOT1P, OPEN_QOS_COS_MAP_TRUST_MODE_IPPREC, OPEN_QOS_COS_MAP_TRUST_MODE_IPDSCP } |
| QOS COS mapping trust modes. More... | |
| enum | OPEN_QOS_COS_QUEUE_MGMT_TYPE_t { OPEN_QOS_COS_QUEUE_MGMT_TYPE_TAILDROP = 1 } |
| QOS COS queue management types. More... | |
| enum | OPEN_QOS_COS_QUEUE_SCHED_TYPE_t { OPEN_QOS_COS_QUEUE_SCHED_TYPE_STRICT = 1, OPEN_QOS_COS_QUEUE_SCHED_TYPE_WEIGHTED } |
| QOS COS queue scheduler types. More... | |
Functions | |
| 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. More... | |
| open_error_t | openapiCosQueueIntfShapingRateGet (openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t *rate) |
| Get the COS egress shaping rate for an interface. More... | |
| open_error_t | openapiCosQueueIntfShapingRateSet (openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t rate) |
| Set the COS egress shaping rate for an interface. More... | |
| open_error_t | openapiCosQueueIntfShapingRateUnitsGet (openapiClientHandle_t *client_handle, OPEN_RATE_UNIT_t *rateUnit) |
| Get the units used to express rates. More... | |
| open_error_t | openapiCosQueueMaxIdGet (openapiClientHandle_t *client_handle, uint32_t *maxQueueId) |
| Get the max cos queue ID value. More... | |
| 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. More... | |
| open_error_t | openapiCosQueueWredDropParamsSet (openapiClientHandle_t *client_handle, uint32_t intfNum, uint8_t queueNum, uint8_t dropPrecedence, OPEN_BOOL_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. More... | |
| open_error_t | openapiCosQueueWredSet (openapiClientHandle_t *client_handle, uint32_t intfNum, uint8_t queueNum, OPEN_BOOL_t enableWred) |
| Enable or disable WRED for a given queue and for a given or all interfaces. More... | |
| open_error_t | openapiCosQueueWredStatsClear (openapiClientHandle_t *client_handle, uint32_t intfNum) |
| Clear WRED and ECN counters for a given or all interfaces. More... | |
| open_error_t | openapiCosQueueWredStatsGet (openapiClientHandle_t *client_handle, uint32_t intfNum, uint64_t *dropCount, uint64_t *ecnMarked) |
| Get WRED drop and ECN marked counters for a given or all interfaces. More... | |
| open_error_t | openapiQosCosDot1dDefaultTrafficClassGet (openapiClientHandle_t *client_handle, uint32_t intIfNum, uint32_t priority, uint32_t *pTc) |
| Gets factory default dot1d traffic class information. More... | |
| open_error_t | openapiQosCosDot1dTrafficClassEntryGet (openapiClientHandle_t *client_handle, uint32_t intIfNum, uint32_t priority) |
| Gets status of user priority to traffic class mapping for a given interface. More... | |
| open_error_t | openapiQosCosDot1dTrafficClassEntryNextGet (openapiClientHandle_t *client_handle, uint32_t *pIntIfNum, uint32_t *pPriority) |
| Gets next sequential user priority to traffic class mapping. More... | |
| open_error_t | openapiQosCosDot1dTrafficClassGet (openapiClientHandle_t *client_handle, uint32_t intIfNum, uint32_t priority, uint32_t *pTc) |
| Gets dot1d traffic class information. More... | |
| open_error_t | openapiQosCosDot1dTrafficClassSet (openapiClientHandle_t *client_handle, uint32_t intIfNum, uint32_t priority, uint32_t tc) |
| Sets dot1d traffic class. More... | |
| open_error_t | openapiQosCosMapGetIntfIndexForGlobalConfig (openapiClientHandle_t *client_handle, uint32_t *pIntIfNum) |
| Gets intIfNum to denotes global config operation. More... | |
| open_error_t | openapiQosCosMapGlobalTrustModeGet (openapiClientHandle_t *client_handle, OPEN_QOS_COS_MAP_TRUST_MODE_t *pTrustMode) |
| Gets CoS global trust mode. More... | |
| open_error_t | openapiQosCosMapGlobalTrustModeSet (openapiClientHandle_t *client_handle, OPEN_QOS_COS_MAP_TRUST_MODE_t trustMode) |
| Sets the CoS global trust mode. More... | |
| open_error_t | openapiQosCosMapInterfaceTrustModeGet (openapiClientHandle_t *client_handle, uint32_t intIfNum, OPEN_QOS_COS_MAP_TRUST_MODE_t *pTrustMode) |
| Gets CoS internal trust mode. More... | |
| open_error_t | openapiQosCosMapInterfaceTrustModeSet (openapiClientHandle_t *client_handle, uint32_t intIfNum, OPEN_QOS_COS_MAP_TRUST_MODE_t trustMode) |
| Sets the CoS interface trust mode. More... | |
| open_error_t | openapiQosCosMapIpDscpDefaultsRestore (openapiClientHandle_t *client_handle, uint32_t intIfNum) |
| Restore default ip DSCP mappings for given interface. More... | |
| open_error_t | openapiQosCosMapIpDscpDefaultTrafficClassGet (openapiClientHandle_t *client_handle, uint32_t intIfNum, uint32_t dscp, uint32_t *pTc) |
| Gets the default traffic class mapping for specified ip DSCP value. More... | |
| open_error_t | openapiQosCosMapIpDscpIndexGet (openapiClientHandle_t *client_handle, uint32_t dscp) |
| Gets status of specified IP DSCP mapping table index. More... | |
| open_error_t | openapiQosCosMapIpDscpIndexGetNext (openapiClientHandle_t *client_handle, uint32_t dscp, uint32_t *pNxtDscp) |
| Gets next sequential ip DSCP mapping table index. More... | |
| open_error_t | openapiQosCosMapIpDscpIntfIndexGet (openapiClientHandle_t *client_handle, uint32_t intIfNum) |
| Gets status of specified ip DSCP mapping table interface index. More... | |
| open_error_t | openapiQosCosMapIpDscpIntfIndexGetNext (openapiClientHandle_t *client_handle, uint32_t intIfNum, uint32_t *pNxtIntIfNum) |
| Gets next sequential ip DSCP mapping table interface index. More... | |
| open_error_t | openapiQosCosMapIpDscpTrafficClassGet (openapiClientHandle_t *client_handle, uint32_t intIfNum, uint32_t dscp, uint32_t *pTc) |
| Gets the assigned traffic class (queue) for given ip DSCP. More... | |
| open_error_t | openapiQosCosMapIpDscpTrafficClassSet (openapiClientHandle_t *client_handle, uint32_t intIfNum, uint32_t dscp, uint32_t tc) |
| Sets the assigned traffic class (queue) for given Ip DSCP. More... | |
| open_error_t | openapiQosCosMapTrustModeIntfIndexGet (openapiClientHandle_t *client_handle, uint32_t intIfNum) |
| Gets specified trust mode interface index status. More... | |
| open_error_t | openapiQosCosMapTrustModeIntfIndexGetNext (openapiClientHandle_t *client_handle, uint32_t intIfNum, uint32_t *pNxtIntIfNum) |
| Gets next sequential specified trust mode interface. More... | |
| open_error_t | openapiQosCosMapUntrustedPortDefaultTrafficClassGet (openapiClientHandle_t *client_handle, uint32_t intIfNum, uint32_t *pTcVal) |
| Gets CoS untrusted port default traffic class for given internal interface. More... | |
| open_error_t | openapiQosCosQueueIdIndexGet (openapiClientHandle_t *client_handle, uint32_t queueId) |
| Gets specified queueId index status. More... | |
| open_error_t | openapiQosCosQueueIdIndexGetNext (openapiClientHandle_t *client_handle, uint32_t queueId, uint32_t *pNxtqueueId) |
| Gets next sequential specified queueId index. More... | |
| open_error_t | openapiQosCosQueueIntfIndexGet (openapiClientHandle_t *client_handle, uint32_t intIfNum) |
| Gets specified queue config interface index status. More... | |
| open_error_t | openapiQosCosQueueIntfIndexGetNext (openapiClientHandle_t *client_handle, uint32_t intIfNum, uint32_t *pNxtIntIfNum) |
| Gets next sequential specified queue config interface index. More... | |
| open_error_t | openapiQosCosQueueIntfIsValid (openapiClientHandle_t *client_handle, uint32_t intIfNum, OPEN_BOOL_t *pIsQueueIntfValid) |
| Gets if the specified interface is valid for COS queue config. More... | |
| open_error_t | openapiQosCosQueueMgmtTypeListGet (openapiClientHandle_t *client_handle, uint32_t intIfNum, open_buffdesc *pMgmtTypeList) |
| Gets queue management type list for all queues on a given interface. More... | |
| open_error_t | openapiQosCosQueueMgmtTypeSet (openapiClientHandle_t *client_handle, uint32_t intIfNum, uint32_t queueId, OPEN_QOS_COS_QUEUE_MGMT_TYPE_t qMgmtType) |
| Sets queue management type for a specific queue on a given interface. More... | |
| open_error_t | openapiQosCosQueueMinBandwidthListGet (openapiClientHandle_t *client_handle, uint32_t intIfNum, open_buffdesc *pMinBwList) |
| Gets minimum bandwidth list for all queues on a given interface. More... | |
| open_error_t | openapiQosCosQueueMinBandwidthSet (openapiClientHandle_t *client_handle, uint32_t intIfNum, uint32_t queueId, uint32_t minBwVal) |
| Sets minimum bandwidth for a specific queue on a given interface. More... | |
| open_error_t | openapiQosCosQueueSchedulerTypeListGet (openapiClientHandle_t *client_handle, uint32_t intIfNum, open_buffdesc *pSchTypeList) |
| Gets scheduler type list for all queues on a given interface. More... | |
| open_error_t | openapiQosCosQueueSchedulerTypeSet (openapiClientHandle_t *client_handle, uint32_t intIfNum, uint32_t queueId, OPEN_QOS_COS_QUEUE_SCHED_TYPE_t schTypeVal) |
| Sets scheduler type for a specific queue on a given interface. More... | |
QOS COS mapping trust modes.
Definition at line 50 of file openapi_cos.h.
QOS COS queue management types.
| Enumerator | |
|---|---|
| OPEN_QOS_COS_QUEUE_MGMT_TYPE_TAILDROP |
tail drop |
Definition at line 67 of file openapi_cos.h.
QOS COS queue scheduler types.
| Enumerator | |
|---|---|
| OPEN_QOS_COS_QUEUE_SCHED_TYPE_STRICT |
strict priority |
| OPEN_QOS_COS_QUEUE_SCHED_TYPE_WEIGHTED |
WRR/WFQ. |
Definition at line 60 of file openapi_cos.h.
| 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.
| [in] | client_handle | Client handle from registration API |
| [out] | increment | minimum percentage increment |
| OPEN_E_NONE | value returned successfully |
| OPEN_E_ERROR | platform does not use percentage to express rates |
| OPEN_E_PARAM | invalid parameter passed |
OpEN API Version: 1.14
| open_error_t openapiCosQueueIntfShapingRateGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | ifNum, | ||
| uint32_t * | rate | ||
| ) |
Get the COS egress shaping rate for an interface.
| [in] | client_handle | Client handle from registration API |
| [in] | ifNum | interface number |
| [out] | rate | shaping rate value |
| OPEN_E_NONE | value returned successfully |
| OPEN_E_UNAVAIL | platform does not support COS egress shaping |
| OPEN_E_FAIL | failed to get shaping rate |
| OPEN_E_PARAM | invalid parameter passed |
OpEN API Version: 1.14
| open_error_t openapiCosQueueIntfShapingRateSet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | ifNum, | ||
| uint32_t | rate | ||
| ) |
Set the COS egress shaping rate for an interface.
| [in] | client_handle | Client handle from registration API |
| [in] | ifNum | interface number |
| [in] | rate | shaping rate value |
| OPEN_E_NONE | value set successfully |
| OPEN_E_UNAVAIL | platform does not support COS egress shaping |
| OPEN_E_FAIL | failed to set shaping rate |
| OPEN_E_PARAM | invalid parameter passed |
OpEN API Version: 1.14
| open_error_t openapiCosQueueIntfShapingRateUnitsGet | ( | openapiClientHandle_t * | client_handle, |
| OPEN_RATE_UNIT_t * | rateUnit | ||
| ) |
Get the units used to express rates.
| [in] | client_handle | Client handle from registration API |
| [out] | rateUnit | rate unit identifier |
| OPEN_E_NONE | value returned successfully |
| OPEN_E_PARAM | invalid parameter passed |
OpEN API Version: 1.14
| open_error_t openapiCosQueueMaxIdGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t * | maxQueueId | ||
| ) |
Get the max cos queue ID value.
| [in] | client_handle | Client handle from registration API |
| [out] | maxQueueId | Queue number |
| OPEN_E_NONE | Max cos queue ID returned successfully |
| OPEN_E_PARAM | Invalid parameter passed |
OpEN API Version: 1.25
| 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.
| [in] | client_handle | Client handle from registration API |
| [in] | intfNum | interface number |
| [in] | queueNum | queue number |
| OPEN_E_NONE | value set successfully |
| OPEN_E_UNAVAIL | platform does not support WRED feature |
| OPEN_E_FAIL | failed to reset drop params config |
OpEN API Version: 1.14
| open_error_t openapiCosQueueWredDropParamsSet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | intfNum, | ||
| uint8_t | queueNum, | ||
| uint8_t | dropPrecedence, | ||
| OPEN_BOOL_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.
| [in] | client_handle | Client handle from registration API |
| [in] | intfNum | interface number |
| [in] | queueNum | queue number |
| [in] | dropPrecedence | drop precedence |
| [in] | ecnEnabled | ECN enabled |
| [in] | wredMinThreshold | WRED minimum threshold |
| [in] | wredMaxThreshold | WRED maximum threshold |
| [in] | wredDropProbability | WRED drop probability |
| OPEN_E_NONE | value set successfully |
| OPEN_E_UNAVAIL | platform does not support WRED or ECN feature |
| OPEN_E_FAIL | failed to set or get drop params config |
| OPEN_E_PARAM | invalid parameter passed |
OpEN API Version: 1.14
| open_error_t openapiCosQueueWredSet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | intfNum, | ||
| uint8_t | queueNum, | ||
| OPEN_BOOL_t | enableWred | ||
| ) |
Enable or disable WRED for a given queue and for a given or all interfaces.
| [in] | client_handle | Client handle from registration API |
| [in] | intfNum | interface number |
| [in] | queueNum | queue number |
| [in] | enableWred | OPEN_TRUE to enable WRED OPEN_FALSE to enable tail drop queue management |
| OPEN_E_NONE | enabled WRED successfully |
| OPEN_E_FAIL | unable to enable WRED |
OpEN API Version: 1.14
| open_error_t openapiCosQueueWredStatsClear | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | intfNum | ||
| ) |
Clear WRED and ECN counters for a given or all interfaces.
| [in] | client_handle | Client handle from registration API |
| [in] | intfNum | interface number |
| OPEN_E_NONE | counters reset successfully |
| OPEN_E_FAIL | unable to reset counters |
OpEN API Version: 1.14
| open_error_t openapiCosQueueWredStatsGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | intfNum, | ||
| uint64_t * | dropCount, | ||
| uint64_t * | ecnMarked | ||
| ) |
Get WRED drop and ECN marked counters for a given or all interfaces.
| [in] | client_handle | Client handle from registration API |
| [in] | intfNum | interface number |
| [out] | dropCount | WRED drop counters |
| [out] | ecnMarked | ECN marked counters |
| OPEN_E_NONE | counters retrieved successfully |
| OPEN_E_FAIL | unable to retrieve counters |
| OPEN_E_UNAVAIL | feature is not supported on the given interface |
OpEN API Version: 1.14
| open_error_t openapiQosCosDot1dDefaultTrafficClassGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | intIfNum, | ||
| uint32_t | priority, | ||
| uint32_t * | pTc | ||
| ) |
Gets factory default dot1d traffic class information.
| [in] | client_handle | client handle from registration API |
| [in] | intIfNum | Internal interface number |
| [in] | priority | priority |
| [out] | pTc | traffic class |
| OPEN_E_UNAVAIL | Operation unsupported. |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.26
| open_error_t openapiQosCosDot1dTrafficClassEntryGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | intIfNum, | ||
| uint32_t | priority | ||
| ) |
Gets status of user priority to traffic class mapping for a given interface.
| [in] | client_handle | client handle from registration API |
| [in] | intIfNum | Internal interface number |
| [in] | priority | priority |
| OPEN_E_UNAVAIL | Operation unsupported. |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.26
| open_error_t openapiQosCosDot1dTrafficClassEntryNextGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t * | pIntIfNum, | ||
| uint32_t * | pPriority | ||
| ) |
Gets next sequential user priority to traffic class mapping.
| [in] | client_handle | client handle from registration API |
| [in,out] | pIntIfNum | Internal interface number |
| [in,out] | pPriority | priority |
| OPEN_E_UNAVAIL | Operation unsupported. |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.26
| open_error_t openapiQosCosDot1dTrafficClassGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | intIfNum, | ||
| uint32_t | priority, | ||
| uint32_t * | pTc | ||
| ) |
Gets dot1d traffic class information.
| [in] | client_handle | client handle from registration API |
| [in] | intIfNum | Internal interface number |
| [in] | priority | priority |
| [out] | pTc | traffic class |
| OPEN_E_UNAVAIL | Operation unsupported. |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.26
| open_error_t openapiQosCosDot1dTrafficClassSet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | intIfNum, | ||
| uint32_t | priority, | ||
| uint32_t | tc | ||
| ) |
Sets dot1d traffic class.
| [in] | client_handle | client handle from registration API |
| [in] | intIfNum | Internal interface number |
| [in] | priority | priority |
| [in] | tc | traffic class |
| OPEN_E_UNAVAIL | Operation unsupported. |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.26
| open_error_t openapiQosCosMapGetIntfIndexForGlobalConfig | ( | openapiClientHandle_t * | client_handle, |
| uint32_t * | pIntIfNum | ||
| ) |
Gets intIfNum to denotes global config operation.
| [in] | client_handle | client handle from registration API |
| [out] | pIntIfNum | Internal interface number |
| OPEN_E_UNAVAIL | Operation unsupported. |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.26
| open_error_t openapiQosCosMapGlobalTrustModeGet | ( | openapiClientHandle_t * | client_handle, |
| OPEN_QOS_COS_MAP_TRUST_MODE_t * | pTrustMode | ||
| ) |
Gets CoS global trust mode.
| [in] | client_handle | client handle from registration API |
| [out] | pTrustMode | Trust mode |
| OPEN_E_UNAVAIL | Operation unsupported. |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.26
| open_error_t openapiQosCosMapGlobalTrustModeSet | ( | openapiClientHandle_t * | client_handle, |
| OPEN_QOS_COS_MAP_TRUST_MODE_t | trustMode | ||
| ) |
Sets the CoS global trust mode.
| [in] | client_handle | client handle from registration API |
| [in] | trustMode | Trust mode |
| OPEN_E_UNAVAIL | Operation unsupported. |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.26
| open_error_t openapiQosCosMapInterfaceTrustModeGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | intIfNum, | ||
| OPEN_QOS_COS_MAP_TRUST_MODE_t * | pTrustMode | ||
| ) |
Gets CoS internal trust mode.
| [in] | client_handle | client handle from registration API |
| [in] | intIfNum | Internal interface number |
| [out] | pTrustMode | Trust mode |
| OPEN_E_UNAVAIL | Operation unsupported. |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.26
| open_error_t openapiQosCosMapInterfaceTrustModeSet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | intIfNum, | ||
| OPEN_QOS_COS_MAP_TRUST_MODE_t | trustMode | ||
| ) |
Sets the CoS interface trust mode.
| [in] | client_handle | client handle from registration API |
| [in] | intIfNum | Internal interface number |
| [in] | trustMode | Trust mode |
| OPEN_E_UNAVAIL | Operation unsupported. |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.26
| open_error_t openapiQosCosMapIpDscpDefaultsRestore | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | intIfNum | ||
| ) |
Restore default ip DSCP mappings for given interface.
| [in] | client_handle | client handle from registration API |
| [in] | intIfNum | Internal interface number |
| OPEN_E_UNAVAIL | Operation unsupported. |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.26
| open_error_t openapiQosCosMapIpDscpDefaultTrafficClassGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | intIfNum, | ||
| uint32_t | dscp, | ||
| uint32_t * | pTc | ||
| ) |
Gets the default traffic class mapping for specified ip DSCP value.
| [in] | client_handle | client handle from registration API |
| [in] | intIfNum | Internal interface number |
| [in] | dscp | dscp |
| [out] | pTc | traffic class |
| OPEN_E_UNAVAIL | Operation unsupported. |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.26
| open_error_t openapiQosCosMapIpDscpIndexGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | dscp | ||
| ) |
Gets status of specified IP DSCP mapping table index.
| [in] | client_handle | client handle from registration API |
| [in] | dscp | Ip DSCP |
| OPEN_E_UNAVAIL | Operation unsupported. |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.26
| open_error_t openapiQosCosMapIpDscpIndexGetNext | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | dscp, | ||
| uint32_t * | pNxtDscp | ||
| ) |
Gets next sequential ip DSCP mapping table index.
| [in] | client_handle | client handle from registration API |
| [in] | dscp | Ip DSCP |
| [out] | pNxtDscp | Next Ip DSCP |
| OPEN_E_UNAVAIL | Operation unsupported. |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.26
| open_error_t openapiQosCosMapIpDscpIntfIndexGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | intIfNum | ||
| ) |
Gets status of specified ip DSCP mapping table interface index.
| [in] | client_handle | client handle from registration API |
| [in] | intIfNum | Internal interface number |
| OPEN_E_UNAVAIL | Operation unsupported. |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.26
| open_error_t openapiQosCosMapIpDscpIntfIndexGetNext | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | intIfNum, | ||
| uint32_t * | pNxtIntIfNum | ||
| ) |
Gets next sequential ip DSCP mapping table interface index.
| [in] | client_handle | client handle from registration API |
| [in] | intIfNum | Internal interface number |
| [out] | pNxtIntIfNum | Next Internal interface number |
| OPEN_E_UNAVAIL | Operation unsupported. |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.26
| open_error_t openapiQosCosMapIpDscpTrafficClassGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | intIfNum, | ||
| uint32_t | dscp, | ||
| uint32_t * | pTc | ||
| ) |
Gets the assigned traffic class (queue) for given ip DSCP.
| [in] | client_handle | client handle from registration API |
| [in] | intIfNum | Internal interface number |
| [in] | dscp | dscp |
| [out] | pTc | traffic class |
| OPEN_E_UNAVAIL | Operation unsupported. |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.26
| open_error_t openapiQosCosMapIpDscpTrafficClassSet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | intIfNum, | ||
| uint32_t | dscp, | ||
| uint32_t | tc | ||
| ) |
Sets the assigned traffic class (queue) for given Ip DSCP.
| [in] | client_handle | client handle from registration API |
| [in] | intIfNum | Internal interface number |
| [in] | dscp | Ip DSCP |
| [in] | tc | traffic class |
| OPEN_E_UNAVAIL | Operation unsupported. |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.26
| open_error_t openapiQosCosMapTrustModeIntfIndexGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | intIfNum | ||
| ) |
Gets specified trust mode interface index status.
| [in] | client_handle | client handle from registration API |
| [in] | intIfNum | Internal interface number |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.26
| open_error_t openapiQosCosMapTrustModeIntfIndexGetNext | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | intIfNum, | ||
| uint32_t * | pNxtIntIfNum | ||
| ) |
Gets next sequential specified trust mode interface.
| [in] | client_handle | client handle from registration API |
| [in] | intIfNum | Internal interface number |
| [out] | pNxtIntIfNum | Next internal interface number |
| OPEN_E_UNAVAIL | Operation unsupported. |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.26
| open_error_t openapiQosCosMapUntrustedPortDefaultTrafficClassGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | intIfNum, | ||
| uint32_t * | pTcVal | ||
| ) |
Gets CoS untrusted port default traffic class for given internal interface.
| [in] | client_handle | client handle from registration API |
| [in] | intIfNum | Internal interface number |
| [out] | pTcVal | untrusted traffic class value |
| OPEN_E_UNAVAIL | Operation unsupported. |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.26
| open_error_t openapiQosCosQueueIdIndexGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | queueId | ||
| ) |
Gets specified queueId index status.
| [in] | client_handle | client handle from registration API |
| [in] | queueId | queueId |
| OPEN_E_UNAVAIL | Operation unsupported. |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.26
| open_error_t openapiQosCosQueueIdIndexGetNext | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | queueId, | ||
| uint32_t * | pNxtqueueId | ||
| ) |
Gets next sequential specified queueId index.
| [in] | client_handle | client handle from registration API |
| [in] | queueId | Queue id |
| [out] | pNxtqueueId | Next Queue id |
| OPEN_E_UNAVAIL | Operation unsupported. |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.26
| open_error_t openapiQosCosQueueIntfIndexGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | intIfNum | ||
| ) |
Gets specified queue config interface index status.
| [in] | client_handle | client handle from registration API |
| [in] | intIfNum | Internal interface number |
| OPEN_E_UNAVAIL | Operation unsupported. |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.26
| open_error_t openapiQosCosQueueIntfIndexGetNext | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | intIfNum, | ||
| uint32_t * | pNxtIntIfNum | ||
| ) |
Gets next sequential specified queue config interface index.
| [in] | client_handle | client handle from registration API |
| [in] | intIfNum | Internal interface number |
| [out] | pNxtIntIfNum | Next internal interface number |
| OPEN_E_UNAVAIL | Operation unsupported. |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.26
| open_error_t openapiQosCosQueueIntfIsValid | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | intIfNum, | ||
| OPEN_BOOL_t * | pIsQueueIntfValid | ||
| ) |
Gets if the specified interface is valid for COS queue config.
| [in] | client_handle | client handle from registration API |
| [in] | intIfNum | Internal interface number |
| [out] | pIsQueueIntfValid | If interface is valid for queue config then OPEN_TRUE, else OPEN_FALSE |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.26
| open_error_t openapiQosCosQueueMgmtTypeListGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | intIfNum, | ||
| open_buffdesc * | pMgmtTypeList | ||
| ) |
Gets queue management type list for all queues on a given interface.
| [in] | client_handle | client handle from registration API |
| [in] | intIfNum | Internal interface number |
| [out] | pMgmtTypeList | Queue mgmt type list list is in the format of queueId:mgmtType, and would hold information for all queues. (i.e) queueId0:mgmtType0, .... queueId7:mgmtType7 |
| OPEN_E_UNAVAIL | Operation unsupported. |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.26
| open_error_t openapiQosCosQueueMgmtTypeSet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | intIfNum, | ||
| uint32_t | queueId, | ||
| OPEN_QOS_COS_QUEUE_MGMT_TYPE_t | qMgmtType | ||
| ) |
Sets queue management type for a specific queue on a given interface.
| [in] | client_handle | client handle from registration API |
| [in] | intIfNum | Internal interface number |
| [in] | queueId | Queue id |
| [in] | qMgmtType | Queue mgmt type value |
| OPEN_E_UNAVAIL | Operation unsupported. |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.26
| open_error_t openapiQosCosQueueMinBandwidthListGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | intIfNum, | ||
| open_buffdesc * | pMinBwList | ||
| ) |
Gets minimum bandwidth list for all queues on a given interface.
| [in] | client_handle | client handle from registration API |
| [in] | intIfNum | Internal interface number |
| [out] | pMinBwList | Minimum bandwidth list list is in the format of queueId:minBwVal, and would hold information for all queues. (i.e) queueId0:minBwVal0, .... queueId7:minBwVal7 |
| OPEN_E_UNAVAIL | Operation unsupported. |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.26
| open_error_t openapiQosCosQueueMinBandwidthSet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | intIfNum, | ||
| uint32_t | queueId, | ||
| uint32_t | minBwVal | ||
| ) |
Sets minimum bandwidth for a specific queue on a given interface.
| [in] | client_handle | client handle from registration API |
| [in] | intIfNum | Internal interface number |
| [in] | queueId | Queue id |
| [in] | minBwVal | Min bandwidth value |
| OPEN_E_UNAVAIL | Operation unsupported. |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.26
| open_error_t openapiQosCosQueueSchedulerTypeListGet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | intIfNum, | ||
| open_buffdesc * | pSchTypeList | ||
| ) |
Gets scheduler type list for all queues on a given interface.
| [in] | client_handle | client handle from registration API |
| [in] | intIfNum | Internal interface number |
| [out] | pSchTypeList | Scheduler type list list is in the format of queueId:schType, and would hold information for all queues. (i.e) queueId0:schType0, .... queueId7:schType7 |
| OPEN_E_UNAVAIL | Operation unsupported. |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.26
| open_error_t openapiQosCosQueueSchedulerTypeSet | ( | openapiClientHandle_t * | client_handle, |
| uint32_t | intIfNum, | ||
| uint32_t | queueId, | ||
| OPEN_QOS_COS_QUEUE_SCHED_TYPE_t | schTypeVal | ||
| ) |
Sets scheduler type for a specific queue on a given interface.
| [in] | client_handle | client handle from registration API |
| [in] | intIfNum | Internal interface number |
| [in] | queueId | Queue id |
| [in] | schTypeVal | Scheduler type value |
| OPEN_E_UNAVAIL | Operation unsupported. |
| OPEN_E_NONE | On success. |
| OPEN_E_FAIL | On failure. |
| OPEN_E_PARAM | Invalid argument. |
OpEN API Version: 1.26