50 #ifndef OPENAPI_PFC_H_INCLUDED
51 #define OPENAPI_PFC_H_INCLUDED
109 #define OPEN_QOS_PFC_PRIORITY_ALL 8
110 #define OPEN_QOS_PFC_PRIORITY_MIN 0
111 #define OPEN_QOS_PFC_PRIORITY_MAX (OPEN_QOS_PFC_PRIORITY_ALL-1)
113 #define OPEN_PFC_DEADLOCK_DETECT_TIME_MIN 0
114 #define OPEN_PFC_DEADLOCK_DETECT_TIME_MAX 1500
132 uint32_t *incompatibleCfgCount);
191 uint32_t *numPfcCap);
421 uint32_t *allowance);
560 uint32_t intIfNum, uint32_t priority,
580 uint32_t intIfNum, uint32_t priority,
667 uint32_t priority, uint32_t val);
685 uint32_t priority, uint32_t val);
704 uint32_t priority, uint32_t *det_time,
open_error_t openapiPfcDeadlockDetectIntervalSet(openapiClientHandle_t *client_handle, OPEN_PFC_DDR_DETECT_TIME_t val)
Set the deadlock detect interval.
open_error_t openapiIfPfcDeadlockConfigSet(openapiClientHandle_t *client_handle, uint32_t intIfNum, uint32_t priority, OPEN_PFC_DDR_MODE_t mode)
Enable/Disable deadlock detect for the priority on an interface.
open_error_t openapiPfcPeerIncompatibleCfgCountGet(openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t *incompatibleCfgCount)
Gets the count of incompatible configurations received from peer.
open_error_t openapiIfPfcRxStatGet(openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t *count)
Get the PFC Rx stat on an interface.
open_error_t openapiPfcPeerCompatibleCfgCountGet(openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t *count)
Gets the count of compatible configurations received from peer.
open_error_t openapiIfPfcPriorityModeGet(openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t priority, OPEN_PFC_PRI_DROP_MODE_t *mode)
Get the drop mode for the priority on an interface.
PFC Deadlock Detect enable mode.
PFC deadlock detect time 10 ms.
open_error_t openapiPfcPeerMbcStatusGet(openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_BOOL_t *mbcStatus)
Get the MACSEC bypass capability of the peer.
open_error_t openapiPfcDeadlockRecoveryActionGet(openapiClientHandle_t *client_handle, OPEN_PFC_DDR_ACTION_t *val)
Get the deadlock recovery action.
open_error_t
OPEN uses these enumerators to indicate the error codes.
general support statement
open_error_t openapiPfcPeerPriorityModeGet(openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t priority, OPEN_PFC_PRI_DROP_MODE_t *mode)
Get the peer priority mode for a priority.
PFC deadlock recovery action drop.
open_error_t openapiPfcDeadlockDetectTimeGet(openapiClientHandle_t *client_handle, uint32_t priority, uint32_t *det_time, uint32_t *rec_time)
Get the deadlock detect time and recovery time for a priority.
open_error_t openapiPfcPeerWillingGet(openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_BOOL_t *willing)
Get the willingness of the peer.
open_error_t openapiPfcDeadlockDetectIntervalGet(openapiClientHandle_t *client_handle, OPEN_PFC_DDR_DETECT_TIME_t *val)
Get the deadlock detect interval.
open_error_t openapiPfcMaxNoDropPriorityGet(openapiClientHandle_t *client_handle, uint32_t *maxPrio)
Returns the maximum priority that can be configured in PFC.
open_error_t openapiIfPfcTxStatGet(openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t *count)
Get the PFC Tx stat on an interface.
open_error_t openapiPfcAdvPriorityModeGet(openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t priority, OPEN_PFC_PRI_DROP_MODE_t *mode)
Gets the advertised PFC Priority participation mode for the interface.
open_error_t openapiPfcDeadlockRecoveryActionSet(openapiClientHandle_t *client_handle, OPEN_PFC_DDR_ACTION_t val)
Set the deadlock recovery action.
PFC Deadlock Detect disable mode.
open_error_t openapiIfPfcStatusGet(openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_PFC_STATUS_t *status)
Get the active status on the interface.
open_error_t openapiIfPfcModeGet(openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_PFC_MODE_t *mode)
Get the pfc mode for the interface.
open_error_t openapiPfcTxPriorityStatGet(openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t priority, uint32_t *count)
Gets the number of PFC packets transmitted per interface/priority.
OPEN_BOOL_t
OPEN uses these enumerators to indicate true or false for a given config or status parameter...
open_error_t openapiIfPfcStatsClear(openapiClientHandle_t *client_handle, uint32_t ifNum)
Clear the PFC stats on an interface.
open_error_t openapiPfcDeadlockRecoveryTimeSet(openapiClientHandle_t *client_handle, uint32_t priority, uint32_t val)
Set the deadlock recovery time for a priority.
open_error_t openapiPfcDeadlockDetectTimeSet(openapiClientHandle_t *client_handle, uint32_t priority, uint32_t val)
Set the deadlock detect time for a priority.
PFC deadlock detect time 100 ms.
open_error_t openapiPfcPeerCapabilityGet(openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t *numPfcCap)
Get the capability of the peer.
PFC deadlock recovery action transmit.
open_error_t openapiIfPfcPriorityModeSet(openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t priority, OPEN_PFC_PRI_DROP_MODE_t dropMode)
Set the drop mode for the priority on an interface.
open_error_t openapiIfPfcRxPriorityStatGet(openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t priority, uint32_t *stat)
Get the PFC Rx Priority stat on an interface.
OPEN_PFC_DDR_DETECT_TIME_t
open_error_t openapiPfcOprPriorityModeGet(openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t priority, OPEN_PFC_PRI_DROP_MODE_t *mode)
Gets the operational PFC Priority participation mode for the interface.
open_error_t openapiIfPfcModeSet(openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_PFC_MODE_t mode)
Enable an interface for PFC.
open_error_t openapiPfcOperLinkDelayAllowanceGet(openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t *allowance)
Gets the link delay allowance in bits for the interface.
open_error_t openapiIfPfcDeadlockConfigGet(openapiClientHandle_t *client_handle, uint32_t intIfNum, uint32_t priority, OPEN_PFC_DDR_MODE_t *mode)
Get the deadlock detect mode for the priority on an interface.
open_error_t openapiPfcPeerCfgCompatibleGet(openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_BOOL_t *compatible)
Indicates if the peer configuration is compatible.
open_error_t openapiPfcMinNoDropPriorityGet(openapiClientHandle_t *client_handle, uint32_t *minPrio)
Returns the minimum priority that can be configured in PFC.
port priority flow control feature