50 #ifndef OPENAPI_DCBX_H_INCLUDED
51 #define OPENAPI_DCBX_H_INCLUDED
57 OPEN_DCBX_CAP_NONE = 0,
58 OPEN_DCBX_CAP_PFC_BITMASK = (1 << 0),
59 OPEN_DCBX_CAP_ETS_CFG_BITMASK = (1 << 1),
60 OPEN_DCBX_CAP_ETS_REC_BITMASK = (1 << 2),
61 OPEN_DCBX_CAP_APP_PRI_BITMASK = (1 << 3),
62 OPEN_DCBX_CAP_CONTROL_BITMASK = (1 << 4)
63 } OPEN_DCBX_CAPABILITIES_t;
65 #define OPEN_ETS_TCG_NUM_MIN 0
66 #define OPEN_ETS_TCG_NUM_MAX 7
74 } OPEN_DCBX_VERSION_t;
78 OPEN_DCBX_OP_STATUS_ENABLE = 1,
79 OPEN_DCBX_OP_STATUS_DISABLE = 2,
80 OPEN_DCBX_OP_STATUS_MULTI_PEER = 3,
81 } OPEN_DCBX_OP_STATUS;
85 OPEN_DCBX_PORT_ROLE_MANUAL = 1,
86 OPEN_DCBX_PORT_ROLE_AUTO_UPSTREAM = 2,
87 OPEN_DCBX_PORT_ROLE_AUTO_DOWNSTREAM = 3,
88 OPEN_DCBX_PORT_ROLE_AUTO_CFG_SRC = 4
89 } OPEN_DCBX_PORT_ROLE_t;
91 #define OPEN_LLDP_MGMT_STRING_SIZE_MAX (255+1)
109 OPEN_DCBX_VERSION_t version);
149 OPEN_DCBX_OP_STATUS *status);
168 OPEN_DCBX_PORT_ROLE_t *role);
187 OPEN_DCBX_VERSION_t *version);
206 OPEN_DCBX_VERSION_t *mode);
230 uint32_t *errorFrames,
231 uint32_t *unknownTlv);
328 uint32_t *timedOutCount,
329 uint32_t *multiPeerCount);
348 OPEN_DCBX_VERSION_t *version);
369 OPEN_DCBX_CAPABILITIES_t *peerTlvMask);
447 uint32_t *rcvdAckNum);
528 uint16_t *protocolId,
557 uint16_t *protocolId,
579 OPEN_DCBX_CAPABILITIES_t *dcbxCap);
599 OPEN_DCBX_CAPABILITIES_t dcbxCap);
618 OPEN_DCBX_PORT_ROLE_t role);
open_error_t openapiDcbxLocalEtsSchedGet(openapiClientHandle_t *client_handle, uint32_t ifNum, open_buffdesc *schedList)
Get the local scheduler type.
open_error_t openapiDcbxIntfIsCfgSrcGet(openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_BOOL_t *isCfgSrc)
Check the peer is config source for the auto configuration.
open_error_t openapiDcbxLocalEtsBwGet(openapiClientHandle_t *client_handle, uint32_t ifNum, open_buffdesc *bwList)
Get local ETS bandwidth.
open_error_t openapiDcbxAppPriTableGet(openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t index, uint16_t *protocolId, uint32_t *protoSel, uint8_t *priority, OPEN_BOOL_t *appStatus)
Get the application table.
open_error_t openapiDcbxCounterGet(openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t *txCnt, uint32_t *rxCnt, uint32_t *errorFrames, uint32_t *unknownTlv)
Get the DCBX counters.
open_error_t openapiDcbxPeerDescGet(openapiClientHandle_t *client_handle, uint32_t ifNum, open_buffdesc *descr)
Get the system description of the peer device.
open_error_t openapiDcbxPeerMacGet(openapiClientHandle_t *client_handle, uint32_t ifNum, open_buffdesc *macAddr)
Get the MAC address of remote DCBX device.
open_error_t openapiDcbxVersionSet(openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_DCBX_VERSION_t version)
Set the DCBX version.
open_error_t openapiDcbxPortLegacyRemOperVerGet(openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t *operVer)
Get the Oper version supported by remote legacy DCBX device.
open_error_t
OPEN uses these enumerators to indicate the error codes.
open_error_t openapiDcbxAutoCfgPortRoleGet(openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_DCBX_PORT_ROLE_t *role)
Get the port role configuration.
open_error_t openapiDcbxPortConfigTLVsEnabledGet(openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_DCBX_CAPABILITIES_t *dcbxCap)
Get bit mask of DCBX TLVs enabled.
open_error_t openapiDcbxPeerAppPriTableGet(openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t index, uint16_t *protocolId, uint32_t *protoSel, uint8_t *priority, OPEN_BOOL_t *appStatus)
Get Peer application table.
open_error_t openapiDcbxPortLegacyRemSeqNumGet(openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t *seqNum)
Get the current sequence number that is sent in DCBX control TLVs in Legacy Mode. ...
open_error_t openapiDcbxVersionGet(openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_DCBX_VERSION_t *version)
Get the DCBX version.
open_error_t openapiDcbxPeerTlvMaskGet(openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_DCBX_CAPABILITIES_t *peerTlvMask)
Get peer TLV supported mask.
open_error_t openapiDcbxOperStatusGet(openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_DCBX_OP_STATUS *status)
Get the operational status of DCBX.
open_error_t openapiDcbxIsValidIntf(openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_BOOL_t *valid)
Determine if the interface is valid for DCBX.
open_error_t openapiDcbxPeerVersionGet(openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_DCBX_VERSION_t *mode)
Get the peer DCBX running version.
open_error_t openapiDcbxTimedOutAndMultiPeerCountGet(openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t *timedOutCount, uint32_t *multiPeerCount)
Get the timed-out and multi-peer counts for an interface.
OPEN_BOOL_t
OPEN uses these enumerators to indicate true or false for a given config or status parameter...
open_error_t openapiDcbxCfgSrcGet(openapiClientHandle_t *client_handle, uint32_t *ifNum, OPEN_BOOL_t *selected)
Get the configuration port number.
open_error_t openapiDcbxPortLegacyRemMaxVerGet(openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t *maxVer)
Get the Max version supported by the remote legacy DCBX device.
open_error_t openapiDcbxPortWillingGet(openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_BOOL_t *willing)
Get the port local willing status.
open_error_t openapiDcbxPortConfigTLVsEnabledSet(openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_DCBX_CAPABILITIES_t dcbxCap)
Set bit mask of enabled DCBX TLVs.
open_error_t openapiDcbxAutoCfgPortRoleSet(openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_DCBX_PORT_ROLE_t role)
Set the port role for auto configuration.
open_error_t openapiDcbxPortOperationalModeGet(openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_DCBX_VERSION_t *version)
Gets the DCBX TLVs that need to be transmitted in the LLDP PDU.
open_error_t openapiDcbxPortLegacyRemRcvdAckNumGet(openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t *rcvdAckNum)
Get the current ACK number that is sent by peer in DCBX control TLVs in Legacy mode.