OpenFlow Data Plane Abstraction (OF-DPA) API Guide and Reference Manual
|
Macros | |
#define | OFDPA_FLOW_TABLE_ID_SA_LOOKUP 254 |
Source MAC Lookup Table. | |
#define | OFDPA_INPORT_EXACT_MASK 0xffffffffu |
Exact Mask. | |
#define | OFDPA_INPORT_FIELD_MASK 0x00000000u |
Field Mask. | |
#define | OFDPA_INPORT_INDEX_MASK 0x0000ffffu |
Number Mask. | |
#define | OFDPA_INPORT_TYPE_MASK 0xffff0000u |
Type Mask. | |
#define | OFDPA_IPV4_ADDR_EXACT_MASK 0xffffffffu |
IPv4 Address Exact Mask. | |
#define | OFDPA_IPV4_ADDR_FIELD_MASK 0x00000000u |
IPv4 Address Field Mask. | |
#define | OFDPA_MAC_ADDR_IS_NULL(mac) |
Check if MAC address is NULL. | |
#define | OFDPA_MAC_ADDR_LEN 6 |
MAC address length. | |
#define | OFDPA_PKT_LOOKUP 1 |
Flags field in ofdpaPktSend() | |
#define | OFDPA_PORT_CONTROLLER 0xfffffffdu |
Open Flow Controller port. | |
#define | OFDPA_PORT_NAME_STRING_SIZE 16 |
Port name maximum string length. | |
#define | OFDPA_TABLE_NAME_LEN 32 |
Table name maximum string length. | |
#define | OFDPA_VID_EXACT_MASK 0x0fff |
VLAN Id Exact Mask. | |
#define | OFDPA_VID_FIELD_MASK 0x0000 |
VLAN Id Field Mask. | |
#define | OFDPA_VID_NONE 0x0000 |
VLAN Id None. | |
#define | OFDPA_VID_PRESENT 0x1000 |
VLAN Id present. | |
Functions | |
int | ofdpaBcmCommand (ofdpa_buffdesc buffer) |
Execute a BCM command. | |
int | ofdpaClientEventSockFdGet (void) |
Get OF-DPA Client's event socket fd. | |
OFDPA_ERROR_t | ofdpaClientInitialize (char *clientName) |
Initialize OF-DPA client or user application. | |
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. | |
int | 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 | ofdpaEventReceive (struct timeval *timeout) |
Receive an event. | |
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 | 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. | |
OFDPA_ERROR_t | ofdpaGroupAdd (ofdpaGroupEntry_t *group) |
Add Group. | |
OFDPA_ERROR_t | ofdpaGroupBucketEntryAdd (ofdpaGroupBucketEntry_t *bucket) |
Add a Group Bucket entry. | |
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 Group Id. | |
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 | ofdpaGroupIndexShortGet (uint32_t groupId, uint32_t *index) |
Get the Short Index encoded in the Group Id. | |
OFDPA_ERROR_t | ofdpaGroupIndexShortSet (uint32_t *groupId, uint32_t index) |
Encode the Short Index in the Group Id. | |
OFDPA_ERROR_t | ofdpaGroupNextGet (uint32_t groupId, ofdpaGroupEntry_t *nextGroup) |
Get the next Group entry. | |
OFDPA_ERROR_t | ofdpaGroupOverlayIndexSet (uint32_t *groupId, uint32_t index) |
Encode the Overlay Group index in 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 | 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 (OFDPA_GROUP_ENTRY_TYPE_t groupType, ofdpaGroupTableInfo_t *info) |
Get Group table info. | |
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 | 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 | 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, OFDPA_PORT_CONFIG_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 | 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, OFDPA_PORT_STATE_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. | |
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 | 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. | |
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. | |
#define OFDPA_MAC_ADDR_IS_NULL | ( | mac | ) |
Check if MAC address is NULL.
Definition at line 82 of file ofdpa_datatypes.h.
typedef struct ofdpaFlowEntryStats_s ofdpaFlowEntryStats_t |
Flow Stats information.
typedef struct ofdpaGroupEntry_s ofdpaGroupEntry_t |
The Group Table contains one entry for each Group.
The table is indexed by the groupId which identifies the group entry. Data is encoded into the groupId to specify the OF-DPA group entry type and information required by OF-DPA to configure the datapath.
The groupId encoding method is:
L2 Interface type: (MSB to LSB) 4 bits encode the Group Table Entry type | 12 bits of VLAN ID | 16 bits of port identifier
L2 Multicast, L2 Flood and L3 Multicast types: (MSB to LSB) 4 bits encode the Group Table Entry type | 12 bits of VLAN ID | 16 bits of index
L2 Rewrite, L3 Unicast, L3 Interface and L3 ECMP types: (MSB to LSB) 4 bits encode the Group Table Entry type | 28 bits of index
L2 Overlay type (MSB to LSB) 4 bits encode the Group Table Entry type | 16 bits of tunnel ID | 2 bits of sub-type | 10 bits of indexGroup Table Entry
typedef struct ofdpaPortFeature_s ofdpaPortFeature_t |
Bitmaps of OFDPA_PORT_FEAT_* that describe features.
All bits zeroed if unsupported or unavailable.
enum OFDPA_CONTROL_t |
enable or disable for config or status parameter.
Definition at line 141 of file ofdpa_datatypes.h.
enum OFDPA_ERROR_t |
OFDPA uses these enumerators to indicate the error codes.
Definition at line 48 of file ofdpa_datatypes.h.
Flow event type.
OFDPA_FLOW_EVENT_IDLE_TIMEOUT |
Flow idle timeout event. |
OFDPA_FLOW_EVENT_HARD_TIMEOUT |
Flow hard timeout event. |
Definition at line 1083 of file ofdpa_datatypes.h.
Flow Table Id enumerator.
Definition at line 207 of file ofdpa_datatypes.h.
Group Type Enumerator.
Definition at line 690 of file ofdpa_datatypes.h.
L2 Overlay Group Sub-type Enumerator.
Definition at line 716 of file ofdpa_datatypes.h.
Packet In reason codes.
OFDPA_PACKET_IN_REASON_NO_MATCH |
No Match. |
OFDPA_PACKET_IN_REASON_ACTION |
Action. |
OFDPA_PACKET_IN_REASON_INVALID_TTL |
Invalid TTL. |
Definition at line 1026 of file ofdpa_datatypes.h.
enum OFDPA_PORT_CONFIG_t |
Flags to indicate behavior of the physical port.
These flags are used in ofp_port to describe the current configuration. They are used in the ofp_port_mod message to configure the port's behavior.
Definition at line 895 of file ofdpa_datatypes.h.
Port event type.
OFDPA_EVENT_PORT_CREATE |
Port created. |
OFDPA_EVENT_PORT_DELETE |
Port deleted. |
OFDPA_EVENT_PORT_STATE |
Port link state has changed. |
Definition at line 1056 of file ofdpa_datatypes.h.
enum OFDPA_PORT_FEATURE_t |
Features of ports available in a datapath.
Definition at line 911 of file ofdpa_datatypes.h.
enum OFDPA_PORT_STATE_t |
Current state of the physical port.
These are not configurable from the controller.
Definition at line 904 of file ofdpa_datatypes.h.
enum OFDPA_PORT_TYPE_t |
OFDPA_PORT_TYPE_PHYSICAL |
Port type Physical. |
OFDPA_PORT_TYPE_LOGICAL_TUNNEL |
Port type Logical Tunnel. |
Definition at line 99 of file ofdpa_datatypes.h.
OFDPA_TUNNEL_PORT_TYPE_ENDPOINT |
Tunnel Port type Endpoint. |
OFDPA_TUNNEL_PORT_TYPE_ACCESS |
Tunnel Port type Access. |
Definition at line 1107 of file ofdpa_datatypes.h.
enum OFDPA_TUNNEL_PROTO_t |
OFDPA_TUNNEL_PROTO_VXLAN |
Tunnel Port protocol VxLAN. |
OFDPA_TUNNEL_PROTO_NVGRE |
Tunnel Port protocol NVGRE. |
Definition at line 1116 of file ofdpa_datatypes.h.
enum ofdpaComponentIds_t |
Component enumerator.
Definition at line 152 of file ofdpa_datatypes.h.
enum ofdpaDebugLevels_t |
Debug verbosity enumerator.
Definition at line 172 of file ofdpa_datatypes.h.
int ofdpaBcmCommand | ( | ofdpa_buffdesc | buffer | ) |
Execute a BCM command.
[in] | buffer | BCM command |
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 |
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] | parms | 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] | parms | optional parameters for format string |
int ofdpaComponentNameGet | ( | int | component, |
ofdpa_buffdesc * | name | ||
) |
Get the Component Name.
[in] | component | component number |
[out] | name | component name |
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 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 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] | flowflowStats | 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 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 |
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 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 Group Id.
[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 |
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 ofdpaGroupIndexShortGet | ( | uint32_t | groupId, |
uint32_t * | index | ||
) |
Get the Short 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 ofdpaGroupIndexShortSet | ( | uint32_t * | groupId, |
uint32_t | index | ||
) |
Encode the Short Index in the Group Id.
[in,out] | groupId | group id |
[in] | index | Index |
OFDPA_E_NONE | Encoded successfully |
OFDPA_E_UNAVAIL | Short Index 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 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 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 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 | ( | OFDPA_GROUP_ENTRY_TYPE_t | groupType, |
ofdpaGroupTableInfo_t * | info | ||
) |
Get Group table info.
[in] | groupType | group type |
[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 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 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 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] | feature | 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, |
OFDPA_PORT_CONFIG_t * | config | ||
) |
Get the port administrative state.
[in] | portNum | port number |
[out] | state | 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] | state | 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 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] | nextPortNum | next 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, |
OFDPA_PORT_STATE_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 |
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 bandwith |
[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 bandwith |
[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 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] | ecmpNextHopGroupId | 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] | ecmpNextHopGroupId | 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 identifer found |
OFDPA_E_FAIL | no next identifer found |
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] | tunnelId | 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 identifer found |
OFDPA_E_FAIL | no next identifer 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 identifer found |
OFDPA_E_FAIL | no next logical port identifer 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 identifer found |
OFDPA_E_PARAM | error in parameters passed to function |
OFDPA_E_NOT_FOUND | no next logical port tunnel identifer 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 identifer found |
OFDPA_E_FAIL | no next identifer found |