Open Ethernet Networking (OpEN) API Guide and Reference Manual  3.13.1.2
Data Structures | Macros | Enumerations | Functions
openapi_lag.h File Reference
#include <stdio.h>
#include <stddef.h>
#include <sys/un.h>
#include "openapi_common.h"

Go to the source code of this file.

Data Structures

struct  openLagNonUnicastHashMode_t
 

Macros

#define OPEN_LAG_MEMBER_BUFFER_SIZE   (sizeof(uint32_t) * OPEN_MAX_MEMBERS_PER_LAG)
 
#define OPEN_LAG_PORT_ACTOR_PORT_PRIORITY_DEFAULT   128
 
#define OPEN_LAG_PORT_ACTOR_PORT_PRIORITY_MAX   65535
 LAG Global non unicast hash modes.
 
#define OPEN_LAG_PORT_ACTOR_PORT_PRIORITY_MIN   0
 
#define OPEN_LAG_PORT_ACTOR_SYSTEM_PRIORITY_DEFAULT   32768
 
#define OPEN_LAG_PORT_ACTOR_SYSTEM_PRIORITY_MAX   65535
 
#define OPEN_LAG_PORT_ACTOR_SYSTEM_PRIORITY_MIN   0
 
#define OPEN_MAX_MEMBERS_PER_LAG   32
 

Enumerations

enum  OPEN_DOT3AD_STATE_TYPE_t { OPEN_DOT3AD_STATE_AGGREGATION = 0, OPEN_DOT3AD_STATE_LACP_TIMEOUT = 1, OPEN_DOT3AD_STATE_LACP_ACTIVITY = 2 }
 OpEN uses these enumerations to indicate DOT3AD state types. More...
 
enum  OPEN_LAG_HASH_MODE_t {
  OPEN_LAG_HASHING_MODE_SA_VLAN = 0, OPEN_LAG_HASHING_MODE_DA_VLAN = 1, OPEN_LAG_HASHING_MODE_SDA_VLAN = 2, OPEN_LAG_HASHING_MODE_SIP_SPORT = 3,
  OPEN_LAG_HASHING_MODE_DIP_DPORT = 4, OPEN_LAG_HASHING_MODE_SDIP_DPORT = 5, OPEN_LAG_HASHING_MODE_ENHANCED = 6
}
 Hash Mode names. More...
 
enum  OPEN_LAG_NON_UNICAST_HASH_MODE_OPTIONS_t { OPEN_LAG_NON_UNICAST_HASH_MODE_SOURCE_PORT = 1, OPEN_LAG_NON_UNICAST_HASH_MODE_SOURCE_ADDRESS, OPEN_LAG_NON_UNICAST_HASH_MODE_DESTINATION_ADDRESS, OPEN_LAG_NON_UNICAST_HASH_MODE_OPTIONS_TOTAL }
 

Functions

open_error_t openapiDot3adAggPortActorAdminStateGet (openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_DOT3AD_STATE_TYPE_t type, OPEN_CONTROL_t *state)
 Gets the LACP actor admin state. More...
 
open_error_t openapiDot3adAggPortActorAdminStateSet (openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_DOT3AD_STATE_TYPE_t type, OPEN_CONTROL_t mode)
 Sets the LACP actor admin state. More...
 
open_error_t openapiDot3adAggPortLacpModeGet (openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_CONTROL_t *lacpMode)
 Gets the LACP mode of the physical interface. More...
 
open_error_t openapiDot3adAggPortLacpModeSet (openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_CONTROL_t lacpMode)
 Sets the LACP mode of the physical interface. More...
 
open_error_t openapiLagActiveMembersGet (openapiClientHandle_t *client_handle, uint32_t lagIfNum, uint32_t *count, open_buffdesc *bufd)
 Gets the list of active member ports for the LAG interface. More...
 
open_error_t openapiLagActiveMembersListGet (openapiClientHandle_t *client_handle, uint32_t lagIfNum, uint32_t *count, open_buffdesc *bufd)
 Gets a comma-delimited list of active member ports for the LAG interface. More...
 
open_error_t openapiLagAdminModeGet (openapiClientHandle_t *client_handle, uint32_t lagIfNum, OPEN_CONTROL_t *adminMode)
 Get the administrative mode of a LAG interface. More...
 
open_error_t openapiLagAdminModeSet (openapiClientHandle_t *client_handle, uint32_t lagIfNum, OPEN_CONTROL_t adminMode)
 Set the administrative mode of a LAG interface. More...
 
open_error_t openapiLagAggPortActorPortPriorityGet (openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t *val)
 Get the priority assigned to this aggregation port. More...
 
open_error_t openapiLagAggPortActorPortPrioritySet (openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t val)
 Set the priority of this aggregation port. More...
 
open_error_t openapiLagAggPortActorSystemPriorityGet (openapiClientHandle_t *client_handle, uint32_t *val)
 Get the priority value associated with the system actor's ID. More...
 
open_error_t openapiLagAggPortActorSystemPrioritySet (openapiClientHandle_t *client_handle, uint32_t val)
 Set the priority value associated with the system actor's ID. More...
 
open_error_t openapiLagAutoLAGAvbProfileModeGet (openapiClientHandle_t *client_handle, OPEN_CONTROL_t *adminMode)
 Get the Auto-LAG global AVB profile mode. More...
 
open_error_t openapiLagAutoLAGAvbProfileModeSet (openapiClientHandle_t *client_handle, OPEN_CONTROL_t adminMode)
 Set the Auto-LAG global AVB profile mode. More...
 
open_error_t openapiLagAutoLAGHashModeGet (openapiClientHandle_t *client_handle, OPEN_LAG_HASH_MODE_t *hashMode)
 Get the Auto-LAG global hash mode. More...
 
