OpenFlow Data Plane Abstraction (OF-DPA) API Guide and Reference Manual
|
Functions | |
int | ofdpaBcmCommand (ofdpa_buffdesc buffer) |
Execute a BCM command. | |
OFDPA_ERROR_t | ofdpaClientEventSockBind (void) |
Opens and binds OF-DPA Client's event socket. | |
int | ofdpaClientEventSockFdGet (void) |
Get OF-DPA Client's event socket fd. | |
OFDPA_ERROR_t | ofdpaClientInitialize (char *clientName) |
Initialize OF-DPA client or user application. | |
OFDPA_ERROR_t | ofdpaClientPktSockBind (void) |
Opens and binds OF-DPA Client's packet socket. | |
int | ofdpaClientPktSockFdGet (void) |
Get OF-DPA Client's packet socket fd. | |
int | ofdpaCltDebugBuf (ofdpa_buffdesc functionName, ofdpaComponentIds_t component, ofdpaDebugLevels_t verbosity, ofdpa_buffdesc message) |
Generate a debug message using a preformatted buffer. | |
int | ofdpaCltDebugPrintf (const char *functionName, ofdpaComponentIds_t component, ofdpaDebugLevels_t verbosity, const char *format,...) |
Generate a debug message using printf formatting. | |
int | ofdpaCltLogBuf (int priority, ofdpa_buffdesc message) |
Generate a log message using a preformatted buffer. | |
int | ofdpaCltLogPrintf (int priority, char *fmt,...) |
Generate a log message using printf formatting. | |
OFDPA_ERROR_t | ofdpaComponentNameGet (int component, ofdpa_buffdesc *name) |
Get the Component Name. | |
int | ofdpaDebugComponentGet (int component) |
Get Component debugging mode. | |
int | ofdpaDebugComponentSet (int component, int enable) |
Enable/Disable the Component for debugging. | |
int | ofdpaDebugLvl (int lvl) |
Set the Debug Verbosity. | |
int | ofdpaDebugLvlGet (void) |
Get the Debug Verbosity. | |
OFDPA_ERROR_t | ofdpaDevshellCommand (ofdpa_buffdesc buffer) |
OFDPA_ERROR_t | ofdpaDropStatusActionGet (uint32_t lmepId, uint8_t *dropAction) |
Get drop action value. | |
OFDPA_ERROR_t | ofdpaDropStatusAdd (ofdpaDropStatusEntry_t *dropEntry) |
Add drop status entry. | |
OFDPA_ERROR_t | ofdpaDropStatusDelete (uint32_t lmepId) |
Delete drop status entry. | |
OFDPA_ERROR_t | ofdpaDropStatusEntryInit (ofdpaDropStatusEntry_t *dropEntry) |
Initialize drop entry. | |
OFDPA_ERROR_t | ofdpaDropStatusGet (uint32_t lmepId, ofdpaDropStatusEntry_t *dropEntry) |
Get drop status entry. | |
OFDPA_ERROR_t | ofdpaDropStatusNextGet (uint32_t lmepId, ofdpaDropStatusEntry_t *nextDropEntry) |
Get the next drop entry. | |
OFDPA_ERROR_t | ofdpaEventReceive (struct timeval *timeout) |
Receive an event. | |
OFDPA_ERROR_t | ofdpaFeatureSupported (OFDPA_FEATURE_t feature) |
Indicates whether the switch supports a particular OF-DPA feature. | |
OFDPA_ERROR_t | ofdpaFlowAdd (ofdpaFlowEntry_t *flow) |
Add a new entry to a flow table. | |
OFDPA_ERROR_t | ofdpaFlowByCookieDelete (uint64_t cookie) |
Delete the flow entry with the specified cookie. | |
OFDPA_ERROR_t | ofdpaFlowByCookieGet (uint64_t cookie, ofdpaFlowEntry_t *flow, ofdpaFlowEntryStats_t *flowStats) |
Returns statistics for the flow entry with the specified cookie value. | |
OFDPA_ERROR_t | ofdpaFlowDelete (ofdpaFlowEntry_t *flow) |
Delete an entry from a flow table. | |
OFDPA_ERROR_t | ofdpaFlowEntryDecode (ofdpaFlowEntry_t *flow, char *outBuf, int bufSize) |
Decode a flow configuration structure into a descriptive string suitable for display to the user. | |
OFDPA_ERROR_t | ofdpaFlowEntryInit (OFDPA_FLOW_TABLE_ID_t tableId, ofdpaFlowEntry_t *flow) |
Initialize Flow entry structure. | |
OFDPA_ERROR_t | ofdpaFlowEventNextGet (ofdpaFlowEvent_t *eventData) |
Get the next flow event. | |
OFDPA_ERROR_t | ofdpaFlowModify (ofdpaFlowEntry_t *flow) |
Modify an existing entry in a flow table. | |
OFDPA_ERROR_t | ofdpaFlowNextGet (ofdpaFlowEntry_t *flow, ofdpaFlowEntry_t *nextFlow) |
Retrieve the next flow entry in the specified flow table. | |
OFDPA_ERROR_t | ofdpaFlowStatsGet (ofdpaFlowEntry_t *flow, ofdpaFlowEntryStats_t *flowStats) |
Returns statistics for the flow entry specified. | |
OFDPA_ERROR_t | ofdpaFlowTableInfoGet (OFDPA_FLOW_TABLE_ID_t tableId, ofdpaFlowTableInfo_t *info) |
Get Flow Table Info. | |
const char * | ofdpaFlowTableNameGet (OFDPA_FLOW_TABLE_ID_t tableId) |
Returns the flow table name as a string suitable for display to the user. | |
OFDPA_ERROR_t | ofdpaFlowTableSupported (OFDPA_FLOW_TABLE_ID_t tableId) |
Checks whether a table ID is a supported on the platform. | |
OFDPA_ERROR_t | ofdpaGroupAdd (ofdpaGroupEntry_t *group) |
Add Group. | |
OFDPA_ERROR_t | ofdpaGroupBucketEntryAdd (ofdpaGroupBucketEntry_t *bucket) |
Add a Group Bucket entry. | |
OFDPA_ERROR_t | ofdpaGroupBucketEntryDecode (ofdpaGroupBucketEntry_t *bucketEntry, char *outBuf, int bufSize) |
Decode a group bucket configuration structure into a descriptive string suitable for display to the user. | |
OFDPA_ERROR_t | ofdpaGroupBucketEntryDelete (uint32_t groupId, uint32_t bucketIndex) |
Delete a Group Bucket entry. | |
OFDPA_ERROR_t | ofdpaGroupBucketEntryFirstGet (uint32_t groupId, ofdpaGroupBucketEntry_t *firstGroupBucket) |
Get the first Group Bucket entry. | |
OFDPA_ERROR_t | ofdpaGroupBucketEntryGet (uint32_t groupId, uint32_t bucketIndex, ofdpaGroupBucketEntry_t *groupBucket) |
Get the Group Bucket entry. | |
OFDPA_ERROR_t | ofdpaGroupBucketEntryInit (OFDPA_GROUP_ENTRY_TYPE_t groupType, ofdpaGroupBucketEntry_t *bucket) |
Initialize Flow entry structure. | |
OFDPA_ERROR_t | ofdpaGroupBucketEntryModify (ofdpaGroupBucketEntry_t *bucket) |
Modify Group Bucket entry. | |
OFDPA_ERROR_t | ofdpaGroupBucketEntryNextGet (uint32_t groupId, uint32_t bucketIndex, ofdpaGroupBucketEntry_t *nextBucketEntry) |
Get the next Group Bucket entry. | |
OFDPA_ERROR_t | ofdpaGroupBucketsDeleteAll (uint32_t groupId) |
Delete all Buckets from a Group. | |
OFDPA_ERROR_t | ofdpaGroupDecode (uint32_t groupId, char *outBuf, int bufSize) |
Decode a group ID value into a descriptive string suitable for display to the user. | |
OFDPA_ERROR_t | ofdpaGroupDelete (uint32_t groupId) |
Delete Group. | |
OFDPA_ERROR_t | ofdpaGroupEntryInit (OFDPA_GROUP_ENTRY_TYPE_t groupType, ofdpaGroupEntry_t *group) |
Initialize Flow entry structure. | |
OFDPA_ERROR_t | ofdpaGroupIndexGet (uint32_t groupId, uint32_t *index) |
Get the Index encoded in the Group Id. | |
OFDPA_ERROR_t | ofdpaGroupIndexSet (uint32_t *groupId, uint32_t index) |
Encode the Index in the Group Id. | |
OFDPA_ERROR_t | ofdpaGroupMplsL2TunnelIdGet (uint32_t groupId, uint32_t *tunnelId) |
Get the tunnel Id from the Group Id. | |
OFDPA_ERROR_t | ofdpaGroupMplsL2TunnelIdSet (uint32_t *groupId, uint32_t tunnelId) |
Encode the tunnel Id in the Group Id. | |
OFDPA_ERROR_t | ofdpaGroupMplsSubTypeGet (uint32_t groupId, uint32_t *subType) |
Get the MPLS Group Sub-type from the Group Id. | |
OFDPA_ERROR_t | ofdpaGroupMplsSubTypeSet (uint32_t *groupId, uint32_t subType) |
Encode the MPLS Group Sub-type in the Group Id. | |
OFDPA_ERROR_t | ofdpaGroupNextGet (uint32_t groupId, ofdpaGroupEntry_t *nextGroup) |
Get the next Group entry. | |
OFDPA_ERROR_t | ofdpaGroupOverlayIndexGet (uint32_t groupId, uint32_t *index) |
Get the Overlay Group index in the Group Id. | |
OFDPA_ERROR_t | ofdpaGroupOverlayIndexSet (uint32_t *groupId, uint32_t index) |
Encode the Overlay Group index in the Group Id. | |
OFDPA_ERROR_t | ofdpaGroupOverlaySubTypeGet (uint32_t groupId, OFDPA_L2_OVERLAY_SUBTYPE_t *subType) |
Get the Overlay Group Sub-type from the Group Id. | |
OFDPA_ERROR_t | ofdpaGroupOverlaySubTypeSet (uint32_t *groupId, OFDPA_L2_OVERLAY_SUBTYPE_t subType) |
Encode the Overlay Group Sub-type in the Group Id. | |
OFDPA_ERROR_t | ofdpaGroupOverlayTunnelIdGet (uint32_t groupId, uint32_t *tunnelId) |
Get the tunnel Id from the Group Id. | |
OFDPA_ERROR_t | ofdpaGroupOverlayTunnelIdSet (uint32_t *groupId, uint32_t tunnelId) |
Encode the tunnel Id in the Group Id. | |
OFDPA_ERROR_t | ofdpaGroupPortIdGet (uint32_t groupId, uint32_t *portId) |
Get the Port ID encoded in the Group Id. | |
OFDPA_ERROR_t | ofdpaGroupPortIdSet (uint32_t *groupId, uint32_t portId) |
Encode the Port Id in the Group Id. | |
OFDPA_ERROR_t | ofdpaGroupStatsGet (uint32_t groupId, ofdpaGroupEntryStats_t *groupStats) |
Get Group statistics. | |
OFDPA_ERROR_t | ofdpaGroupTableInfoGet (uint32_t groupId, ofdpaGroupTableInfo_t *info) |
Get Group table info. | |
OFDPA_ERROR_t | ofdpaGroupTableTotalEntryCountGet (uint32_t *entryCount) |
Reports the number of group entries of all types. | |
OFDPA_ERROR_t | ofdpaGroupTypeGet (uint32_t groupId, uint32_t *type) |
Get the Group Type encoded in the Group ID. | |
OFDPA_ERROR_t | ofdpaGroupTypeNextGet (uint32_t groupId, OFDPA_GROUP_ENTRY_TYPE_t groupType, ofdpaGroupEntry_t *nextGroup) |
Get the next Group entry of a given type. | |
OFDPA_ERROR_t | ofdpaGroupTypeSet (uint32_t *groupId, uint32_t type) |
Encode the Group Type in the Group Id. | |
OFDPA_ERROR_t | ofdpaGroupVlanGet (uint32_t groupId, uint32_t *vlanId) |
Get the VLAN ID encoded in the Group Id. | |
OFDPA_ERROR_t | ofdpaGroupVlanSet (uint32_t *groupId, uint32_t vlanId) |
Encode the VLAN Id in the Group Id. | |
OFDPA_ERROR_t | ofdpaMaxPktSizeGet (uint32_t *pktSize) |
Report the size in bytes of the largest packet that can be received. | |
OFDPA_ERROR_t | ofdpaMeterAdd (uint32_t meterId, ofdpaMeterEntry_t *meter) |
Add Meter. | |
OFDPA_ERROR_t | ofdpaMeterDelete (uint32_t meterId) |
Delete Meter. | |
OFDPA_ERROR_t | ofdpaMeterEntryInit (ofdpaMeterEntry_t *meter) |
Initialize Meter entry. | |
OFDPA_ERROR_t | ofdpaMeterGet (uint32_t meterId, ofdpaMeterEntry_t *meter) |
Get the Meter entry. | |
OFDPA_ERROR_t | ofdpaMeterNextGet (uint32_t meterId, uint32_t *nextMeterId) |
Get the next Meter entry. | |
OFDPA_ERROR_t | ofdpaMeterStatsGet (uint32_t meterId, ofdpaMeterEntryStats_t *meterStats) |
Get Meter statistics. | |
void | ofdpaMplsL2PortIndexGet (uint32_t portNum, uint32_t *index) |
Get the MPLS L2 port index encoded in a port number value. | |
void | ofdpaMplsL2PortIndexSet (uint32_t *portNum, uint32_t index) |
Encode the MPLS L2 port index in a port number. | |
void | ofdpaMplsL2PortTypeGet (uint32_t portNum, uint32_t *type) |
Get the MPLS L2 port type encoded in a port number value. | |
void | ofdpaMplsL2PortTypeSet (uint32_t *portNum, uint32_t type) |
Encode the MPLS L2 port type in a port number value. | |
OFDPA_ERROR_t | ofdpaMplsQosActionAdd (ofdpaMplsQosEntry_t *mplsQosEntry) |
Add MPLS Set QoS action entry. | |
OFDPA_ERROR_t | ofdpaMplsQosActionDelete (ofdpaMplsQosEntry_t *mplsQosEntry) |
Delete MPLS Set QoS action entry. | |
OFDPA_ERROR_t | ofdpaMplsQosActionEntryGet (uint8_t qosIndex, uint8_t mpls_tc, ofdpaMplsQosEntry_t *mplsQosEntry) |
Get MPLS Set QoS action entry. | |
OFDPA_ERROR_t | ofdpaMplsQosEntryInit (ofdpaMplsQosEntry_t *mplsQosEntry) |
Initialize MPLS QoS entry. | |
OFDPA_ERROR_t | ofdpaMplsQosEntryNextGet (ofdpaMplsQosEntry_t *mplsQosEntry, ofdpaMplsQosEntry_t *nextEntry) |
Retrieve the next MPLS QoS entry. | |
OFDPA_ERROR_t | ofdpaNumQueuesGet (uint32_t portNum, uint32_t *numQueues) |
The client calls this function to get the number of COS queues on a port. | |
OFDPA_ERROR_t | ofdpaOamAisConfigGet (uint32_t lmepId, ofdpaOamAisConfig_t *config) |
Retrieve OAM Alarm Indication Signal configuration for the specified MEP using the configuration parameters provided. | |
OFDPA_ERROR_t | ofdpaOamAisDisable (uint32_t lmepId) |
Disable sending OAM Alarm Indication Signal (AIS) messages for the specified MEP. | |
OFDPA_ERROR_t | ofdpaOamAisEnable (uint32_t lmepId, ofdpaOamAisConfig_t *config) |
Enable sending OAM Alarm Indication Signal (AIS) messages for the specified MEP using the configuration parameters provided. | |
OFDPA_ERROR_t | ofdpaOamCsfDisable (uint32_t lmepId) |
Disable sending OAM Client Signal Fail (CSF) messages for the specified MEP. | |
OFDPA_ERROR_t | ofdpaOamCsfEnable (uint32_t lmepId, ofdpaOamCsfConfig_t *config) |
Enable sending OAM Client Signal Fail (CSF) messages for the specified MEP using the configuration parameters provided. | |
OFDPA_ERROR_t | ofdpaOamDataCounterAdd (uint32_t lmepId, uint8_t trafficClass) |
Add data counter entry. | |
OFDPA_ERROR_t | ofdpaOamDataCounterDelete (uint32_t lmepId, uint8_t trafficClass) |
Delete data counter entry. | |
OFDPA_ERROR_t | ofdpaOamDataCounterGet (ofdpaOamDataCounterIndex_t index, ofdpaOamDataCounterStatus_t *status) |
Get the data counter entry. | |
OFDPA_ERROR_t | ofdpaOamDataCounterNextGet (ofdpaOamDataCounterIndex_t index, ofdpaOamDataCounterIndex_t *nextIndex, ofdpaOamDataCounterStatus_t *status) |
Get the next data counter entry. | |
OFDPA_ERROR_t | ofdpaOamDataCountersLMClear (ofdpaOamDataCounterIndex_t index) |
Clear OAM LM counters. | |
OFDPA_ERROR_t | ofdpaOamDataCountersLMGet (ofdpaOamDataCounterIndex_t index, uint32_t *TxFCl, uint32_t *RxFCl) |
Get OAM LM counters. | |
OFDPA_ERROR_t | ofdpaOamDataCounterStatusGet (uint32_t lmepId, uint8_t trafficClass, ofdpaOamDataCounterStatus_t *status) |
Get data counter entry status. | |
OFDPA_ERROR_t | ofdpaOamEventNextGet (ofdpaOamEvent_t *eventData) |
Get the next OAM event. | |
OFDPA_ERROR_t | ofdpaOamLbCreate (uint32_t lmepId, ofdpaOamLbConfig_t *config) |
Create an OAM Loopback Entry. | |
OFDPA_ERROR_t | ofdpaOamLbGet (uint32_t lmepId, ofdpaOamLbConfig_t *config, ofdpaOamLbStatus_t *status) |
Get the status of loopback. | |
OFDPA_ERROR_t | ofdpaOamLbStart (uint32_t lmepId) |
Start on demand loopback. | |
OFDPA_ERROR_t | ofdpaOamLbStop (uint32_t lmepId) |
Stop on demand loopback. | |
OFDPA_ERROR_t | ofdpaOamLckConfigGet (uint32_t lmepId, ofdpaOamLckConfig_t *config) |
Retrieve OAM Lock Signal configuration for the specified MEP using the configuration parameters provided. | |
OFDPA_ERROR_t | ofdpaOamLckDisable (uint32_t lmepId) |
Disable sending OAM Lock Signal (LCK) messages for the. | |
OFDPA_ERROR_t | ofdpaOamLckEnable (uint32_t lmepId, ofdpaOamLckConfig_t *config) |
Enable sending OAM Lock Signal (LCK) messages for the specified MEP using the configuration parameters provided. | |
OFDPA_ERROR_t | ofdpaOamLtGet (uint32_t lmepId, ofdpaOamLtConfig_t *config, ofdpaOamLtStatus_t *status) |
Retrieve OAM Link Trace configuration and/or status. | |
OFDPA_ERROR_t | ofdpaOamLtResultNextGet (uint32_t lmepId, uint32_t sequenceNum, uint32_t receiveOrder, ofdpaOamLtrEntry_t *ltResult) |
Retrieve Next OAM Link Trace record. | |
OFDPA_ERROR_t | ofdpaOamLtStart (uint32_t lmepId, ofdpaOamLtConfig_t *config) |
Initiates a OAM Link Trace session. | |
OFDPA_ERROR_t | ofdpaOamMegCreate (uint32_t megIndex, ofdpaOamMegConfig_t *config) |
Create an OAM MEG entry. | |
OFDPA_ERROR_t | ofdpaOamMegDelete (uint32_t megIndex) |
Delete an OAM MEG entry. | |
OFDPA_ERROR_t | ofdpaOamMegGet (uint32_t megIndex, ofdpaOamMegConfig_t *config, ofdpaOamMegStatus_t *status) |
Retrieve OAM MEG configuration and/or status. | |
OFDPA_ERROR_t | ofdpaOamMegNextGet (uint32_t megIndex, uint32_t *nextMegIndex) |
Return the MEG index, if any, for the entry after the one specified. | |
OFDPA_ERROR_t | ofdpaOamMepCCMDatabaseEntryGet (uint32_t lmepId, uint32_t remoteMepId, ofdpaOamCcmDatabaseEntry_t *dbEntry) |
Retrieve OAM MEP CCM database entry status. | |
OFDPA_ERROR_t | ofdpaOamMepCCMDatabaseEntryNextGet (uint32_t lmepId, uint32_t remoteMepId, uint32_t *nextRemoteMepId) |
Return the OAM MEP CCM database entry identifier, if any, for the entry after the specified remote MEP. | |
OFDPA_ERROR_t | ofdpaOamMepCreate (uint32_t lmepId, ofdpaOamMepConfig_t *config) |
Create an OAM MEP entry. | |
OFDPA_ERROR_t | ofdpaOamMepDelete (uint32_t lmepId) |
Delete an OAM MEP entry. | |
OFDPA_ERROR_t | ofdpaOamMepGet (uint32_t lmepId, ofdpaOamMepConfig_t *config, ofdpaOamMepStatus_t *status) |
Retrieve OAM MEP configuration and/or status. | |
OFDPA_ERROR_t | ofdpaOamMepLtrEntryGet (uint32_t lmepId, uint32_t index, ofdpaOamLtrEntry_t *ltrEntry) |
Retrieve OAM MEP LT Reply entry status. | |
OFDPA_ERROR_t | ofdpaOamMepLtrEntryNextGet (uint32_t lmepId, uint32_t index, uint32_t *nextIndex) |
Return the OAM MEP LT Reply entry identifier, if any, for the entry after the one specified. | |
OFDPA_ERROR_t | ofdpaOamMepNextGet (uint32_t lmepId, uint32_t *nextLmepId) |
Return the MEP identifier, if any, for the entry after the one specified. | |
OFDPA_ERROR_t | ofdpaOamMepProtectionAdd (uint32_t mlpGroupIndex, uint32_t lmepId) |
Add a local MEP to the specfied MPLS-TP Linear Protection Group. | |
OFDPA_ERROR_t | ofdpaOamMepProtectionGet (uint32_t mlpGroupIndex, uint32_t lmepId) |
Checks whether local MEP is associated with this MPLS-TP Linear Protection Group. | |
OFDPA_ERROR_t | ofdpaOamMepProtectionNextGet (uint32_t mlpGroupIndex, uint32_t lmepId, uint32_t *nextLmepId) |
Returns the index of the next local MEP associated with this MPLS-TP Linear Protection Group, if any exists. | |
OFDPA_ERROR_t | ofdpaOamMepProtectionRemove (uint32_t mlpGroupIndex, uint32_t lmepId) |
Remove a local MEP to the specfied MPLS-TP Linear Protection Group. | |
OFDPA_ERROR_t | ofdpaOamMipCreate (uint32_t localMpId, ofdpaOamMipConfig_t *config) |
Create an OAM MIP entry. | |
OFDPA_ERROR_t | ofdpaOamMipDelete (uint32_t localMpId) |
Delete an OAM MIP entry. | |
OFDPA_ERROR_t | ofdpaOamMipGet (uint32_t localMpId, ofdpaOamMipConfig_t *config, ofdpaOamMipStatus_t *status) |
Retrieve OAM MIP configuration and/or status. | |
OFDPA_ERROR_t | ofdpaOamMipNextGet (uint32_t localMpId, uint32_t *nextLocalMpId) |
Return the MIP identifier, if any, for the entry after the one specified. | |
OFDPA_ERROR_t | ofdpaOamMLPGroupCreate (uint32_t index, ofdpaOamMLPGroupConfig_t *config) |
Create an MPLS-TP Linear Protection Group entry. | |
OFDPA_ERROR_t | ofdpaOamMLPGroupDelete (uint32_t index) |
Delete an MPLS-TP Linear Protection Group entry. | |
OFDPA_ERROR_t | ofdpaOamMLPGroupGet (uint32_t index, ofdpaOamMLPGroupConfig_t *config, ofdpaOamMLPGroupStatus_t *status) |
Retrieve an MPLS-TP Linear Protection Group entry. | |
OFDPA_ERROR_t | ofdpaOamMLPGroupNextGet (uint32_t index, uint32_t *nextIndex) |
Return the MPLS-TP Linear Protection Group entry identifier, if any, for the entry after the one specified. | |
OFDPA_ERROR_t | ofdpaOamMLPGroupRequest (uint32_t index, OFDPA_PROTECTION_SWITCH_REQUEST_TYPE_t request) |
Issue a request to the MPLS-TP Linear Protection Group. | |
OFDPA_ERROR_t | ofdpaOamOdDmCountersGet (uint32_t lmepId, ofdpaOamOdDmSnapshot_t *counters) |
Retrieve OAM Performance Measurement OnDemand Delay Measurement counters. | |
OFDPA_ERROR_t | ofdpaOamOdDmCreate (uint32_t lmepId, ofdpaOamOdDmConfig_t *config) |
Create an OAM Performance Measurement OnDemand Delay Measurement entry. | |
OFDPA_ERROR_t | ofdpaOamOdDmDelete (uint32_t lmepId) |
Delete an OAM Performance Measurement OnDemand Delay Measurement entry. | |
OFDPA_ERROR_t | ofdpaOamOdDmGet (uint32_t lmepId, ofdpaOamOdDmConfig_t *config, ofdpaOamOdDmStatus_t *status) |
Retrieve OAM Performance Measurement OnDemand Delay Measurement configuration and/or status. | |
OFDPA_ERROR_t | ofdpaOamOdDmStart (uint32_t lmepId) |
Start OAM Performance Measurement OnDemand Delay Measurement session. | |
OFDPA_ERROR_t | ofdpaOamOdDmStop (uint32_t lmepId) |
Stop OAM Performance Measurement OnDemand Delay Measurement session. | |
OFDPA_ERROR_t | ofdpaOamOdLmCountersGet (uint32_t lmepId, ofdpaOamOdLmSnapshot_t *counters) |
Retrieve OAM Performance Measurement OnDemand Loss Measurement counters. | |
OFDPA_ERROR_t | ofdpaOamOdLmCreate (uint32_t lmepId, ofdpaOamOdLmConfig_t *config) |
Create an OAM Performance Measurement OnDemand Loss Measurement entry. | |
OFDPA_ERROR_t | ofdpaOamOdLmDelete (uint32_t lmepId) |
Delete an OAM Performance Measurement OnDemand Loss Measurement entry. | |
OFDPA_ERROR_t | ofdpaOamOdLmGet (uint32_t lmepId, ofdpaOamOdLmConfig_t *config, ofdpaOamOdLmStatus_t *status) |
Retrieve OAM Performance Measurement Ondemand Loss Measurement configuration and/or status. | |
OFDPA_ERROR_t | ofdpaOamOdLmStart (uint32_t lmepId) |
Start OAM Performance Measurement OnDemand Loss Measurement session. | |
OFDPA_ERROR_t | ofdpaOamOdLmStop (uint32_t lmepId) |
Stop OAM Performance Measurement OnDemand Loss Measurement session. | |
OFDPA_ERROR_t | ofdpaOamOnDemandDmStart (uint32_t lmepId, ofdpaOamOdDmConfig_t *config) |
Start an on demand Delay Measurement session. | |
OFDPA_ERROR_t | ofdpaOamOnDemandLmStart (uint32_t lmepId, ofdpaOamOdLmConfig_t *config) |
Start an on demand Loss Measurement session. | |
OFDPA_ERROR_t | ofdpaOamProDmCountersGet (uint32_t lmepId, ofdpaOamProDmCounters_t *counters) |
Retrieve OAM Performance Measurement Proactive Delay Measurement counters. | |
OFDPA_ERROR_t | ofdpaOamProDmCreate (uint32_t lmepId, ofdpaOamProDmConfig_t *config) |
Create an OAM Performance Measurement Proactive Delay Measurement entry. | |
OFDPA_ERROR_t | ofdpaOamProDmDelete (uint32_t lmepId) |
Delete an OAM Performance Measurement Proactive Delay Measurement entry. | |
OFDPA_ERROR_t | ofdpaOamProDmGet (uint32_t lmepId, ofdpaOamProDmConfig_t *config, ofdpaOamProDmStatus_t *status) |
Retrieve OAM Performance Measurement Proactive Delay Measurement configuration and/or status. | |
OFDPA_ERROR_t | ofdpaOamProDmStart (uint32_t lmepId) |
Start OAM Performance Measurement Proactive Delay Measurement session. | |
OFDPA_ERROR_t | ofdpaOamProDmStop (uint32_t lmepId) |
Stop OAM Performance Measurement Proactive Delay Measurement session. | |
OFDPA_ERROR_t | ofdpaOamProLmCountersGet (uint32_t lmepId, ofdpaOamProLmCounters_t *counters) |
Retrieve OAM Performance Measurement Proactive Loss Measurement counters. | |
OFDPA_ERROR_t | ofdpaOamProLmCreate (uint32_t lmepId, ofdpaOamProLmConfig_t *config) |
Create an OAM Performance Measurement Proactive Loss Measurement entry. | |
OFDPA_ERROR_t | ofdpaOamProLmDelete (uint32_t lmepId) |
Delete an OAM Performance Measurement Proactive Loss Measurement entry. | |
OFDPA_ERROR_t | ofdpaOamProLmDisable (uint32_t lmepId) |
Disable OAM Performance Measurement Proactive Loss Measurement session. | |
OFDPA_ERROR_t | ofdpaOamProLmEnable (uint32_t lmepId) |
Enable OAM Performance Measurement Proactive Loss Measurement session. | |
OFDPA_ERROR_t | ofdpaOamProLmGet (uint32_t lmepId, ofdpaOamProLmConfig_t *config, ofdpaOamProLmStatus_t *status) |
Retrieve OAM Performance Measurement Proactive Loss Measurement configuration and/or status. | |
OFDPA_ERROR_t | ofdpaOamRemoteMpCreate (uint32_t remoteMpId, ofdpaOamRemoteMpConfig_t *config) |
Create an OAM Remote MP entry. | |
OFDPA_ERROR_t | ofdpaOamRemoteMpDelete (uint32_t remoteMpId) |
Delete an OAM Remote MP entry. | |
OFDPA_ERROR_t | ofdpaOamRemoteMpGet (uint32_t remoteMpId, ofdpaOamRemoteMpConfig_t *config) |
Retrieve OAM Remote MP. | |
OFDPA_ERROR_t | ofdpaOamRemoteMpNextGet (uint32_t remoteMpId, uint32_t *nextRemoteMpId) |
Return the Remote MP identifier, if any, for the entry after the one specified for the given local MEP ID. | |
OFDPA_ERROR_t | ofdpaPktReceive (struct timeval *timeout, ofdpaPacket_t *pkt) |
The client calls this function to retrieve a single packet that the hardware has punted to the CPU. | |
OFDPA_ERROR_t | ofdpaPktSend (ofdpa_buffdesc *pkt, uint32_t flags, uint32_t outPortNum, uint32_t inPortNum) |
Packet out API. | |
OFDPA_ERROR_t | ofdpaPortAdvertiseFeatureSet (uint32_t portNum, uint32_t advertise) |
Set the port features that can be advertized durng Auto-Negotiation. | |
OFDPA_ERROR_t | ofdpaPortConfigGet (uint32_t portNum, uint32_t *config) |
Get the port administrative state. | |
OFDPA_ERROR_t | ofdpaPortConfigSet (uint32_t portNum, OFDPA_PORT_CONFIG_t config) |
Set the port administrative state. | |
OFDPA_ERROR_t | ofdpaPortCurrSpeedGet (uint32_t portNum, uint32_t *currSpeed) |
Get the port current speed. | |
OFDPA_ERROR_t | ofdpaPortEventGet (ofdpaPortEvent_t *eventData) |
Get the port event. | |
OFDPA_ERROR_t | ofdpaPortEventNextGet (ofdpaPortEvent_t *eventData) |
Get the next port event. | |
OFDPA_ERROR_t | ofdpaPortFeatureGet (uint32_t portNum, ofdpaPortFeature_t *feature) |
Get the port features. | |
void | ofdpaPortIndexGet (uint32_t portNum, uint32_t *index) |
Get the port index encoded in a port number value. | |
void | ofdpaPortIndexSet (uint32_t *portNum, uint32_t index) |
Encode the port index in a port number. | |
OFDPA_ERROR_t | ofdpaPortMacGet (uint32_t portNum, ofdpaMacAddr_t *mac) |
Get the MAC address of the given port. | |
OFDPA_ERROR_t | ofdpaPortMaxSpeedGet (uint32_t portNum, uint32_t *maxSpeed) |
Get the port maximum speed. | |
OFDPA_ERROR_t | ofdpaPortNameGet (uint32_t portNum, ofdpa_buffdesc *name) |
Get the port name. | |
OFDPA_ERROR_t | ofdpaPortNextGet (uint32_t portNum, uint32_t *nextPortNum) |
Get the next port from the port table. | |
OFDPA_ERROR_t | ofdpaPortStateGet (uint32_t portNum, uint32_t *state) |
Get the port link state. | |
OFDPA_ERROR_t | ofdpaPortStatsClear (uint32_t portNum) |
Clear port statistics. | |
OFDPA_ERROR_t | ofdpaPortStatsGet (uint32_t portNum, ofdpaPortStats_t *stats) |
Get port statistics. | |
void | ofdpaPortTypeGet (uint32_t portNum, uint32_t *type) |
Get the port type encoded in a port number value. | |
void | ofdpaPortTypeSet (uint32_t *portNum, uint32_t type) |
Encode the port type in a port number value. | |
const char * | ofdpaQosColorDecode (OFDPA_QOS_COLORS_t color) |
Returns the a string suitable for display to the user representing the color value. | |
OFDPA_ERROR_t | ofdpaQueueRateGet (uint32_t portNum, uint32_t queueId, uint32_t *minRate, uint32_t *maxRate) |
The client calls this function to get minimum and maximum bandwidth on a queue on a given port. | |
OFDPA_ERROR_t | ofdpaQueueRateSet (uint32_t portNum, uint32_t queueId, uint32_t minRate, uint32_t maxRate) |
The client calls this function to set minimum and maximum bandwidth on a queue on a given port. | |
OFDPA_ERROR_t | ofdpaQueueStatsClear (uint32_t portNum, uint32_t queueId) |
The client calls this function to clear all the statistics of a queue on a port. | |
OFDPA_ERROR_t | ofdpaQueueStatsGet (uint32_t portNum, uint32_t queueId, ofdpaPortQueueStats_t *stats) |
The client calls this function to get the statistics of a queue on a port. | |
OFDPA_ERROR_t | ofdpaRemarkActionAdd (ofdpaRemarkActionEntry_t *remarkEntry) |
Add remark action entry. | |
OFDPA_ERROR_t | ofdpaRemarkActionDelete (ofdpaRemarkActionEntry_t *remarkEntry) |
Delete remark action entry. | |
OFDPA_ERROR_t | ofdpaRemarkActionEntryGet (ofdpaRemarkActionEntry_t *remarkEntry) |
Get remark action entry. | |
OFDPA_ERROR_t | ofdpaRemarkEntryNextGet (ofdpaRemarkActionEntry_t *remarkEntry, ofdpaRemarkActionEntry_t *nextEntry) |
Retrieve the next remark entry. | |
OFDPA_ERROR_t | ofdpaSourceMacLearningGet (OFDPA_CONTROL_t *mode, ofdpaSrcMacLearnModeCfg_t *srcMacLearnModeCfg) |
The client calls this function to get the Source Mac Learning Mode with other config parameters. | |
OFDPA_ERROR_t | ofdpaSourceMacLearningSet (OFDPA_CONTROL_t mode, ofdpaSrcMacLearnModeCfg_t *srcMacLearnModeCfg) |
The client calls this function to set the Source Mac Learning Mode with other config parameters. | |
OFDPA_ERROR_t | ofdpaTunnelEcmpNextHopGroupCreate (uint32_t ecmpNextHopGroupId, ofdpaTunnelEcmpNextHopGroupConfig_t *config) |
Create a tunnel ECMP next hop group entry. | |
OFDPA_ERROR_t | ofdpaTunnelEcmpNextHopGroupDelete (uint32_t ecmpNextHopGroupId) |
Delete a tunnel ECMP next hop group entry. | |
OFDPA_ERROR_t | ofdpaTunnelEcmpNextHopGroupGet (uint32_t ecmpNextHopGroupId, ofdpaTunnelEcmpNextHopGroupConfig_t *config, ofdpaTunnelEcmpNextHopGroupStatus_t *status) |
Retrieve tunnel ECMP next hop group configuration and/or status. | |
OFDPA_ERROR_t | ofdpaTunnelEcmpNextHopGroupMaxMembersGet (uint32_t *maxMemberCount) |
Return the number of ECMP next hop group members supported by the switch. | |
OFDPA_ERROR_t | ofdpaTunnelEcmpNextHopGroupMemberAdd (uint32_t ecmpNextHopGroupId, uint32_t nextHopId) |
Adds a next hop member to an ECMP next hop group entry. | |
OFDPA_ERROR_t | ofdpaTunnelEcmpNextHopGroupMemberDelete (uint32_t ecmpNextHopGroupId, uint32_t nextHopId) |
Adds a next hop member to an ECMP next hop group entry. | |
OFDPA_ERROR_t | ofdpaTunnelEcmpNextHopGroupMemberGet (uint32_t ecmpNextHopListGroupId, uint32_t nextHopId) |
Test whether a next hop is a member in the specified ECMP next hop group. | |
OFDPA_ERROR_t | ofdpaTunnelEcmpNextHopGroupMemberNextGet (uint32_t ecmpNextHopListGroupId, uint32_t nextHopId, uint32_t *nextNextHopId) |
Gets the next member next hop in the ECMP next hop group. | |
OFDPA_ERROR_t | ofdpaTunnelEcmpNextHopGroupNextGet (uint32_t ecmpNextHopGroupId, uint32_t *nextEcmpNextHopGroupId) |
Return the ECMP tunnel next hop group identifier, if any, for the entry after the one specified. | |
void | ofdpaTunnelIdIndexGet (uint32_t tunnelId, uint32_t *index) |
Get the tunnel index encoded in a tunnel ID value. | |
void | ofdpaTunnelIdIndexSet (uint32_t *tunnelId, uint32_t index) |
Encode the tunnel index in a tunnelId number. | |
void | ofdpaTunnelIdTypeGet (uint32_t tunnelId, uint32_t *type) |
Get the tunnel type encoded in a tunnel ID value. | |
void | ofdpaTunnelIdTypeSet (uint32_t *tunnelId, uint32_t type) |
Encode the tunnel type in a tunnel ID value. | |
OFDPA_ERROR_t | ofdpaTunnelNextHopCreate (uint32_t nextHopId, ofdpaTunnelNextHopConfig_t *config) |
Create a tunnel next hop entry. | |
OFDPA_ERROR_t | ofdpaTunnelNextHopDelete (uint32_t nextHopId) |
Delete a tunnel next hop entry. | |
OFDPA_ERROR_t | ofdpaTunnelNextHopGet (uint32_t nextHopId, ofdpaTunnelNextHopConfig_t *config, ofdpaTunnelNextHopStatus_t *status) |
Retrieve tunnel next hop configuration and/or status. | |
OFDPA_ERROR_t | ofdpaTunnelNextHopModify (uint32_t nextHopId, ofdpaTunnelNextHopConfig_t *config) |
Modify a tunnel next hop entry. | |
OFDPA_ERROR_t | ofdpaTunnelNextHopNextGet (uint32_t nextHopId, uint32_t *nextNextHopId) |
Return the tunnel next hop identifier, if any, for the entry after the one specified. | |
OFDPA_ERROR_t | ofdpaTunnelPortCreate (uint32_t portNum, ofdpa_buffdesc *name, ofdpaTunnelPortConfig_t *config) |
Create a tunnel logical port. | |
OFDPA_ERROR_t | ofdpaTunnelPortDelete (uint32_t portNum) |
Delete a tunnel logical port. | |
OFDPA_ERROR_t | ofdpaTunnelPortGet (uint32_t portNum, ofdpaTunnelPortConfig_t *config, ofdpaTunnelPortStatus_t *status) |
Retrieve tunnel logical port configuration and/or status. | |
OFDPA_ERROR_t | ofdpaTunnelPortNextGet (uint32_t portNum, uint32_t *nextPortNum) |
Return the tunnel logical port identifier, if any, for the logical port after the one specified in the logical port table. | |
OFDPA_ERROR_t | ofdpaTunnelPortTenantAdd (uint32_t portNum, uint32_t tunnelId) |
Adds a tenant reference to a logical port tunnel entry. | |
OFDPA_ERROR_t | ofdpaTunnelPortTenantDelete (uint32_t portNum, uint32_t tunnelId) |
Deletes a tenant reference to a logical port tunnel entry. | |
OFDPA_ERROR_t | ofdpaTunnelPortTenantGet (uint32_t portNum, uint32_t tunnelId, ofdpaTunnelPortTenantStatus_t *status) |
Test whether a tenant reference to a logical port exists for the port and tenant combination. | |
OFDPA_ERROR_t | ofdpaTunnelPortTenantNextGet (uint32_t portNum, uint32_t tunnelId, uint32_t *nextTunnelId) |
Gets the next logical port tunnel entry after the port and tenant identified. | |
OFDPA_ERROR_t | ofdpaTunnelTenantCreate (uint32_t tunnelId, ofdpaTunnelTenantConfig_t *config) |
Create a tunnel tenant entry. | |
OFDPA_ERROR_t | ofdpaTunnelTenantDelete (uint32_t tunnelId) |
Delete a tunnel tenant entry. | |
OFDPA_ERROR_t | ofdpaTunnelTenantGet (uint32_t tunnelId, ofdpaTunnelTenantConfig_t *config, ofdpaTunnelTenantStatus_t *status) |
Retrieve tunnel tenant configuration and/or status. | |
OFDPA_ERROR_t | ofdpaTunnelTenantNextGet (uint32_t tunnelId, uint32_t *nextTunnelId) |
Return the tunnel identifier, if any, for the entry after the one specified. | |
int ofdpaBcmCommand | ( | ofdpa_buffdesc | buffer | ) |
Execute a BCM command.
[in] | buffer | BCM command |
OFDPA_ERROR_t ofdpaClientEventSockBind | ( | void | ) |
Opens and binds OF-DPA Client's event socket.
Only one process in the system should bind the event socket at any one time. If multiple running processes have called this function, unpredictable results may occur.
int ofdpaClientEventSockFdGet | ( | void | ) |
Get OF-DPA Client's event socket fd.
OFDPA_ERROR_t ofdpaClientInitialize | ( | char * | clientName | ) |
Initialize OF-DPA client or user application.
For OF-DPA Standalone Application mode, sets up the RPC communication channel for the client. For the statically linked User Application, initializes the system.
[in] | clientName | client name |
OFDPA_E_NONE | success |
OFDPA_E_PARAM | error in parameter passed |
OFDPA_E_FAIL | failure |
OFDPA_ERROR_t ofdpaClientPktSockBind | ( | void | ) |
Opens and binds OF-DPA Client's packet socket.
Only one process in the system should bind the event socket at any one time. If multiple running processes have called this function, unpredictable results may occur.
int ofdpaClientPktSockFdGet | ( | void | ) |
Get OF-DPA Client's packet socket fd.
int ofdpaCltDebugBuf | ( | ofdpa_buffdesc | functionName, |
ofdpaComponentIds_t | component, | ||
ofdpaDebugLevels_t | verbosity, | ||
ofdpa_buffdesc | message | ||
) |
Generate a debug message using a preformatted buffer.
[in] | functionName | name of function generating message |
[in] | component | ID of component generating message |
[in] | verbosity | message severity |
[in] | message | buffer containing message |
int ofdpaCltDebugPrintf | ( | const char * | functionName, |
ofdpaComponentIds_t | component, | ||
ofdpaDebugLevels_t | verbosity, | ||
const char * | format, | ||
... | |||
) |
Generate a debug message using printf formatting.
[in] | functionName | name of function generating message |
[in] | component | ID of component generating message |
[in] | verbosity | message severity |
[in] | format | format string |
[in] | ... | optional parameters for format string |
int ofdpaCltLogBuf | ( | int | priority, |
ofdpa_buffdesc | message | ||
) |
Generate a log message using a preformatted buffer.
[in] | priority | message priority (syslog values) |
[in] | message | buffer containing message |
int ofdpaCltLogPrintf | ( | int | priority, |
char * | fmt, | ||
... | |||
) |
Generate a log message using printf formatting.
[in] | priority | message priority (syslog values) |
[in] | fmt | format string |
[in] | ... | optional parameters for format string |
OFDPA_ERROR_t ofdpaComponentNameGet | ( | int | component, |
ofdpa_buffdesc * | name | ||
) |
Get the Component Name.
[in] | component | component number |
[out] | name | component name |
OFDPA_E_NONE | success |
OFDPA_E_FAIL | failure to get component |
int ofdpaDebugComponentGet | ( | int | component | ) |
Get Component debugging mode.
[in] | component | component number (ofdpaComponentIds_t) |
int ofdpaDebugComponentSet | ( | int | component, |
int | enable | ||
) |
Enable/Disable the Component for debugging.
[in] | component | component number (ofdpaComponentIds_t) |
[in] | enable | debug mode (ofdpaDebugLevels_t) |
int ofdpaDebugLvl | ( | int | lvl | ) |
Set the Debug Verbosity.
[in] | lvl | verbosity level (ofdpaDebugLevels_t) |
int ofdpaDebugLvlGet | ( | void | ) |
Get the Debug Verbosity.
OFDPA_ERROR_t ofdpaDropStatusActionGet | ( | uint32_t | lmepId, |
uint8_t * | dropAction | ||
) |
Get drop action value.
[in] | lmepId | lmep id |
[out] | dropAction | drop action (drop or don't) |
OFDPA_E_NONE | drop action returned successfully |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_FAIL | drop entry does not exist |
OFDPA_ERROR_t ofdpaDropStatusAdd | ( | ofdpaDropStatusEntry_t * | dropEntry | ) |
Add drop status entry.
[in] | dropEntry | drop entry |
OFDPA_E_NONE | drop entry added successfully |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_FULL | Drop Status table full |
OFDPA_E_EXISTS | drop entry exists |
OFDPA_E_INTERNAL | internal error |
OFDPA_ERROR_t ofdpaDropStatusDelete | ( | uint32_t | lmepId | ) |
Delete drop status entry.
[in] | lmepId | lmep id |
OFDPA_E_NONE | drop entry deleted successfully |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_NOT_FOUND | drop entry not found |
OFDPA_E_FAIL | failure; other errors |
OFDPA_ERROR_t ofdpaDropStatusEntryInit | ( | ofdpaDropStatusEntry_t * | dropEntry | ) |
Initialize drop entry.
[in,out] | dropEntry | drop entry |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_ERROR_t ofdpaDropStatusGet | ( | uint32_t | lmepId, |
ofdpaDropStatusEntry_t * | dropEntry | ||
) |
Get drop status entry.
[in] | lmepId | lmep id |
[out] | dropEntry | drop entry |
OFDPA_E_NONE | drop entry returned successfully |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_FAIL | drop entry does not exist |
OFDPA_ERROR_t ofdpaDropStatusNextGet | ( | uint32_t | lmepId, |
ofdpaDropStatusEntry_t * | nextDropEntry | ||
) |
Get the next drop entry.
[in] | lmepId | lmep id |
[out] | nextDropEntry | next drop entry |
OFDPA_E_NONE | next drop entry returned successfully |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_FAIL | next drop does not exist |
OFDPA_ERROR_t ofdpaEventReceive | ( | struct timeval * | timeout | ) |
Receive an event.
[in] | timeout | time to wait for the event |
OFDPA_E_NONE | event received successfully |
OFDPA_E_FAIL | failure in socket creation, timeout configuration or event reception |
OFDPA_E_TIMEOUT | no event waiting to be received |
OFDPA_ERROR_t ofdpaFeatureSupported | ( | OFDPA_FEATURE_t | feature | ) |
Indicates whether the switch supports a particular OF-DPA feature.
[in] | feature | The feature identifier |
OFDPA_E_UNAVAIL | If the feature is not supported |
OFDPA_E_NONE | If the feature is supported |
OFDPA_ERROR_t ofdpaFlowAdd | ( | ofdpaFlowEntry_t * | flow | ) |
Add a new entry to a flow table.
[in] | flow | structure containing flow entry parameters |
OFDPA_E_NONE | flow entry added successfully |
OFDPA_E_PARAM | error in flow entry parameters passed to function |
OFDPA_E_ERROR | flow entry validity check failed |
OFDPA_E_FAIL | failure occurred during flow entry installation |
OFDPA_E_FULL | maximum number of flow entries already exist in table |
OFDPA_E_EXISTS | an entry that overlaps the new entry already exists in the table |
OFDPA_ERROR_t ofdpaFlowByCookieDelete | ( | uint64_t | cookie | ) |
Delete the flow entry with the specified cookie.
[in] | cookie | cookie for the flow entry |
OFDPA_E_NONE | flow entry deleted successfully |
OFDPA_E_FAIL | error while deleting flow entry, including failure to find matching flow entry |
OFDPA_ERROR_t ofdpaFlowByCookieGet | ( | uint64_t | cookie, |
ofdpaFlowEntry_t * | flow, | ||
ofdpaFlowEntryStats_t * | flowStats | ||
) |
Returns statistics for the flow entry with the specified cookie value.
[in] | cookie | cookie for the flow entry |
[out] | flow | structure to store flow entry parameters |
[out] | flowStats | structure to store flow entry statistics |
OFDPA_E_NONE | flow entry was found and statistics returned |
OFDPA_E_PARAM | error in flow entry parameters passed to function |
OFDPA_E_NOT_FOUND | no flow entry with matching cookie found |
OFDPA_E_FAIL | the operation failed to complete |
OFDPA_ERROR_t ofdpaFlowDelete | ( | ofdpaFlowEntry_t * | flow | ) |
Delete an entry from a flow table.
[in] | flow | structure containing flow entry parameters |
OFDPA_E_NONE | flow entry added successfully |
OFDPA_E_PARAM | error in flow entry parameters passed to function |
OFDPA_E_FAIL | failure occurred during flow entry installation |
OFDPA_E_NOT_FOUND | no matching flow entry found |
OFDPA_E_ERROR | flow deletion validation failed |
OFDPA_ERROR_t ofdpaFlowEntryDecode | ( | ofdpaFlowEntry_t * | flow, |
char * | outBuf, | ||
int | bufSize | ||
) |
Decode a flow configuration structure into a descriptive string suitable for display to the user.
[in] | flow | flow configuration structure |
[out] | outBuf | buffer to receive string |
[in] | bufSize | size of outBuf |
OFDPA_E_NONE | entry decoded successfully |
OFDPA_E_FULL | bufSize not sufficient to hold the string generated, output truncated |
OFDPA_ERROR_t ofdpaFlowEntryInit | ( | OFDPA_FLOW_TABLE_ID_t | tableId, |
ofdpaFlowEntry_t * | flow | ||
) |
Initialize Flow entry structure.
[in] | tableId | Flow Table ID |
[in,out] | flow | Flow entry structure |
OFDPA_E_NONE | if flow entry structure is initialized successfully. |
OFDPA_E_PARAM | if an input parameter is invalid. |
OFDPA_ERROR_t ofdpaFlowEventNextGet | ( | ofdpaFlowEvent_t * | eventData | ) |
Get the next flow event.
[in,out] | eventData | event data |
OFDPA_E_NONE | flow event data returned successfully |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_NOT_FOUND | next port event not found |
OFDPA_ERROR_t ofdpaFlowModify | ( | ofdpaFlowEntry_t * | flow | ) |
Modify an existing entry in a flow table.
[in] | flow | structure containing flow entry parameters |
OFDPA_E_NONE | flow entry added successfully |
OFDPA_E_PARAM | error in flow entry parameters passed to function |
OFDPA_E_ERROR | flow entry validity check failed |
OFDPA_E_FAIL | failure occurred during flow entry installation |
OFDPA_ERROR_t ofdpaFlowNextGet | ( | ofdpaFlowEntry_t * | flow, |
ofdpaFlowEntry_t * | nextFlow | ||
) |
Retrieve the next flow entry in the specified flow table.
This API allows the client to walk the entries in a flow table. In order to get the first entry in a flow table, the client calls with the flow table identifier set and all other parameters set to zero. Table entries are walked in the order the table is indexed. If there are no entries in the table after the entry specified, a return code indicates the end of the flow table has been reached
[in] | flow | structure containing flow entry parameters |
[out] | nextFlow | structure containing the next flow table entry, if any |
OFDPA_E_NONE | the next flow entry was found and returned |
OFDPA_E_PARAM | error in flow entry parameters passed to function |
OFDPA_E_NOT_FOUND | no next flow entry found |
OFDPA_ERROR_t ofdpaFlowStatsGet | ( | ofdpaFlowEntry_t * | flow, |
ofdpaFlowEntryStats_t * | flowStats | ||
) |
Returns statistics for the flow entry specified.
[in] | flow | structure containing flow entry parameters |
[out] | flowStats | structure to store flow entry statistics |
OFDPA_E_NONE | flow entry was found and statistics returned |
OFDPA_E_PARAM | error in flow entry parameters passed to function |
OFDPA_E_NOT_FOUND | no matching flow entry found |
OFDPA_ERROR_t ofdpaFlowTableInfoGet | ( | OFDPA_FLOW_TABLE_ID_t | tableId, |
ofdpaFlowTableInfo_t * | info | ||
) |
Get Flow Table Info.
[in] | tableId | flow table Id |
[out] | info | flow table info |
OFDPA_E_NONE | table info returned successfully |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_NOT_FOUND | table id not found |
const char* ofdpaFlowTableNameGet | ( | OFDPA_FLOW_TABLE_ID_t | tableId | ) |
Returns the flow table name as a string suitable for display to the user.
[in] | tableId | flow table identifier |
pointer | to a string containing the flow table's name |
OFDPA_ERROR_t ofdpaFlowTableSupported | ( | OFDPA_FLOW_TABLE_ID_t | tableId | ) |
Checks whether a table ID is a supported on the platform.
[in] | tableId | Flow Table ID |
OFDPA_E_UNAVAIL | the value in tableId is not a valid table ID number |
OFDPA_E_NONE | the value in tableId is a valid table ID number |
OFDPA_ERROR_t ofdpaGroupAdd | ( | ofdpaGroupEntry_t * | group | ) |
Add Group.
[in] | group | group entry |
OFDPA_E_NONE | Group added successfully |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_FULL | Group table full |
OFDPA_E_EXISTS | Group entry exists |
OFDPA_E_NOT_FOUND | port encoded in Group type L2 Interface not found |
OFDPA_E_INTERNAL | internal error |
OFDPA_ERROR_t ofdpaGroupBucketEntryAdd | ( | ofdpaGroupBucketEntry_t * | bucket | ) |
Add a Group Bucket entry.
[in] | bucket | group bucket entry |
OFDPA_E_NONE | group bucket entry added successfully |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_FULL | group bucket table full |
OFDPA_E_NOT_FOUND | group not found |
OFDPA_E_EXISTS | group bucket entry exists |
OFDPA_E_INTERNAL | internal errors or failures |
OFDPA_E_FAIL | internal errors or failures |
OFDPA_ERROR_t ofdpaGroupBucketEntryDecode | ( | ofdpaGroupBucketEntry_t * | bucketEntry, |
char * | outBuf, | ||
int | bufSize | ||
) |
Decode a group bucket configuration structure into a descriptive string suitable for display to the user.
[in] | bucketEntry | group bucket configuration structure |
[out] | outBuf | buffer to receive string |
[in] | bufSize | size of outBuf |
OFDPA_E_NONE | Group bucket entry decoded successfully |
OFDPA_E_FULL | bufSize not sufficient to hold the string generated, output truncated |
OFDPA_E_ERROR | Error parsing group ID type or sub-type content |
OFDPA_ERROR_t ofdpaGroupBucketEntryDelete | ( | uint32_t | groupId, |
uint32_t | bucketIndex | ||
) |
Delete a Group Bucket entry.
[in] | groupId | group id |
[in] | bucketIndex | group bucket index |
OFDPA_E_NONE | group bucket entry deleted successfully |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_NOT_FOUND | group bucket entry not found |
OFDPA_E_EXISTS | group reference exists |
OFDPA_E_INTERNAL | internal errors or failures |
OFDPA_E_FAIL | internal errors or failures |
OFDPA_ERROR_t ofdpaGroupBucketEntryFirstGet | ( | uint32_t | groupId, |
ofdpaGroupBucketEntry_t * | firstGroupBucket | ||
) |
Get the first Group Bucket entry.
[in] | groupId | group id |
[out] | firstGroupBucket | first group bucket entry |
OFDPA_E_NONE | group bucket entry returned successfully |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_FAIL | group bucket entry does not exist |
OFDPA_ERROR_t ofdpaGroupBucketEntryGet | ( | uint32_t | groupId, |
uint32_t | bucketIndex, | ||
ofdpaGroupBucketEntry_t * | groupBucket | ||
) |
Get the Group Bucket entry.
[in] | groupId | group id |
[in] | bucketIndex | bucket index |
[out] | groupBucket | group bucket entry |
OFDPA_E_NONE | group bucket entry returned successfully |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_FAIL | group bucket entry does not exist |
OFDPA_ERROR_t ofdpaGroupBucketEntryInit | ( | OFDPA_GROUP_ENTRY_TYPE_t | groupType, |
ofdpaGroupBucketEntry_t * | bucket | ||
) |
Initialize Flow entry structure.
[in] | groupType | Group Type |
[in,out] | bucket | Group bucket entry structure |
OFDPA_E_NONE | if group bucket entry structure is initialized successfully. |
OFDPA_E_PARAM | if an input parameter is invalid. |
OFDPA_ERROR_t ofdpaGroupBucketEntryModify | ( | ofdpaGroupBucketEntry_t * | bucket | ) |
Modify Group Bucket entry.
[in] | bucket | group bucket entry to be modified |
OFDPA_E_NONE | group bucket entry modified successfully |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_NOT_FOUND | group bucket entry not found |
OFDPA_E_INTERNAL | internal errors or failures |
OFDPA_E_FAIL | internal errors or failures |
OFDPA_ERROR_t ofdpaGroupBucketEntryNextGet | ( | uint32_t | groupId, |
uint32_t | bucketIndex, | ||
ofdpaGroupBucketEntry_t * | nextBucketEntry | ||
) |
Get the next Group Bucket entry.
[in] | groupId | group id |
[in] | bucketIndex | bucket index |
[out] | nextBucketEntry | next group bucket entry |
OFDPA_E_NONE | next group bucket entry returned successfully |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_FAIL | next group bucket entry does not exist |
OFDPA_ERROR_t ofdpaGroupBucketsDeleteAll | ( | uint32_t | groupId | ) |
Delete all Buckets from a Group.
[in] | groupId | group id |
OFDPA_E_NONE | group bucket entry deleted successfully |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_EXISTS | group reference exists |
OFDPA_E_INTERNAL | internal errors or failures |
OFDPA_E_FAIL | internal errors or failures |
OFDPA_ERROR_t ofdpaGroupDecode | ( | uint32_t | groupId, |
char * | outBuf, | ||
int | bufSize | ||
) |
Decode a group ID value into a descriptive string suitable for display to the user.
[in] | groupId | group id |
[out] | outBuf | group id decoded |
[in] | bufSize | size of outBuf |
OFDPA_E_NONE | Group Id Decoded successfully |
OFDPA_E_FULL | bufSize not sufficient to hold the decoded Group Id, output truncated |
OFDPA_ERROR_t ofdpaGroupDelete | ( | uint32_t | groupId | ) |
Delete Group.
[in] | groupId | group id |
OFDPA_E_NONE | Group deleted successfully |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_NOT_FOUND | group entry not found |
OFDPA_E_FAIL | failure; other errors |
OFDPA_ERROR_t ofdpaGroupEntryInit | ( | OFDPA_GROUP_ENTRY_TYPE_t | groupType, |
ofdpaGroupEntry_t * | group | ||
) |
Initialize Flow entry structure.
[in] | groupType | Group Type |
[in,out] | group | Group entry structure |
OFDPA_E_NONE | if group entry structure is initialized successfully. |
OFDPA_E_PARAM | if an input parameter is invalid. |
OFDPA_ERROR_t ofdpaGroupIndexGet | ( | uint32_t | groupId, |
uint32_t * | index | ||
) |
Get the Index encoded in the Group Id.
[in] | groupId | group id |
[out] | index | Index |
OFDPA_E_NONE | Index returned successfully |
OFDPA_E_UNAVAIL | Index not available |
OFDPA_ERROR_t ofdpaGroupIndexSet | ( | uint32_t * | groupId, |
uint32_t | index | ||
) |
Encode the Index in the Group Id.
[in,out] | groupId | group id |
[in] | index | Index |
OFDPA_E_NONE | Encoded successfully |
OFDPA_E_UNAVAIL | Index field not available in Group Id |
OFDPA_ERROR_t ofdpaGroupMplsL2TunnelIdGet | ( | uint32_t | groupId, |
uint32_t * | tunnelId | ||
) |
Get the tunnel Id from the Group Id.
[in] | groupId | group id |
[out] | tunnelId | tunnel Id |
OFDPA_E_NONE | tunnel Id returned successfully |
OFDPA_E_UNAVAIL | tunnel Id field not available in Group Id |
OFDPA_ERROR_t ofdpaGroupMplsL2TunnelIdSet | ( | uint32_t * | groupId, |
uint32_t | tunnelId | ||
) |
Encode the tunnel Id in the Group Id.
[in,out] | groupId | group id |
[in] | tunnelId | tunnel Id |
OFDPA_E_NONE | Encoded successfully |
OFDPA_E_UNAVAIL | tunnel Id field not available in Group Id |
OFDPA_ERROR_t ofdpaGroupMplsSubTypeGet | ( | uint32_t | groupId, |
uint32_t * | subType | ||
) |
Get the MPLS Group Sub-type from the Group Id.
[in] | groupId | group id |
[out] | subType | sub-type |
OFDPA_E_NONE | Sub-type returned successfully |
OFDPA_E_UNAVAIL | Sub-type field not available in Group Id |
OFDPA_ERROR_t ofdpaGroupMplsSubTypeSet | ( | uint32_t * | groupId, |
uint32_t | subType | ||
) |
Encode the MPLS Group Sub-type in the Group Id.
[in,out] | groupId | group id |
[in] | subType | sub-type |
OFDPA_E_NONE | Encoded successfully |
OFDPA_E_UNAVAIL | Sub-type field not available in Group Id |
OFDPA_ERROR_t ofdpaGroupNextGet | ( | uint32_t | groupId, |
ofdpaGroupEntry_t * | nextGroup | ||
) |
Get the next Group entry.
[in] | groupId | group id |
[out] | nextGroup | next group entry |
OFDPA_E_NONE | next group entry returned successfully |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_FAIL | next group does not exist |
OFDPA_ERROR_t ofdpaGroupOverlayIndexGet | ( | uint32_t | groupId, |
uint32_t * | index | ||
) |
Get the Overlay Group index in the Group Id.
[in] | groupId | group id |
[out] | index | index |
OFDPA_E_NONE | index returned successfully |
OFDPA_E_UNAVAIL | index field not available in Group Id |
OFDPA_ERROR_t ofdpaGroupOverlayIndexSet | ( | uint32_t * | groupId, |
uint32_t | index | ||
) |
Encode the Overlay Group index in the Group Id.
[in,out] | groupId | group id |
[in] | index | index |
OFDPA_E_NONE | Encoded successfully |
OFDPA_E_UNAVAIL | Sub-type field not available in Group Id |
OFDPA_ERROR_t ofdpaGroupOverlaySubTypeGet | ( | uint32_t | groupId, |
OFDPA_L2_OVERLAY_SUBTYPE_t * | subType | ||
) |
Get the Overlay Group Sub-type from the Group Id.
[in] | groupId | group id |
[out] | subType | sub-type |
OFDPA_E_NONE | Sub-type returned successfully |
OFDPA_E_UNAVAIL | Sub-type field not available in Group Id |
OFDPA_ERROR_t ofdpaGroupOverlaySubTypeSet | ( | uint32_t * | groupId, |
OFDPA_L2_OVERLAY_SUBTYPE_t | subType | ||
) |
Encode the Overlay Group Sub-type in the Group Id.
[in,out] | groupId | group id |
[in] | subType | sub-type |
OFDPA_E_NONE | Encoded successfully |
OFDPA_E_UNAVAIL | Sub-type field not available in Group Id |
OFDPA_ERROR_t ofdpaGroupOverlayTunnelIdGet | ( | uint32_t | groupId, |
uint32_t * | tunnelId | ||
) |
Get the tunnel Id from the Group Id.
[in] | groupId | group id |
[out] | tunnelId | tunnel Id |
OFDPA_E_NONE | tunnel Id returned successfully |
OFDPA_E_UNAVAIL | tunnel Id field not available in Group Id |
OFDPA_ERROR_t ofdpaGroupOverlayTunnelIdSet | ( | uint32_t * | groupId, |
uint32_t | tunnelId | ||
) |
Encode the tunnel Id in the Group Id.
[in,out] | groupId | group id |
[in] | tunnelId | tunnel Id |
OFDPA_E_NONE | Encoded successfully |
OFDPA_E_UNAVAIL | tunnel Id field not available in Group Id |
OFDPA_ERROR_t ofdpaGroupPortIdGet | ( | uint32_t | groupId, |
uint32_t * | portId | ||
) |
Get the Port ID encoded in the Group Id.
[in] | groupId | group id |
[out] | portId | Port Id |
OFDPA_E_NONE | Port Id returned successfully |
OFDPA_E_UNAVAIL | Port Id not available |
OFDPA_ERROR_t ofdpaGroupPortIdSet | ( | uint32_t * | groupId, |
uint32_t | portId | ||
) |
Encode the Port Id in the Group Id.
[in,out] | groupId | group id |
[in] | portId | Port Id |
OFDPA_E_NONE | Encoded successfully |
OFDPA_E_UNAVAIL | Port Id field not available in Group Id |
OFDPA_ERROR_t ofdpaGroupStatsGet | ( | uint32_t | groupId, |
ofdpaGroupEntryStats_t * | groupStats | ||
) |
Get Group statistics.
[in] | groupId | group id |
[out] | groupStats | group statistics |
OFDPA_E_NONE | group statistics returned successfully |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_NOT_FOUND | group not found |
OFDPA_ERROR_t ofdpaGroupTableInfoGet | ( | uint32_t | groupId, |
ofdpaGroupTableInfo_t * | info | ||
) |
Get Group table info.
[in] | groupId | group id |
[in] | info | info |
OFDPA_E_NONE | group info returned successfully |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_NOT_FOUND | group type not found |
OFDPA_ERROR_t ofdpaGroupTableTotalEntryCountGet | ( | uint32_t * | entryCount | ) |
Reports the number of group entries of all types.
[out] | entryCount | total number of group entries configured |
OFDPA_E_NONE | group entry count returned successfully |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_ERROR_t ofdpaGroupTypeGet | ( | uint32_t | groupId, |
uint32_t * | type | ||
) |
Get the Group Type encoded in the Group ID.
[in] | groupId | group id |
[out] | type | group type |
OFDPA_E_NONE | Group Id returned successfully |
OFDPA_ERROR_t ofdpaGroupTypeNextGet | ( | uint32_t | groupId, |
OFDPA_GROUP_ENTRY_TYPE_t | groupType, | ||
ofdpaGroupEntry_t * | nextGroup | ||
) |
Get the next Group entry of a given type.
[in] | groupId | group id |
[in] | groupType | group type |
[out] | nextGroup | next group entry |
OFDPA_E_NONE | next group entry returned successfully |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_FAIL | next group does not exist |
OFDPA_ERROR_t ofdpaGroupTypeSet | ( | uint32_t * | groupId, |
uint32_t | type | ||
) |
Encode the Group Type in the Group Id.
[in,out] | groupId | group id |
[in] | type | group type |
OFDPA_E_NONE | Encoded successfully |
OFDPA_ERROR_t ofdpaGroupVlanGet | ( | uint32_t | groupId, |
uint32_t * | vlanId | ||
) |
Get the VLAN ID encoded in the Group Id.
[in] | groupId | group id |
[out] | vlanId | VLAN Id |
OFDPA_E_NONE | VLAN Id returned successfully |
OFDPA_E_UNAVAIL | VLAN Id not available |
OFDPA_ERROR_t ofdpaGroupVlanSet | ( | uint32_t * | groupId, |
uint32_t | vlanId | ||
) |
Encode the VLAN Id in the Group Id.
[in,out] | groupId | group id |
[in] | vlanId | VLAN Id |
OFDPA_E_NONE | Encoded successfully |
OFDPA_E_UNAVAIL | VLAN Id field not available in Group Id |
OFDPA_ERROR_t ofdpaMaxPktSizeGet | ( | uint32_t * | pktSize | ) |
Report the size in bytes of the largest packet that can be received.
[out] | pktSize | The maximum packet size, in bytes. |
OFDPA_E_NONE |
OFDPA_ERROR_t ofdpaMeterAdd | ( | uint32_t | meterId, |
ofdpaMeterEntry_t * | meter | ||
) |
Add Meter.
[in] | meterId | meter id |
[in] | meter | meter entry |
OFDPA_E_NONE | Meter added successfully |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_FULL | Meter table full |
OFDPA_E_EXISTS | Meter entry exists |
OFDPA_E_INTERNAL | internal error |
OFDPA_ERROR_t ofdpaMeterDelete | ( | uint32_t | meterId | ) |
Delete Meter.
[in] | meterId | meter id |
OFDPA_E_NONE | Meter deleted successfully |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_NOT_FOUND | meter entry not found |
OFDPA_E_FAIL | failure; other errors |
OFDPA_ERROR_t ofdpaMeterEntryInit | ( | ofdpaMeterEntry_t * | meter | ) |
Initialize Meter entry.
[in,out] | meter | meter entry |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_ERROR_t ofdpaMeterGet | ( | uint32_t | meterId, |
ofdpaMeterEntry_t * | meter | ||
) |
Get the Meter entry.
[in] | meterId | meter id |
[out] | meter | meter entry |
OFDPA_E_NONE | meter entry returned successfully |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_FAIL | next meter does not exist |
OFDPA_ERROR_t ofdpaMeterNextGet | ( | uint32_t | meterId, |
uint32_t * | nextMeterId | ||
) |
Get the next Meter entry.
[in] | meterId | meter id |
[out] | nextMeterId | next meter entry |
OFDPA_E_NONE | next meter entry returned successfully |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_FAIL | next meter does not exist |
OFDPA_ERROR_t ofdpaMeterStatsGet | ( | uint32_t | meterId, |
ofdpaMeterEntryStats_t * | meterStats | ||
) |
Get Meter statistics.
[in] | meterId | meter id |
[out] | meterStats | meter statistics |
OFDPA_E_NONE | meter statistics returned successfully |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_NOT_FOUND | meter not found |
void ofdpaMplsL2PortIndexGet | ( | uint32_t | portNum, |
uint32_t * | index | ||
) |
Get the MPLS L2 port index encoded in a port number value.
[in] | portNum | port number value |
[out] | index | port index |
void ofdpaMplsL2PortIndexSet | ( | uint32_t * | portNum, |
uint32_t | index | ||
) |
Encode the MPLS L2 port index in a port number.
[in,out] | portNum | port number storage |
[in] | index | port index |
void ofdpaMplsL2PortTypeGet | ( | uint32_t | portNum, |
uint32_t * | type | ||
) |
Get the MPLS L2 port type encoded in a port number value.
[in] | portNum | port number value |
[out] | type | port type |
void ofdpaMplsL2PortTypeSet | ( | uint32_t * | portNum, |
uint32_t | type | ||
) |
Encode the MPLS L2 port type in a port number value.
[in,out] | portNum | port number storage |
[in] | type | port type |
OFDPA_ERROR_t ofdpaMplsQosActionAdd | ( | ofdpaMplsQosEntry_t * | mplsQosEntry | ) |
Add MPLS Set QoS action entry.
[in] | mplsQosEntry | structure containing action entry parameters |
OFDPA_E_NONE | action entry added successfully |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_FULL | MPLS Set QoS Action table full |
OFDPA_E_EXISTS | action entry exists |
OFDPA_E_INTERNAL | internal error |
OFDPA_ERROR_t ofdpaMplsQosActionDelete | ( | ofdpaMplsQosEntry_t * | mplsQosEntry | ) |
Delete MPLS Set QoS action entry.
[in] | mplsQosEntry | structure containing action entry parameters |
OFDPA_E_NONE | entry deleted successfully |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_NOT_FOUND | entry not found |
OFDPA_E_FAIL | failure; other errors |
OFDPA_ERROR_t ofdpaMplsQosActionEntryGet | ( | uint8_t | qosIndex, |
uint8_t | mpls_tc, | ||
ofdpaMplsQosEntry_t * | mplsQosEntry | ||
) |
Get MPLS Set QoS action entry.
[in] | qosIndex | QoS index |
[in] | mpls_tc | value from label shim header |
[out] | mplsQosEntry | structure containing action entry parameters |
OFDPA_E_NONE | entry returned successfully |
OFDPA_E_NOT_FOUND | entry not found |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_ERROR_t ofdpaMplsQosEntryInit | ( | ofdpaMplsQosEntry_t * | mplsQosEntry | ) |
Initialize MPLS QoS entry.
[in,out] | mplsQosEntry | MPLS QoS entry |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_ERROR_t ofdpaMplsQosEntryNextGet | ( | ofdpaMplsQosEntry_t * | mplsQosEntry, |
ofdpaMplsQosEntry_t * | nextEntry | ||
) |
Retrieve the next MPLS QoS entry.
This API allows the client to walk the entries in a MPLS Set QoS table. In order to get the first entry in a MPLS Set QoS table, the client calls with all parameters set to zero. Table entries are walked in the order the table is indexed. If there are no entries in the table after the entry specified, a return code indicates the end of the MPLS Set QoS table has been reached
[in] | mplsQosEntry | structure containing action entry parameters |
[out] | nextEntry | structure containing the next MPLS Set QoS table entry, if any |
OFDPA_E_NONE | the next action entry was found and returned |
OFDPA_E_PARAM | error in action entry parameters passed to function |
OFDPA_E_NOT_FOUND | no next action entry found |
OFDPA_ERROR_t ofdpaNumQueuesGet | ( | uint32_t | portNum, |
uint32_t * | numQueues | ||
) |
The client calls this function to get the number of COS queues on a port.
[in] | portNum | Port number |
[out] | numQueues | Number of Queues on a port |
OFDPA_E_NONE | if number of queues on a port is returned. |
OFDPA_E_PARAM | if an input parameter is invalid. |
OFDPA_E_NOT_FOUND | the port does not exist. |
OFDPA_ERROR_t ofdpaOamAisConfigGet | ( | uint32_t | lmepId, |
ofdpaOamAisConfig_t * | config | ||
) |
Retrieve OAM Alarm Indication Signal configuration for the specified MEP using the configuration parameters provided.
[in] | lmepId | unique identifier for the MEP entry |
[in] | config | structure containing configuration parameters |
OFDPA_E_NONE | AIS config retrieved successfully |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_NOT_FOUND | entry with identifier not configured |
OFDPA_ERROR_t ofdpaOamAisDisable | ( | uint32_t | lmepId | ) |
Disable sending OAM Alarm Indication Signal (AIS) messages for the specified MEP.
[in] | lmepId | unique identifier for the MEP entry |
OFDPA_E_NONE | AIS unconfigured successfully |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_NOT_FOUND | entry with identifier not configured |
OFDPA_ERROR_t ofdpaOamAisEnable | ( | uint32_t | lmepId, |
ofdpaOamAisConfig_t * | config | ||
) |
Enable sending OAM Alarm Indication Signal (AIS) messages for the specified MEP using the configuration parameters provided.
[in] | lmepId | unique identifier for the MEP entry |
[in] | config | structure containing configuration parameters |
OFDPA_E_NONE | AIS configured successfully |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_NOT_FOUND | entry with identifier not configured |
OFDPA_ERROR_t ofdpaOamCsfDisable | ( | uint32_t | lmepId | ) |
Disable sending OAM Client Signal Fail (CSF) messages for the specified MEP.
[in] | lmepId | unique identifier for the MEP entry |
OFDPA_E_NONE | CSF unconfigured successfully |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_NOT_FOUND | entry with identifier not configured |
OFDPA_ERROR_t ofdpaOamCsfEnable | ( | uint32_t | lmepId, |
ofdpaOamCsfConfig_t * | config | ||
) |
Enable sending OAM Client Signal Fail (CSF) messages for the specified MEP using the configuration parameters provided.
[in] | lmepId | unique identifier for the MEP entry |
[in] | config | structure containing configuration parameters |
OFDPA_E_NONE | CSF configured successfully |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_NOT_FOUND | entry with identifier not configured |
OFDPA_ERROR_t ofdpaOamDataCounterAdd | ( | uint32_t | lmepId, |
uint8_t | trafficClass | ||
) |
Add data counter entry.
[in] | lmepId | lmep id |
[in] | trafficClass | traffic class |
OFDPA_E_NONE | data counter entry added successfully |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_FULL | Data Counter table full |
OFDPA_E_EXISTS | data counter entry exists |
OFDPA_E_INTERNAL | internal error |
OFDPA_ERROR_t ofdpaOamDataCounterDelete | ( | uint32_t | lmepId, |
uint8_t | trafficClass | ||
) |
Delete data counter entry.
[in] | lmepId | lmep id |
[in] | trafficClass | traffic class |
OFDPA_E_NONE | data counter entry deleted successfully |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_NOT_FOUND | data counter entry not found |
OFDPA_E_FAIL | failure; other errors |
OFDPA_ERROR_t ofdpaOamDataCounterGet | ( | ofdpaOamDataCounterIndex_t | index, |
ofdpaOamDataCounterStatus_t * | status | ||
) |
Get the data counter entry.
[in] | index | lmep id and traffic class index |
[out] | status | entry status |
OFDPA_E_NONE | next data counter entry returned successfully |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_FAIL | data counter does not exist |
OFDPA_ERROR_t ofdpaOamDataCounterNextGet | ( | ofdpaOamDataCounterIndex_t | index, |
ofdpaOamDataCounterIndex_t * | nextIndex, | ||
ofdpaOamDataCounterStatus_t * | status | ||
) |
Get the next data counter entry.
[in] | index | lmep id and traffic class index |
[out] | nextIndex | index of the next data couter entry |
[out] | status | next entry status |
OFDPA_E_NONE | next data counter entry returned successfully |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_FAIL | next data counter does not exist |
OFDPA_ERROR_t ofdpaOamDataCountersLMClear | ( | ofdpaOamDataCounterIndex_t | index | ) |
Clear OAM LM counters.
[in] | index | lmep id and traffic class index |
OFDPA_E_NONE | LM counters cleared successfully |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_ERROR_t ofdpaOamDataCountersLMGet | ( | ofdpaOamDataCounterIndex_t | index, |
uint32_t * | TxFCl, | ||
uint32_t * | RxFCl | ||
) |
Get OAM LM counters.
[in] | index | lmep id and traffic class index |
[out] | TxFCl | tx counters |
[out] | RxFCl | rx counters |
OFDPA_E_NONE | LM counters returned successfully |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_ERROR_t ofdpaOamDataCounterStatusGet | ( | uint32_t | lmepId, |
uint8_t | trafficClass, | ||
ofdpaOamDataCounterStatus_t * | status | ||
) |
Get data counter entry status.
[in] | lmepId | lmep id |
[in] | trafficClass | traffic class |
[out] | status | entry status |
OFDPA_E_NONE | data counter entry status returned successfully |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_FAIL | data counter entry does not exist |
OFDPA_ERROR_t ofdpaOamEventNextGet | ( | ofdpaOamEvent_t * | eventData | ) |
Get the next OAM event.
[in,out] | eventData | event data |
OFDPA_E_NONE | event data returned successfully |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_NOT_FOUND | next port event not found |
OFDPA_ERROR_t ofdpaOamLbCreate | ( | uint32_t | lmepId, |
ofdpaOamLbConfig_t * | config | ||
) |
Create an OAM Loopback Entry.
[in] | lmepId | unique identifier for the MEP entry |
[in] | config | structure containing configuration parameters |
OFDPA_E_NONE | entry successfully created |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_ERROR | configuration error |
OFDPA_E_FAIL | failure occurred during creation |
OFDPA_E_FULL | maximum number of entries already created |
OFDPA_E_EXISTS | an entry with the specified indices already created |
OFDPA_ERROR_t ofdpaOamLbGet | ( | uint32_t | lmepId, |
ofdpaOamLbConfig_t * | config, | ||
ofdpaOamLbStatus_t * | status | ||
) |
Get the status of loopback.
[in] | lmepId | unique identifier for the MEP entry |
[out] | config | structure containing configuration parameters |
[out] | status | structure containing status parameters |
OFDPA_E_NONE | entry successfully retrieved |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_NOT_FOUND | entry with id not configured |
OFDPA_ERROR_t ofdpaOamLbStart | ( | uint32_t | lmepId | ) |
Start on demand loopback.
[in] | lmepId | unique identifier for the MEP entry |
OFDPA_E_NONE | entry successfully retrieved |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_NOT_FOUND | entry with id not configured |
OFDPA_ERROR_t ofdpaOamLbStop | ( | uint32_t | lmepId | ) |
Stop on demand loopback.
[in] | lmepId | unique identifier for the MEP entry |
OFDPA_E_NONE | entry successfully retrieved |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_NOT_FOUND | entry with id not configured |
OFDPA_ERROR_t ofdpaOamLckConfigGet | ( | uint32_t | lmepId, |
ofdpaOamLckConfig_t * | config | ||
) |
Retrieve OAM Lock Signal configuration for the specified MEP using the configuration parameters provided.
[in] | lmepId | unique identifier for the MEP entry |
[in] | config | structure containing configuration parameters |
OFDPA_E_NONE | Lock Signal config retrieved successfully |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_NOT_FOUND | entry with identifier not configured |
OFDPA_ERROR_t ofdpaOamLckDisable | ( | uint32_t | lmepId | ) |
Disable sending OAM Lock Signal (LCK) messages for the.
Disable sending OAM Alarm Indication Signal (AIS) messages for the specified MEP.
[in] | lmepId | unique identifier for the MEP entry |
OFDPA_E_NONE | Lock Signal unconfigured successfully |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_NOT_FOUND | entry with identifier not configured |
OFDPA_ERROR_t ofdpaOamLckEnable | ( | uint32_t | lmepId, |
ofdpaOamLckConfig_t * | config | ||
) |
Enable sending OAM Lock Signal (LCK) messages for the specified MEP using the configuration parameters provided.
[in] | lmepId | unique identifier for the MEP entry |
[in] | config | structure containing configuration parameters |
OFDPA_E_NONE | Lock Signal configured successfully |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_NOT_FOUND | entry with identifier not configured |
OFDPA_ERROR_t ofdpaOamLtGet | ( | uint32_t | lmepId, |
ofdpaOamLtConfig_t * | config, | ||
ofdpaOamLtStatus_t * | status | ||
) |
Retrieve OAM Link Trace configuration and/or status.
[in] | lmepId | unique identifier for the MEP entry |
[out] | config | structure containing configuration (optional) |
[out] | status | structure containing status (optional) |
OFDPA_E_NONE | data successfully retrieved |
OFDPA_E_NOT_FOUND | entry with identifier not configured |
OFDPA_ERROR_t ofdpaOamLtResultNextGet | ( | uint32_t | lmepId, |
uint32_t | sequenceNum, | ||
uint32_t | receiveOrder, | ||
ofdpaOamLtrEntry_t * | ltResult | ||
) |
Retrieve Next OAM Link Trace record.
[in] | lmepId | unique identifier for the MEP entry |
[in] | sequenceNum | sequence number for the link trace record |
[in] | receiveOrder | receive order for the link trace record |
[out] | ltResult | structure containing result |
OFDPA_E_NONE | successfully retrieved next entry |
OFDPA_E_NOT_FOUND | next entry not found |
OFDPA_ERROR_t ofdpaOamLtStart | ( | uint32_t | lmepId, |
ofdpaOamLtConfig_t * | config | ||
) |
Initiates a OAM Link Trace session.
[in] | lmepId | unique identifier for the MEP entry |
[in] | config | structure containing configuration parameters |
OFDPA_E_NONE | entry successfully created |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_ERROR | configuration error |
OFDPA_E_FAIL | failure occurred during creation |
OFDPA_E_FULL | maximum number of entries already created |
OFDPA_E_EXISTS | an entry with the specified indices already created |
OFDPA_ERROR_t ofdpaOamMegCreate | ( | uint32_t | megIndex, |
ofdpaOamMegConfig_t * | config | ||
) |
Create an OAM MEG entry.
[in] | megIndex | unique identifier for the MEG entry |
[in] | config | structure containing configuration parameters |
OFDPA_E_NONE | entry successfully created |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_ERROR | configuration error |
OFDPA_E_FAIL | failure occurred during creation |
OFDPA_E_FULL | maximum number of entries already created |
OFDPA_E_EXISTS | an entry with the specified indices already created |
OFDPA_ERROR_t ofdpaOamMegDelete | ( | uint32_t | megIndex | ) |
Delete an OAM MEG entry.
[in] | megIndex | unique identifier for the MEG entry |
OFDPA_E_NONE | entry successfully deleted |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_NOT_FOUND | entry with identifier not configured |
OFDPA_E_FAIL | failure occurred during deletion |
OFDPA_ERROR_t ofdpaOamMegGet | ( | uint32_t | megIndex, |
ofdpaOamMegConfig_t * | config, | ||
ofdpaOamMegStatus_t * | status | ||
) |
Retrieve OAM MEG configuration and/or status.
[in] | megIndex | unique identifier for the MEG entry |
[out] | config | structure containing configuration (optional) |
[out] | status | structure containing status (optional) |
OFDPA_E_NONE | data successfully retrieved |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_NOT_FOUND | entry with identifier not configured |
OFDPA_ERROR_t ofdpaOamMegNextGet | ( | uint32_t | megIndex, |
uint32_t * | nextMegIndex | ||
) |
Return the MEG index, if any, for the entry after the one specified.
[in] | megIndex | specifies the starting MEG index |
[out] | nextMegIndex | unique identifier for the next MEG entry of the given type |
OFDPA_E_NONE | next identifier found |
OFDPA_E_FAIL | no next identifier found |
OFDPA_ERROR_t ofdpaOamMepCCMDatabaseEntryGet | ( | uint32_t | lmepId, |
uint32_t | remoteMepId, | ||
ofdpaOamCcmDatabaseEntry_t * | dbEntry | ||
) |
Retrieve OAM MEP CCM database entry status.
[in] | lmepId | unique identifier for the MEP entry |
[in] | remoteMepId | unique identifier for the remote MEP entry |
[out] | dbEntry | structure containing entry (optional) |
OFDPA_E_NONE | data successfully retrieved |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_NOT_FOUND | entry with identifier not configured |
OFDPA_E_INTERNAL | internal error |
OFDPA_ERROR_t ofdpaOamMepCCMDatabaseEntryNextGet | ( | uint32_t | lmepId, |
uint32_t | remoteMepId, | ||
uint32_t * | nextRemoteMepId | ||
) |
Return the OAM MEP CCM database entry identifier, if any, for the entry after the specified remote MEP.
[in] | lmepId | unique identifier for the MEP entry |
[in] | remoteMepId | unique identifier for the remote MEP entry |
[out] | nextRemoteMepId | unique identifier for the next remote MEP entry |
OFDPA_E_NONE | next identifier found |
OFDPA_E_FAIL | no next identifier found |
OFDPA_ERROR_t ofdpaOamMepCreate | ( | uint32_t | lmepId, |
ofdpaOamMepConfig_t * | config | ||
) |
Create an OAM MEP entry.
[in] | lmepId | unique identifier for the MEP entry |
[in] | config | structure containing configuration parameters |
OFDPA_E_NONE | entry successfully created |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_ERROR | configuration error |
OFDPA_E_FAIL | failure occurred during creation |
OFDPA_E_FULL | maximum number of entries already created |
OFDPA_E_EXISTS | an entry with the specified indices already created |
OFDPA_ERROR_t ofdpaOamMepDelete | ( | uint32_t | lmepId | ) |
Delete an OAM MEP entry.
[in] | lmepId | unique identifier for the MEP entry |
OFDPA_E_NONE | entry successfully deleted |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_NOT_FOUND | entry with identifier not configured |
OFDPA_E_FAIL | failure occurred during deletion |
OFDPA_ERROR_t ofdpaOamMepGet | ( | uint32_t | lmepId, |
ofdpaOamMepConfig_t * | config, | ||
ofdpaOamMepStatus_t * | status | ||
) |
Retrieve OAM MEP configuration and/or status.
[in] | lmepId | unique identifier for the MEP entry |
[out] | config | structure containing configuration (optional) |
[out] | status | structure containing status (optional) |
OFDPA_E_NONE | data successfully retrieved |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_NOT_FOUND | entry with identifier not configured |
OFDPA_ERROR_t ofdpaOamMepLtrEntryGet | ( | uint32_t | lmepId, |
uint32_t | index, | ||
ofdpaOamLtrEntry_t * | ltrEntry | ||
) |
Retrieve OAM MEP LT Reply entry status.
[in] | lmepId | unique identifier for the MEP entry |
[in] | index | unique identifier for the entry |
[out] | ltrEntry | structure containing entry (optional) |
OFDPA_E_NONE | data successfully retrieved |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_NOT_FOUND | entry with identifier not configured |
OFDPA_ERROR_t ofdpaOamMepLtrEntryNextGet | ( | uint32_t | lmepId, |
uint32_t | index, | ||
uint32_t * | nextIndex | ||
) |
Return the OAM MEP LT Reply entry identifier, if any, for the entry after the one specified.
[in] | lmepId | unique identifier for the MEP entry |
[in] | index | unique identifier for the entry |
[out] | nextIndex | unique identifier for the next entry |
OFDPA_E_NONE | next identifier found |
OFDPA_E_FAIL | no next identifier found |
OFDPA_ERROR_t ofdpaOamMepNextGet | ( | uint32_t | lmepId, |
uint32_t * | nextLmepId | ||
) |
Return the MEP identifier, if any, for the entry after the one specified.
[in] | lmepId | unique identifier for the MEP entry |
[out] | nextLmepId | unique identifier for the next MEP entry on the MEG |
OFDPA_E_NONE | next identifier found |
OFDPA_E_FAIL | no next identifier found |
OFDPA_ERROR_t ofdpaOamMepProtectionAdd | ( | uint32_t | mlpGroupIndex, |
uint32_t | lmepId | ||
) |
Add a local MEP to the specfied MPLS-TP Linear Protection Group.
[in] | mlpGroupIndex | MLP Group entry index |
[in] | lmepId | unique identifier for the MEP entry |
OFDPA_E_NONE | local MEP successfully added to protection group |
OFDPA_E_ERROR | requested combination failed validation |
OFDPA_E_FAIL | failure adding local MEP to protection group |
OFDPA_E_NOT_FOUND | either the MLP group or local MEP entry specified is not configured |
OFDPA_E_EXISTS | an entry for this combination exists |
OFDPA_E_FULL | the table storing these entries is full |
OFDPA_ERROR_t ofdpaOamMepProtectionGet | ( | uint32_t | mlpGroupIndex, |
uint32_t | lmepId | ||
) |
Checks whether local MEP is associated with this MPLS-TP Linear Protection Group.
[in] | mlpGroupIndex | MLP Group entry index |
[in] | lmepId | unique identifier for the MEP entry |
OFDPA_E_NONE | local MEP is associated with this protection group |
OFDPA_E_NOT_FOUND | local MEP is not associated with this protection group |
OFDPA_ERROR_t ofdpaOamMepProtectionNextGet | ( | uint32_t | mlpGroupIndex, |
uint32_t | lmepId, | ||
uint32_t * | nextLmepId | ||
) |
Returns the index of the next local MEP associated with this MPLS-TP Linear Protection Group, if any exists.
[in] | mlpGroupIndex | MLP Group entry index |
[in] | lmepId | unique identifier for the MEP entry |
[out] | nextLmepId | storage for value of next MEP entry identifier, if any |
OFDPA_E_NONE | next identifier found |
OFDPA_E_FAIL | no next identifier found |
OFDPA_E_PARAM | parameter error, such as passing a null pointer |
OFDPA_ERROR_t ofdpaOamMepProtectionRemove | ( | uint32_t | mlpGroupIndex, |
uint32_t | lmepId | ||
) |
Remove a local MEP to the specfied MPLS-TP Linear Protection Group.
[in] | mlpGroupIndex | MLP Group entry index |
[in] | lmepId | unique identifier for the MEP entry |
OFDPA_E_NONE | local MEP successfully removed from protection group |
OFDPA_E_FAIL | failure adding local MEP to protection group |
OFDPA_E_NOT_FOUND | either the MLP group or local MEP entry specified is not configured |
OFDPA_ERROR_t ofdpaOamMipCreate | ( | uint32_t | localMpId, |
ofdpaOamMipConfig_t * | config | ||
) |
Create an OAM MIP entry.
[in] | localMpId | unique identifier for the MIP entry |
[in] | config | structure containing configuration parameters |
OFDPA_E_NONE | entry successfully created |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_ERROR | configuration error |
OFDPA_E_FAIL | failure occurred during creation |
OFDPA_E_FULL | maximum number of entries already created |
OFDPA_E_EXISTS | an entry with the specified indices already created |
OFDPA_ERROR_t ofdpaOamMipDelete | ( | uint32_t | localMpId | ) |
Delete an OAM MIP entry.
[in] | localMpId | unique identifier for the MIP entry |
OFDPA_E_NONE | entry successfully deleted |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_NOT_FOUND | entry with identifier not configured |
OFDPA_E_FAIL | failure occurred during deletion |
OFDPA_ERROR_t ofdpaOamMipGet | ( | uint32_t | localMpId, |
ofdpaOamMipConfig_t * | config, | ||
ofdpaOamMipStatus_t * | status | ||
) |
Retrieve OAM MIP configuration and/or status.
[in] | localMpId | unique identifier for the MIP entry |
[out] | config | structure containing configuration (optional) |
[out] | status | structure containing status (optional) |
OFDPA_E_NONE | data successfully retrieved |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_NOT_FOUND | entry with identifier not configured |
OFDPA_ERROR_t ofdpaOamMipNextGet | ( | uint32_t | localMpId, |
uint32_t * | nextLocalMpId | ||
) |
Return the MIP identifier, if any, for the entry after the one specified.
[in] | localMpId | unique identifier for the current MIP entry |
[out] | nextLocalMpId | unique identifier for the next MIP entry |
OFDPA_E_NONE | next identifier found |
OFDPA_E_FAIL | no next identifier found |
OFDPA_ERROR_t ofdpaOamMLPGroupCreate | ( | uint32_t | index, |
ofdpaOamMLPGroupConfig_t * | config | ||
) |
Create an MPLS-TP Linear Protection Group entry.
[in] | index | unique identifier for the entry |
[in] | config | data to configure the entry |
OFDPA_E_NONE | entry added to table |
OFDPA_E_PARAM | incorrect parameter (e.g., NULL pointer) |
OFDPA_E_FAIL | error adding entry to table |
OFDPA_ERROR_t ofdpaOamMLPGroupDelete | ( | uint32_t | index | ) |
Delete an MPLS-TP Linear Protection Group entry.
[in] | index | unique identifier for the entry |
OFDPA_E_NONE | entry deleted from table |
OFDPA_E_NOT_FOUND | specified entry not found |
OFDPA_E_FAIL | error adding entry to table |
OFDPA_ERROR_t ofdpaOamMLPGroupGet | ( | uint32_t | index, |
ofdpaOamMLPGroupConfig_t * | config, | ||
ofdpaOamMLPGroupStatus_t * | status | ||
) |
Retrieve an MPLS-TP Linear Protection Group entry.
[in] | index | unique identifier for the entry |
[out] | config | structure containing configuration (optional) |
[out] | status | structure containing status (optional) |
OFDPA_E_NONE | data successfully retrieved |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_NOT_FOUND | entry with identifier not configured |
OFDPA_ERROR_t ofdpaOamMLPGroupNextGet | ( | uint32_t | index, |
uint32_t * | nextIndex | ||
) |
Return the MPLS-TP Linear Protection Group entry identifier, if any, for the entry after the one specified.
[in] | index | unique identifier for the entry |
[out] | nextIndex | next entry identifier if found |
OFDPA_E_NONE | next identifier found |
OFDPA_E_FAIL | no next identifier found |
OFDPA_E_PARAM | parameter error, such as passing a null pointer |
OFDPA_ERROR_t ofdpaOamMLPGroupRequest | ( | uint32_t | index, |
OFDPA_PROTECTION_SWITCH_REQUEST_TYPE_t | request | ||
) |
Issue a request to the MPLS-TP Linear Protection Group.
[in] | index | unique identifier for the entry |
[in] | request | type of request to issue |
OFDPA_E_NONE | request successfully initiated |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_NOT_FOUND | entry with identifier not configured |
OFDPA_ERROR_t ofdpaOamOdDmCountersGet | ( | uint32_t | lmepId, |
ofdpaOamOdDmSnapshot_t * | counters | ||
) |
Retrieve OAM Performance Measurement OnDemand Delay Measurement counters.
[in] | lmepId | unique identifier for the MEP entry |
[out] | counters | structure containing counters |
OFDPA_E_NONE | data successfully retrieved |
OFDPA_E_NOT_FOUND | entry with identifier not configured |
OFDPA_ERROR_t ofdpaOamOdDmCreate | ( | uint32_t | lmepId, |
ofdpaOamOdDmConfig_t * | config | ||
) |
Create an OAM Performance Measurement OnDemand Delay Measurement entry.
[in] | lmepId | unique identifier for the MEP entry |
[in] | config | structure containing configuration parameters |
OFDPA_E_NONE | entry successfully created |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_ERROR | configuration error |
OFDPA_E_FAIL | failure occurred during creation |
OFDPA_E_FULL | maximum number of entries already created |
OFDPA_E_EXISTS | an entry with the specified indices already created |
OFDPA_ERROR_t ofdpaOamOdDmDelete | ( | uint32_t | lmepId | ) |
Delete an OAM Performance Measurement OnDemand Delay Measurement entry.
[in] | lmepId | unique identifier for the MEP entry |
OFDPA_E_NONE | entry successfully deleted |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_NOT_FOUND | entry with identifier not configured |
OFDPA_E_FAIL | failure occurred during deletion |
OFDPA_ERROR_t ofdpaOamOdDmGet | ( | uint32_t | lmepId, |
ofdpaOamOdDmConfig_t * | config, | ||
ofdpaOamOdDmStatus_t * | status | ||
) |
Retrieve OAM Performance Measurement OnDemand Delay Measurement configuration and/or status.
[in] | lmepId | unique identifier for the MEP entry |
[out] | config | structure containing configuration (optional) |
[out] | status | structure containing status (optional) |
OFDPA_E_NONE | data successfully retrieved |
OFDPA_E_NOT_FOUND | entry with identifier not configured |
OFDPA_ERROR_t ofdpaOamOdDmStart | ( | uint32_t | lmepId | ) |
Start OAM Performance Measurement OnDemand Delay Measurement session.
[in] | lmepId | unique identifier for the MEP entry |
OFDPA_E_NONE | data successfully retrieved |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_NOT_FOUND | entry with identifier not configured |
OFDPA_ERROR_t ofdpaOamOdDmStop | ( | uint32_t | lmepId | ) |
Stop OAM Performance Measurement OnDemand Delay Measurement session.
[in] | lmepId | unique identifier for the MEP entry |
OFDPA_E_NONE | data successfully retrieved |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_NOT_FOUND | entry with identifier not configured |
OFDPA_ERROR_t ofdpaOamOdLmCountersGet | ( | uint32_t | lmepId, |
ofdpaOamOdLmSnapshot_t * | counters | ||
) |
Retrieve OAM Performance Measurement OnDemand Loss Measurement counters.
[in] | lmepId | unique identifier for the MEP entry |
[out] | counters | structure containing counters |
OFDPA_E_NONE | data successfully retrieved |
OFDPA_E_NOT_FOUND | entry with identifier not configured |
OFDPA_ERROR_t ofdpaOamOdLmCreate | ( | uint32_t | lmepId, |
ofdpaOamOdLmConfig_t * | config | ||
) |
Create an OAM Performance Measurement OnDemand Loss Measurement entry.
[in] | lmepId | unique identifier for the MEP entry |
[in] | config | structure containing configuration parameters |
OFDPA_E_NONE | entry successfully created |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_ERROR | configuration error |
OFDPA_E_FAIL | failure occurred during creation |
OFDPA_E_FULL | maximum number of entries already created |
OFDPA_E_EXISTS | an entry with the specified indices already created |
OFDPA_ERROR_t ofdpaOamOdLmDelete | ( | uint32_t | lmepId | ) |
Delete an OAM Performance Measurement OnDemand Loss Measurement entry.
[in] | lmepId | unique identifier for the MEP entry |
OFDPA_E_NONE | entry successfully deleted |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_NOT_FOUND | entry with identifier not configured |
OFDPA_E_FAIL | failure occurred during deletion |
OFDPA_ERROR_t ofdpaOamOdLmGet | ( | uint32_t | lmepId, |
ofdpaOamOdLmConfig_t * | config, | ||
ofdpaOamOdLmStatus_t * | status | ||
) |
Retrieve OAM Performance Measurement Ondemand Loss Measurement configuration and/or status.
[in] | lmepId | unique identifier for the MEP entry |
[out] | config | structure containing configuration (optional) |
[out] | status | structure containing status (optional) |
OFDPA_E_NONE | data successfully retrieved |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_NOT_FOUND | entry with identifier not configured |
OFDPA_ERROR_t ofdpaOamOdLmStart | ( | uint32_t | lmepId | ) |
Start OAM Performance Measurement OnDemand Loss Measurement session.
[in] | lmepId | unique identifier for the MEP entry |
OFDPA_E_NONE | data successfully retrieved |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_NOT_FOUND | entry with identifier not configured |
OFDPA_ERROR_t ofdpaOamOdLmStop | ( | uint32_t | lmepId | ) |
Stop OAM Performance Measurement OnDemand Loss Measurement session.
[in] | lmepId | unique identifier for the MEP entry |
OFDPA_E_NONE | data successfully retrieved |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_NOT_FOUND | entry with identifier not configured |
OFDPA_ERROR_t ofdpaOamOnDemandDmStart | ( | uint32_t | lmepId, |
ofdpaOamOdDmConfig_t * | config | ||
) |
Start an on demand Delay Measurement session.
[in] | lmepId | unique identifier for the MEP entry |
[in] | config | data to configure the session |
OFDPA_E_NONE | next identifier found |
OFDPA_E_FAIL | no next identifier found |
OFDPA_ERROR_t ofdpaOamOnDemandLmStart | ( | uint32_t | lmepId, |
ofdpaOamOdLmConfig_t * | config | ||
) |
Start an on demand Loss Measurement session.
[in] | lmepId | unique identifier for the MEP entry |
[in] | config | data to configure the session |
OFDPA_E_NONE | next identifier found |
OFDPA_E_FAIL | no next identifier found |
OFDPA_ERROR_t ofdpaOamProDmCountersGet | ( | uint32_t | lmepId, |
ofdpaOamProDmCounters_t * | counters | ||
) |
Retrieve OAM Performance Measurement Proactive Delay Measurement counters.
[in] | lmepId | unique identifier for the MEP entry |
[out] | counters | structure containing counters |
OFDPA_E_NONE | data successfully retrieved |
OFDPA_E_NOT_FOUND | entry with identifier not configured |
OFDPA_ERROR_t ofdpaOamProDmCreate | ( | uint32_t | lmepId, |
ofdpaOamProDmConfig_t * | config | ||
) |
Create an OAM Performance Measurement Proactive Delay Measurement entry.
[in] | lmepId | unique identifier for the MEP entry |
[in] | config | structure containing configuration parameters |
OFDPA_E_NONE | entry successfully created |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_ERROR | configuration error |
OFDPA_E_FAIL | failure occurred during creation |
OFDPA_E_FULL | maximum number of entries already created |
OFDPA_E_EXISTS | an entry with the specified indices already created |
OFDPA_ERROR_t ofdpaOamProDmDelete | ( | uint32_t | lmepId | ) |
Delete an OAM Performance Measurement Proactive Delay Measurement entry.
[in] | lmepId | unique identifier for the MEP entry |
OFDPA_E_NONE | entry successfully deleted |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_NOT_FOUND | entry with identifier not configured |
OFDPA_E_FAIL | failure occurred during deletion |
OFDPA_ERROR_t ofdpaOamProDmGet | ( | uint32_t | lmepId, |
ofdpaOamProDmConfig_t * | config, | ||
ofdpaOamProDmStatus_t * | status | ||
) |
Retrieve OAM Performance Measurement Proactive Delay Measurement configuration and/or status.
[in] | lmepId | unique identifier for the MEP entry |
[out] | config | structure containing configuration (optional) |
[out] | status | structure containing status (optional) |
OFDPA_E_NONE | data successfully retrieved |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_NOT_FOUND | entry with identifier not configured |
OFDPA_ERROR_t ofdpaOamProDmStart | ( | uint32_t | lmepId | ) |
Start OAM Performance Measurement Proactive Delay Measurement session.
[in] | lmepId | unique identifier for the MEP entry |
OFDPA_E_NONE | data successfully retrieved |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_NOT_FOUND | entry with identifier not configured |
OFDPA_ERROR_t ofdpaOamProDmStop | ( | uint32_t | lmepId | ) |
Stop OAM Performance Measurement Proactive Delay Measurement session.
[in] | lmepId | unique identifier for the MEP entry |
OFDPA_E_NONE | data successfully retrieved |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_NOT_FOUND | entry with identifier not configured |
OFDPA_ERROR_t ofdpaOamProLmCountersGet | ( | uint32_t | lmepId, |
ofdpaOamProLmCounters_t * | counters | ||
) |
Retrieve OAM Performance Measurement Proactive Loss Measurement counters.
[in] | lmepId | unique identifier for the MEP entry |
[out] | counters | structure containing counters |
OFDPA_E_NONE | data successfully retrieved |
OFDPA_E_NOT_FOUND | entry with identifier not configured |
OFDPA_ERROR_t ofdpaOamProLmCreate | ( | uint32_t | lmepId, |
ofdpaOamProLmConfig_t * | config | ||
) |
Create an OAM Performance Measurement Proactive Loss Measurement entry.
[in] | lmepId | unique identifier for the MEP entry |
[in] | config | structure containing configuration parameters |
OFDPA_E_NONE | entry successfully created |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_ERROR | configuration error |
OFDPA_E_FAIL | failure occurred during creation |
OFDPA_E_FULL | maximum number of entries already created |
OFDPA_E_EXISTS | an entry with the specified indices already created |
OFDPA_ERROR_t ofdpaOamProLmDelete | ( | uint32_t | lmepId | ) |
Delete an OAM Performance Measurement Proactive Loss Measurement entry.
[in] | lmepId | unique identifier for the MEP entry |
OFDPA_E_NONE | entry successfully deleted |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_NOT_FOUND | entry with identifier not configured |
OFDPA_E_FAIL | failure occurred during deletion |
OFDPA_ERROR_t ofdpaOamProLmDisable | ( | uint32_t | lmepId | ) |
Disable OAM Performance Measurement Proactive Loss Measurement session.
[in] | lmepId | unique identifier for the MEP entry |
OFDPA_E_NONE | data successfully retrieved |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_NOT_FOUND | entry with identifier not configured |
OFDPA_ERROR_t ofdpaOamProLmEnable | ( | uint32_t | lmepId | ) |
Enable OAM Performance Measurement Proactive Loss Measurement session.
[in] | lmepId | unique identifier for the MEP entry |
OFDPA_E_NONE | data successfully retrieved |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_NOT_FOUND | entry with identifier not configured |
OFDPA_ERROR_t ofdpaOamProLmGet | ( | uint32_t | lmepId, |
ofdpaOamProLmConfig_t * | config, | ||
ofdpaOamProLmStatus_t * | status | ||
) |
Retrieve OAM Performance Measurement Proactive Loss Measurement configuration and/or status.
[in] | lmepId | unique identifier for the MEP entry |
[out] | config | structure containing configuration (optional) |
[out] | status | structure containing status (optional) |
OFDPA_E_NONE | data successfully retrieved |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_NOT_FOUND | entry with identifier not configured |
OFDPA_ERROR_t ofdpaOamRemoteMpCreate | ( | uint32_t | remoteMpId, |
ofdpaOamRemoteMpConfig_t * | config | ||
) |
Create an OAM Remote MP entry.
[in] | remoteMpId | unique identifier for the remote MP entry |
[in] | config | structure containing configuration parameters |
OFDPA_E_NONE | entry successfully created |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_ERROR | configuration error |
OFDPA_E_FAIL | failure occurred during creation |
OFDPA_E_FULL | maximum number of entries already created |
OFDPA_E_EXISTS | an entry with the specified indices already created |
OFDPA_ERROR_t ofdpaOamRemoteMpDelete | ( | uint32_t | remoteMpId | ) |
Delete an OAM Remote MP entry.
[in] | remoteMpId | unique identifier for the remote MP entry |
OFDPA_E_NONE | entry successfully deleted |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_NOT_FOUND | entry with identifier not configured |
OFDPA_E_FAIL | failure occurred during deletion |
OFDPA_ERROR_t ofdpaOamRemoteMpGet | ( | uint32_t | remoteMpId, |
ofdpaOamRemoteMpConfig_t * | config | ||
) |
Retrieve OAM Remote MP.
[in] | remoteMpId | unique identifier for the remote MP entry |
[out] | config | structure containing configuration (optional) |
OFDPA_E_NONE | data successfully retrieved |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_NOT_FOUND | entry with identifier not configured |
OFDPA_ERROR_t ofdpaOamRemoteMpNextGet | ( | uint32_t | remoteMpId, |
uint32_t * | nextRemoteMpId | ||
) |
Return the Remote MP identifier, if any, for the entry after the one specified for the given local MEP ID.
[in] | remoteMpId | unique identifier for the remote MP entry |
[out] | nextRemoteMpId | unique identifier for the next remote MP entry |
OFDPA_E_NONE | next identifier found |
OFDPA_E_FAIL | no next identifier found |
OFDPA_ERROR_t ofdpaPktReceive | ( | struct timeval * | timeout, |
ofdpaPacket_t * | pkt | ||
) |
The client calls this function to retrieve a single packet that the hardware has punted to the CPU.
[in] | timeout | If NULL, the function blocks until a packet is received. If the timeout value is zero, the function returns immediately, whether or not a packet is available. The return code indicates whether a packet has been received. If the timeout value is non-zero, the function blocks up to this length of time if a packet is not immediately available. Again, the return code indicates whether a packet was received. |
[out] | pkt | A packet structure allocated by the caller and used to return a received packet. The packet structure includes some metadata to indicate properties like why the packet came to the CPU and the ingress port. On input, the caller must set pkt->pktData.size to the size in bytes of the buffer allocated to hold the received packet. On output, pkt->pktData.size specifies the length of the packet in bytes. pkt->pktData.pstart on input must point to a buffer large enough to hold the largest possible received packet (OFDPA_MAX_PKT_LEN). This function copies the packet into this buffer, starting with the Ethernet header (the destination MAC address). The trailing Ethernet CRC is not included. |
OFDPA_E_NONE | if a packet is returned |
OFDPA_E_TIMEOUT | if no packet is available within the specified timeout |
OFDPA_E_PARAM | if an input parameter is invalid (e.g., pkt is NULL) |
OFDPA_E_FAIL | for any other failure |
OFDPA_ERROR_t ofdpaPktSend | ( | ofdpa_buffdesc * | pkt, |
uint32_t | flags, | ||
uint32_t | outPortNum, | ||
uint32_t | inPortNum | ||
) |
Packet out API.
Sends a packet out a switch port
[in] | pkt | packet |
[in] | flags | OFDPA_PACKET_LOOKUP_TX: Indicates that packet must go through a hardware lookup starting from the first table in the pipeline. The srcIfNum is used as the ingress port in table lookups. |
If this flag is not set, then the packet is sent unmodified out of the outIfNum
[out] | outPortNum | Output port. Can be physical or logical or reserved |
[in] | inPortNum | Input port. Indicates the interface on which packet was originally received. |
OFDPA_E_NONE | if packet is transmitted successfully |
OFDPA_E_PARAM | if an input parameter is bad |
OFDPA_E_NOT_FOUND | if the input or output port parameter is bad |
OFDPA_E_INTERNAL | if transmit DMA buffer has not been allocated |
OFDPA_ERROR_t ofdpaPortAdvertiseFeatureSet | ( | uint32_t | portNum, |
uint32_t | advertise | ||
) |
Set the port features that can be advertized durng Auto-Negotiation.
[in] | portNum | port number |
[in] | advertise | port features |
OFDPA_E_NONE | port features set successfully |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_NOT_FOUND | port not found |
OFDPA_ERROR_t ofdpaPortConfigGet | ( | uint32_t | portNum, |
uint32_t * | config | ||
) |
Get the port administrative state.
[in] | portNum | port number |
[out] | config | port administrative state |
OFDPA_E_NONE | port admin state returned successfully |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_NOT_FOUND | port not found |
OFDPA_ERROR_t ofdpaPortConfigSet | ( | uint32_t | portNum, |
OFDPA_PORT_CONFIG_t | config | ||
) |
Set the port administrative state.
[in] | portNum | port number |
[in] | config | port administrative state |
OFDPA_E_NONE | port admin state set successfully |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_NOT_FOUND | port not found |
OFDPA_ERROR_t ofdpaPortCurrSpeedGet | ( | uint32_t | portNum, |
uint32_t * | currSpeed | ||
) |
Get the port current speed.
[in] | portNum | port number |
[out] | currSpeed | port current speed |
OFDPA_E_NONE | port current speed returned successfully |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_NOT_FOUND | port not found |
OFDPA_ERROR_t ofdpaPortEventGet | ( | ofdpaPortEvent_t * | eventData | ) |
Get the port event.
[in,out] | eventData | event data |
OFDPA_E_NONE | port event data returned successfully |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_NOT_FOUND | next port event not found |
OFDPA_ERROR_t ofdpaPortEventNextGet | ( | ofdpaPortEvent_t * | eventData | ) |
Get the next port event.
[in,out] | eventData | event data |
OFDPA_E_NONE | port event data returned successfully |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_NOT_FOUND | next port event not found |
OFDPA_ERROR_t ofdpaPortFeatureGet | ( | uint32_t | portNum, |
ofdpaPortFeature_t * | feature | ||
) |
Get the port features.
[in] | portNum | port number |
[out] | feature | port features |
OFDPA_E_NONE | port features returned successfully |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_NOT_FOUND | port not found |
void ofdpaPortIndexGet | ( | uint32_t | portNum, |
uint32_t * | index | ||
) |
Get the port index encoded in a port number value.
[in] | portNum | port number value |
[out] | index | port index |
void ofdpaPortIndexSet | ( | uint32_t * | portNum, |
uint32_t | index | ||
) |
Encode the port index in a port number.
[in,out] | portNum | port number storage |
[in] | index | port index |
OFDPA_ERROR_t ofdpaPortMacGet | ( | uint32_t | portNum, |
ofdpaMacAddr_t * | mac | ||
) |
Get the MAC address of the given port.
[in] | portNum | current port |
[out] | mac | MAC address of the port |
OFDPA_E_NONE | MAC address returned successfully |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_NOT_FOUND | port not found |
OFDPA_ERROR_t ofdpaPortMaxSpeedGet | ( | uint32_t | portNum, |
uint32_t * | maxSpeed | ||
) |
Get the port maximum speed.
[in] | portNum | port number |
[out] | maxSpeed | port maximum speed |
OFDPA_E_NONE | port max speed returned successfully |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_NOT_FOUND | port not found |
OFDPA_ERROR_t ofdpaPortNameGet | ( | uint32_t | portNum, |
ofdpa_buffdesc * | name | ||
) |
Get the port name.
[in] | portNum | port number |
[out] | name | port name |
OFDPA_E_NONE | port name returned successfully |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_NOT_FOUND | port not found |
OFDPA_ERROR_t ofdpaPortNextGet | ( | uint32_t | portNum, |
uint32_t * | nextPortNum | ||
) |
Get the next port from the port table.
[in] | portNum | current port |
[out] | nextPortNum | next port |
OFDPA_E_NONE | next port returned successfully |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_FAIL | no more ports to be returned |
OFDPA_ERROR_t ofdpaPortStateGet | ( | uint32_t | portNum, |
uint32_t * | state | ||
) |
Get the port link state.
[in] | portNum | port number |
[out] | state | port link state |
OFDPA_E_NONE | port link state returned successfully |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_NOT_FOUND | port not found |
OFDPA_ERROR_t ofdpaPortStatsClear | ( | uint32_t | portNum | ) |
Clear port statistics.
[in] | portNum | port number |
OFDPA_E_NONE | port statistics cleared successfully |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_NOT_FOUND | port not found |
OFDPA_E_INTERNAL | internal error |
OFDPA_ERROR_t ofdpaPortStatsGet | ( | uint32_t | portNum, |
ofdpaPortStats_t * | stats | ||
) |
Get port statistics.
[in] | portNum | port number |
[out] | stats | port statistics |
OFDPA_E_NONE | port statistics returned successfully |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_NOT_FOUND | port not found |
OFDPA_E_UNAVAIL | counter not available |
OFDPA_E_INTERNAL | internal error |
void ofdpaPortTypeGet | ( | uint32_t | portNum, |
uint32_t * | type | ||
) |
Get the port type encoded in a port number value.
[in] | portNum | port number value |
[out] | type | port type |
void ofdpaPortTypeSet | ( | uint32_t * | portNum, |
uint32_t | type | ||
) |
Encode the port type in a port number value.
[in,out] | portNum | port number storage |
[in] | type | port type |
const char* ofdpaQosColorDecode | ( | OFDPA_QOS_COLORS_t | color | ) |
Returns the a string suitable for display to the user representing the color value.
[in] | color | value representing QoS color |
pointer | to a string containing the color string |
OFDPA_ERROR_t ofdpaQueueRateGet | ( | uint32_t | portNum, |
uint32_t | queueId, | ||
uint32_t * | minRate, | ||
uint32_t * | maxRate | ||
) |
The client calls this function to get minimum and maximum bandwidth on a queue on a given port.
[in] | portNum | Port number |
[in] | queueId | Queue ID |
[out] | minRate | Minimum bandwidth |
[out] | maxRate | Maximum bandwidth |
OFDPA_E_NONE | if minimum and maximum bandwidths of a queue are returned successfully on a given port. |
OFDPA_E_PARAM | if an input parameter is invalid |
OFDPA_E_NOT_FOUND | the port does not exist. |
OFDPA_ERROR_t ofdpaQueueRateSet | ( | uint32_t | portNum, |
uint32_t | queueId, | ||
uint32_t | minRate, | ||
uint32_t | maxRate | ||
) |
The client calls this function to set minimum and maximum bandwidth on a queue on a given port.
[in] | portNum | Port number |
[in] | queueId | Queue ID |
[in] | minRate | Minimum bandwidth |
[in] | maxRate | Maximum bandwidth |
OFDPA_E_NONE | if minimum and maximum bandwidths of a queue are set successfully on a given port. |
OFDPA_E_PARAM | if an input parameter is invalid. |
OFDPA_E_NOT_FOUND | the port does not exist. |
OFDPA_ERROR_t ofdpaQueueStatsClear | ( | uint32_t | portNum, |
uint32_t | queueId | ||
) |
The client calls this function to clear all the statistics of a queue on a port.
[in] | portNum | Port number |
[in] | queueId | Queue ID |
OFDPA_E_NONE | if the port queue statistics are cleared. |
OFDPA_E_PARAM | if an input parameter is invalid. |
OFDPA_E_NOT_FOUND | the port does not exist. |
OFDPA_ERROR_t ofdpaQueueStatsGet | ( | uint32_t | portNum, |
uint32_t | queueId, | ||
ofdpaPortQueueStats_t * | stats | ||
) |
The client calls this function to get the statistics of a queue on a port.
[in] | portNum | Port number |
[in] | queueId | Queue ID |
[out] | stats | Queue Statistics on a given port |
OFDPA_E_NONE | if the port queue statistics are returned. |
OFDPA_E_PARAM | if an input parameter is invalid. |
OFDPA_E_NOT_FOUND | the port does not exist. |
OFDPA_ERROR_t ofdpaRemarkActionAdd | ( | ofdpaRemarkActionEntry_t * | remarkEntry | ) |
Add remark action entry.
[in] | remarkEntry | structure containing remark entry parameters |
OFDPA_E_NONE | remark entry added successfully |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_FULL | Remark Action table full |
OFDPA_E_EXISTS | remark entry exists |
OFDPA_E_INTERNAL | internal error |
OFDPA_ERROR_t ofdpaRemarkActionDelete | ( | ofdpaRemarkActionEntry_t * | remarkEntry | ) |
Delete remark action entry.
[in] | remarkEntry | structure containing remark entry parameters |
OFDPA_E_NONE | remark entry deleted successfully |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_NOT_FOUND | remark entry not found |
OFDPA_E_FAIL | failure; other errors |
OFDPA_ERROR_t ofdpaRemarkActionEntryGet | ( | ofdpaRemarkActionEntry_t * | remarkEntry | ) |
Get remark action entry.
[in,out] | remarkEntry | remark entry |
OFDPA_E_NONE | remark entry returned successfully |
OFDPA_E_NOT_FOUND | remark entry not found |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_ERROR_t ofdpaRemarkEntryNextGet | ( | ofdpaRemarkActionEntry_t * | remarkEntry, |
ofdpaRemarkActionEntry_t * | nextEntry | ||
) |
Retrieve the next remark entry.
This API allows the client to walk the entries in a remark table. In order to get the first entry in a remark table, the client calls with all parameters set to zero. Table entries are walked in the order the table is indexed. If there are no entries in the table after the entry specified, a return code indicates the end of the remark table has been reached
[in] | remarkEntry | structure containing flow entry parameters |
[out] | nextEntry | structure containing the next remark table entry, if any |
OFDPA_E_NONE | the next flow entry was found and returned |
OFDPA_E_PARAM | error in flow entry parameters passed to function |
OFDPA_E_NOT_FOUND | no next flow entry found |
OFDPA_ERROR_t ofdpaSourceMacLearningGet | ( | OFDPA_CONTROL_t * | mode, |
ofdpaSrcMacLearnModeCfg_t * | srcMacLearnModeCfg | ||
) |
The client calls this function to get the Source Mac Learning Mode with other config parameters.
[out] | mode | Source MAC Learning Mode |
[out] | srcMacLearnModeCfg | Config structure holding other parameters of Source MAC Learning |
OFDPA_E_NONE | if Source MAC Learning Mode is returned successfully on controller port. |
OFDPA_E_PARAM | if an input parameter is invalid. |
OFDPA_ERROR_t ofdpaSourceMacLearningSet | ( | OFDPA_CONTROL_t | mode, |
ofdpaSrcMacLearnModeCfg_t * | srcMacLearnModeCfg | ||
) |
The client calls this function to set the Source Mac Learning Mode with other config parameters.
[in] | mode | Source MAC Learning Mode |
[in] | srcMacLearnModeCfg | Config structure holding other parameters of Source MAC Learning |
OFDPA_E_NONE | if Source MAC Learning Mode is set successfully. |
OFDPA_E_UNAVAIL | if any of the learning methods (Local/Controller managed) is unsupported. |
OFDPA_E_PARAM | if an input parameter is invalid. |
OFDPA_ERROR_t ofdpaTunnelEcmpNextHopGroupCreate | ( | uint32_t | ecmpNextHopGroupId, |
ofdpaTunnelEcmpNextHopGroupConfig_t * | config | ||
) |
Create a tunnel ECMP next hop group entry.
[in] | ecmpNextHopGroupId | unique identifier for the entry |
[in] | config | structure containing configuration parameters |
OFDPA_E_NONE | entry successfully created |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_ERROR | configuration error |
OFDPA_E_FAIL | failure occurred during entry creation |
OFDPA_E_FULL | maximum number of entries already created |
OFDPA_E_EXISTS | an entry with the specified identifier already created |
OFDPA_ERROR_t ofdpaTunnelEcmpNextHopGroupDelete | ( | uint32_t | ecmpNextHopGroupId | ) |
Delete a tunnel ECMP next hop group entry.
[in] | ecmpNextHopGroupId | unique identifier for the entry |
OFDPA_E_NONE | entry successfully deleted |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_NOT_FOUND | entry with identifier not configured |
OFDPA_E_FAIL | failure occurred during deletion, reasons include attempting to delete an entry that is being referenced |
OFDPA_ERROR_t ofdpaTunnelEcmpNextHopGroupGet | ( | uint32_t | ecmpNextHopGroupId, |
ofdpaTunnelEcmpNextHopGroupConfig_t * | config, | ||
ofdpaTunnelEcmpNextHopGroupStatus_t * | status | ||
) |
Retrieve tunnel ECMP next hop group configuration and/or status.
[in] | ecmpNextHopGroupId | unique identifier for the entry |
[out] | config | structure containing ECMP tunnel next hop configuration (optional) |
[out] | status | structure containing ECMP tunnel next hop status (optional) |
OFDPA_E_NONE | data successfully retrieved |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_NOT_FOUND | entry with identifier not configured |
OFDPA_ERROR_t ofdpaTunnelEcmpNextHopGroupMaxMembersGet | ( | uint32_t * | maxMemberCount | ) |
Return the number of ECMP next hop group members supported by the switch.
[out] | maxMemberCount | maximum members supported in an ECMP next hop group |
OFDPA_E_NONE | max count returned |
OFDPA_E_PARAM | NULL pointer passed |
OFDPA_ERROR_t ofdpaTunnelEcmpNextHopGroupMemberAdd | ( | uint32_t | ecmpNextHopGroupId, |
uint32_t | nextHopId | ||
) |
Adds a next hop member to an ECMP next hop group entry.
This is done by adding any entry to the ECMP next hop group member table. The index into this table is the ecmpNextHopGroupId, nextHopId tuple.
[in] | ecmpNextHopGroupId | ECMP next hop group entry identifier |
[in] | nextHopId | next hop entry identifier |
OFDPA_E_NONE | member next hop successfully added |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_ERROR | configuration error, includes ECMP tunnel next hop or next hop entry not found or other constraint violation |
OFDPA_E_FAIL | failure occurred while adding next hop to ECMP next hop group |
OFDPA_E_FULL | maximum number of member next hops already added |
OFDPA_E_EXISTS | an entry with the specified identifier combination already added |
OFDPA_ERROR_t ofdpaTunnelEcmpNextHopGroupMemberDelete | ( | uint32_t | ecmpNextHopGroupId, |
uint32_t | nextHopId | ||
) |
Adds a next hop member to an ECMP next hop group entry.
This is done by adding any entry to the ECMP next hop group member table. The index into this table is the ecmpNextHopGroupId, nextHopId tuple.
[in] | ecmpNextHopGroupId | ECMP next hop group entry identifier |
[in] | nextHopId | next hop entry identifier |
OFDPA_E_NONE | next hop member successfully deleted |
OFDPA_E_NOT_FOUND | next hop member is not configured in ECMP next hop group |
OFDPA_ERROR_t ofdpaTunnelEcmpNextHopGroupMemberGet | ( | uint32_t | ecmpNextHopListGroupId, |
uint32_t | nextHopId | ||
) |
Test whether a next hop is a member in the specified ECMP next hop group.
[in] | ecmpNextHopListGroupId | ECMP next hop group entry identifier |
[in] | nextHopId | next hop entry identifier |
OFDPA_E_NONE | next hop is a member of ECMP next hop group |
OFDPA_E_NOT_FOUND | next hop is not a member of ECMP next hop group |
OFDPA_ERROR_t ofdpaTunnelEcmpNextHopGroupMemberNextGet | ( | uint32_t | ecmpNextHopListGroupId, |
uint32_t | nextHopId, | ||
uint32_t * | nextNextHopId | ||
) |
Gets the next member next hop in the ECMP next hop group.
[in] | ecmpNextHopListGroupId | ECMP next hop group entry identifier |
[in] | nextHopId | next hop entry identifier |
[out] | nextNextHopId | next next hop entry identifier, if any |
OFDPA_E_NONE | next entry found |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_NOT_FOUND | no next entry found |
OFDPA_ERROR_t ofdpaTunnelEcmpNextHopGroupNextGet | ( | uint32_t | ecmpNextHopGroupId, |
uint32_t * | nextEcmpNextHopGroupId | ||
) |
Return the ECMP tunnel next hop group identifier, if any, for the entry after the one specified.
[in] | ecmpNextHopGroupId | unique identifier for the entry |
[out] | nextEcmpNextHopGroupId | unique identifier for the next entry |
OFDPA_E_NONE | next identifier found |
OFDPA_E_FAIL | no next identifier found |
void ofdpaTunnelIdIndexGet | ( | uint32_t | tunnelId, |
uint32_t * | index | ||
) |
Get the tunnel index encoded in a tunnel ID value.
[in] | tunnelId | tunnel ID value |
[out] | index | tunnel index |
void ofdpaTunnelIdIndexSet | ( | uint32_t * | tunnelId, |
uint32_t | index | ||
) |
Encode the tunnel index in a tunnelId number.
[in,out] | tunnelId | tunnel ID storage |
[in] | index | tunnel index |
void ofdpaTunnelIdTypeGet | ( | uint32_t | tunnelId, |
uint32_t * | type | ||
) |
Get the tunnel type encoded in a tunnel ID value.
[in] | tunnelId | tunnel ID value |
[out] | type | tunnel type |
void ofdpaTunnelIdTypeSet | ( | uint32_t * | tunnelId, |
uint32_t | type | ||
) |
Encode the tunnel type in a tunnel ID value.
[in,out] | tunnelId | tunnel ID storage |
[in] | type | tunnel type |
OFDPA_ERROR_t ofdpaTunnelNextHopCreate | ( | uint32_t | nextHopId, |
ofdpaTunnelNextHopConfig_t * | config | ||
) |
Create a tunnel next hop entry.
[in] | nextHopId | unique identifier for the entry |
[in] | config | structure containing configuration parameters |
OFDPA_E_NONE | entry successfully created |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_ERROR | configuration error |
OFDPA_E_FAIL | failure occurred during entry creation |
OFDPA_E_FULL | maximum number of entries already created |
OFDPA_E_EXISTS | an entry with the specified identifier already created |
OFDPA_ERROR_t ofdpaTunnelNextHopDelete | ( | uint32_t | nextHopId | ) |
Delete a tunnel next hop entry.
[in] | nextHopId | unique identifier for the entry |
OFDPA_E_NONE | entry successfully deleted |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_NOT_FOUND | entry with identifier not configured |
OFDPA_E_FAIL | failure occurred during deletion, reasons include attempting to delete an entry that is being referenced |
OFDPA_ERROR_t ofdpaTunnelNextHopGet | ( | uint32_t | nextHopId, |
ofdpaTunnelNextHopConfig_t * | config, | ||
ofdpaTunnelNextHopStatus_t * | status | ||
) |
Retrieve tunnel next hop configuration and/or status.
[in] | nextHopId | unique identifier for the entry |
[out] | config | structure containing tunnel next hop configuration (optional) |
[out] | status | structure containing tunnel next hop status (optional) |
OFDPA_E_NONE | data successfully retrieved |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_NOT_FOUND | entry with identifier not configured |
OFDPA_ERROR_t ofdpaTunnelNextHopModify | ( | uint32_t | nextHopId, |
ofdpaTunnelNextHopConfig_t * | config | ||
) |
Modify a tunnel next hop entry.
This allows updating the configuration data of a next hop while it is referenced by other configuration. A referenced entry cannot be deleted but it can be modified.
[in] | nextHopId | unique identifier for an existing entry |
[in] | config | structure containing new configuration parameters |
OFDPA_E_NONE | entry successfully modified |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_ERROR | configuration error, including attempting to modify next hop in a manner not allowed. See notes. |
OFDPA_E_FAIL | failure occurred during entry modification |
OFDPA_E_NOT_FOUND | entry with identifier not configured |
OFDPA_ERROR_t ofdpaTunnelNextHopNextGet | ( | uint32_t | nextHopId, |
uint32_t * | nextNextHopId | ||
) |
Return the tunnel next hop identifier, if any, for the entry after the one specified.
[in] | nextHopId | unique identifier for the next hop |
[out] | nextNextHopId | unique identifier for the next next hop entry |
OFDPA_E_NONE | next identifier found |
OFDPA_E_FAIL | no next identifier found |
OFDPA_ERROR_t ofdpaTunnelPortCreate | ( | uint32_t | portNum, |
ofdpa_buffdesc * | name, | ||
ofdpaTunnelPortConfig_t * | config | ||
) |
Create a tunnel logical port.
[in] | portNum | unique identifier for the port within the switch |
[in] | name | human readable name for the interface |
[in] | config | structure containing tunnel logical port parameters |
OFDPA_E_NONE | logical port successfully created |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_ERROR | internal error |
OFDPA_E_FAIL | failure occurred during logical port creation |
OFDPA_E_FULL | maximum number of logical ports already created |
OFDPA_E_EXISTS | an entry with the specified portnum already created |
OFDPA_ERROR_t ofdpaTunnelPortDelete | ( | uint32_t | portNum | ) |
Delete a tunnel logical port.
[in] | portNum | unique identifier for the port within the switch |
OFDPA_E_NONE | logical port successfully deleted |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_NOT_FOUND | logical port with identifier not configured |
OFDPA_E_FAIL | failure occurred during logical port deletion |
OFDPA_ERROR_t ofdpaTunnelPortGet | ( | uint32_t | portNum, |
ofdpaTunnelPortConfig_t * | config, | ||
ofdpaTunnelPortStatus_t * | status | ||
) |
Retrieve tunnel logical port configuration and/or status.
[in] | portNum | unique identifier for the port within the switch |
[out] | config | structure containing tunnel logical port configuration (optional) |
[out] | status | structure containing tunnel logical port status (optional) |
OFDPA_E_NONE | logical port data successfully retrieved |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_NOT_FOUND | logical port with identifier not configured |
OFDPA_ERROR_t ofdpaTunnelPortNextGet | ( | uint32_t | portNum, |
uint32_t * | nextPortNum | ||
) |
Return the tunnel logical port identifier, if any, for the logical port after the one specified in the logical port table.
[in] | portNum | unique identifier for the port within the switch |
[out] | nextPortNum | unique identifier for the next logical port within the switch |
OFDPA_E_NONE | next logical port identifier found |
OFDPA_E_FAIL | no next logical port identifier found |
OFDPA_ERROR_t ofdpaTunnelPortTenantAdd | ( | uint32_t | portNum, |
uint32_t | tunnelId | ||
) |
Adds a tenant reference to a logical port tunnel entry.
This is done by adding any entry to the tunnel port tenant table. The index into this table is the portNum, tunnelId tuple.
[in] | portNum | unique identifier for the port within the switch |
[in] | tunnelId | tenant entry identifier |
OFDPA_E_NONE | logical port to tenant association successfully added |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_ERROR | configuration error, includes logical port or tenant entry not found or other constraint violation |
OFDPA_E_FAIL | failure occurred during logical port association with tenant |
OFDPA_E_FULL | maximum number of associations already created |
OFDPA_E_EXISTS | an entry with the specified portnum and tunnelId already added |
OFDPA_ERROR_t ofdpaTunnelPortTenantDelete | ( | uint32_t | portNum, |
uint32_t | tunnelId | ||
) |
Deletes a tenant reference to a logical port tunnel entry.
[in] | portNum | unique identifier for the port within the switch |
[in] | tunnelId | tenant entry identifier |
OFDPA_E_NONE | logical port to tenant association successfully deleted |
OFDPA_E_FAIL | failure occurred deleting logical port association with tenant, including the entry not being found |
OFDPA_ERROR_t ofdpaTunnelPortTenantGet | ( | uint32_t | portNum, |
uint32_t | tunnelId, | ||
ofdpaTunnelPortTenantStatus_t * | status | ||
) |
Test whether a tenant reference to a logical port exists for the port and tenant combination.
Optionally retrieve status of entry.
[in] | portNum | unique identifier for the port within the switch |
[in] | tunnelId | tenant entry identifier |
[out] | status | structure containing tunnel logical port/tenant status (optional) |
OFDPA_E_NONE | logical port to tenant association successfully deleted |
OFDPA_E_NOT_FOUND | logical port to tenant association is not configured |
OFDPA_ERROR_t ofdpaTunnelPortTenantNextGet | ( | uint32_t | portNum, |
uint32_t | tunnelId, | ||
uint32_t * | nextTunnelId | ||
) |
Gets the next logical port tunnel entry after the port and tenant identified.
Iteration stops after returning the tunnelId for the last tenant associated with the logical port.
[in] | portNum | unique identifier for the port within the switch |
[in] | tunnelId | tenant entry identifier |
[out] | nextTunnelId | next tenant entry identifier, if any |
OFDPA_E_NONE | next logical port tunnel identifier found |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_NOT_FOUND | no next logical port tunnel identifier found |
OFDPA_ERROR_t ofdpaTunnelTenantCreate | ( | uint32_t | tunnelId, |
ofdpaTunnelTenantConfig_t * | config | ||
) |
Create a tunnel tenant entry.
[in] | tunnelId | unique identifier for the tenant |
[in] | config | structure containing tenant parameters |
OFDPA_E_NONE | tenant entry successfully created |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_ERROR | configuration error including specifying a multicast next hop entry reference that does not exist |
OFDPA_E_FAIL | failure occurred during tenant creation |
OFDPA_E_FULL | maximum number of tenants already created |
OFDPA_E_EXISTS | an entry with the specified tunnelId already created |
OFDPA_ERROR_t ofdpaTunnelTenantDelete | ( | uint32_t | tunnelId | ) |
Delete a tunnel tenant entry.
[in] | tunnelId | unique identifier for the tenant |
OFDPA_E_NONE | tenant entry successfully deleted |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_NOT_FOUND | tenant entry with identifier not configured |
OFDPA_E_FAIL | failure occurred during tenant deletion, reasons include attempting to delete a tenant entry that is being referenced |
OFDPA_ERROR_t ofdpaTunnelTenantGet | ( | uint32_t | tunnelId, |
ofdpaTunnelTenantConfig_t * | config, | ||
ofdpaTunnelTenantStatus_t * | status | ||
) |
Retrieve tunnel tenant configuration and/or status.
[in] | tunnelId | unique identifier for the tenant |
[out] | config | structure containing tunnel tenant configuration (optional) |
[out] | status | structure containing tunnel tenant status (optional) |
OFDPA_E_NONE | data successfully retrieved |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_NOT_FOUND | entry with identifier not configured |
OFDPA_ERROR_t ofdpaTunnelTenantNextGet | ( | uint32_t | tunnelId, |
uint32_t * | nextTunnelId | ||
) |
Return the tunnel identifier, if any, for the entry after the one specified.
[in] | tunnelId | unique identifier for the tenant |
[out] | nextTunnelId | unique identifier for the next tenant entry |
OFDPA_E_NONE | next identifier found |
OFDPA_E_FAIL | no next identifier found |