open_error_t openapiLagAutoLAGHashModeSet (openapiClientHandle_t *client_handle, OPEN_LAG_HASH_MODE_t hashMode)
 Set the Auto-LAG global hash mode. More...
 
open_error_t openapiLagAutoLAGModeGet (openapiClientHandle_t *client_handle, OPEN_CONTROL_t *adminMode)
 Get the Auto-LAG administrative mode. More...
 
open_error_t openapiLagAutoLAGModeSet (openapiClientHandle_t *client_handle, OPEN_CONTROL_t adminMode)
 Set the Auto-LAG administrative mode. More...
 
open_error_t openapiLagAutoLAGStatusGet (openapiClientHandle_t *client_handle, uint32_t lagIntIfNum, OPEN_BOOL_t *autoLagStatus)
 Get the Auto-LAG status of the LAG interface. More...
 
open_error_t openapiLagAvbProfileModeGet (openapiClientHandle_t *client_handle, uint32_t lagIntIfNum, OPEN_CONTROL_t *adminMode)
 Get the AVB profile mode of the LAG interface. More...
 
open_error_t openapiLagCountGet (openapiClientHandle_t *client_handle, uint32_t *lagCount)
 Get the current number of LAGs in the system (static and dynamic). More...
 
open_error_t openapiLagIfIndexGetFirst (openapiClientHandle_t *client_handle, uint32_t *intfIndex)
 Get the interface index number of the first LAG interface. More...
 
open_error_t openapiLagIfIndexGetNext (openapiClientHandle_t *client_handle, uint32_t intfIndex, uint32_t *nextIntfIndex)
 Get the interface index number of the next successive LAG interface. More...
 
open_error_t openapiLagLinkTrapGet (openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t *val)
 Get the link trap mode of a configured LAG. More...
 
open_error_t openapiLagLinkTrapSet (openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t val)
 Set the link trap mode of a configured LAG. More...
 
open_error_t openapiLagLoadBalanceModeGet (openapiClientHandle_t *client_handle, uint32_t lagIfNum, OPEN_LAG_HASH_MODE_t *lbMode)
 Gets load balancing mode of the LAG interface. More...
 
open_error_t openapiLagLoadBalanceModeSet (openapiClientHandle_t *client_handle, uint32_t lagIfNum, OPEN_LAG_HASH_MODE_t lbMode)
 Sets load balancing mode of the LAG interface. More...
 
open_error_t openapiLagMaxMemberCountGet (openapiClientHandle_t *client_handle, uint32_t *memberMax)
 Get the maximum number of members allowed for a LAG. More...
 
open_error_t openapiLagMembersGet (openapiClientHandle_t *client_handle, uint32_t lagIfNum, uint32_t *count, open_buffdesc *bufd)
 Gets the list of member ports for the LAG interface. More...
 
open_error_t openapiLagMembersListGet (openapiClientHandle_t *client_handle, uint32_t lagIfNum, uint32_t *count, open_buffdesc *bufd)
 Gets a comma-delimited list of member ports for the LAG interface. More...
 
open_error_t openapiLagMinUplinksGet (openapiClientHandle_t *client_handle, uint32_t lagIfNum, uint32_t *minUpLinks)
 Gets minimum uplinks for the LAG interface. More...
 
open_error_t openapiLagMinUplinksSet (openapiClientHandle_t *client_handle, uint32_t lagIfNum, uint32_t minUpLinks)
 Sets minimum uplinks for the LAG interface. More...
 
open_error_t openapiLagNameGet (openapiClientHandle_t *client_handle, uint32_t lagIfNum, open_buffdesc *name)
 Gets name of the LAG interface. More...
 
open_error_t openapiLagNameMaxLengthGet (openapiClientHandle_t *client_handle, uint32_t *maxLen)
 Get the maximum LAG name length. More...
 
open_error_t openapiLagNameSet (openapiClientHandle_t *client_handle, uint32_t lagIfNum, open_buffdesc *name)
 Sets name of the LAG interface. More...
 
open_error_t openapiLagNonUnicastGlobalHashModeGet (openapiClientHandle_t *client_handle, openLagNonUnicastHashMode_t *hashMode)
 Set global non unicast hash mode for a LAG system. More...
 
open_error_t openapiLagNonUnicastGlobalHashModeSet (openapiClientHandle_t *client_handle, openLagNonUnicastHashMode_t hashMode)
 Set global non unicast hash mode for a LAG system. More...
 
open_error_t openapiLagPortAdd (openapiClientHandle_t *client_handle, uint32_t lagIfNum, uint32_t phyIfNum)
 Adds a physical interface to a LAG interface. More...
 
open_error_t openapiLagPortChannelIdGet (openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t *portChannelId)
 Get the port channel ID for a given interface number. More...
 
open_error_t openapiLagPortDelete (openapiClientHandle_t *client_handle, uint32_t lagIfNum, uint32_t phyIfNum)
 Delete a physical interface from a LAG interface. More...
 
open_error_t openapiLagStaticModeGet (openapiClientHandle_t *client_handle, uint32_t lagIfNum, OPEN_CONTROL_t *staticMode)
 Gets static mode of the LAG interface. More...
 
open_error_t openapiLagStaticModeSet (openapiClientHandle_t *client_handle, uint32_t lagIfNum, OPEN_CONTROL_t staticMode)
 Sets static mode of the LAG interface. More...
 
open_error_t openapiLagThresholdMinMaxGet (openapiClientHandle_t *client_handle, uint32_t *minThreshold, uint32_t *maxThreshold)
 Get the LAG Threshold minimum and maximum values. More...