Open Ethernet Networking (OpEN) API Guide and Reference Manual  3.6.0.3
Data Structures | Typedefs | Enumerations | Functions
Hash Prediction [OPENAPI_HASH]

Data Structures

struct  open_hash_egress_obj_s
 
struct  open_hashPktInfo_s
 

Typedefs

typedef struct open_hash_egress_obj_s open_hash_egress_obj_t
 
typedef struct open_hashPktInfo_s open_hashPktInfo_t
 

Enumerations

enum  OPEN_AGGR_TYPE_t { OPEN_AGGR_TYPE_ECMP = 0, OPEN_AGGR_TYPE_LAG = 1 }
 

Functions

open_error_t openapiHashDestGet (open_hashPktInfo_t *packetInfo, open_USP_t *usp, OPEN_MPLS_LABELS_t *mpls_label)
 Get the destination physical port for the given packet and configuration information. More...
 
open_error_t openapiHashIntfUnitSlotPortGet (openapiClientHandle_t *client_handle, uint32_t intf, open_USP_t *usp)
 Get the unit, slot and port of the interface. More...
 

Detailed Description

Function Documentation

open_error_t openapiHashDestGet ( open_hashPktInfo_t packetInfo,
open_USP_t usp,
OPEN_MPLS_LABELS_t mpls_label 
)

Get the destination physical port for the given packet and configuration information.

Parameters
packetInfoincoming packet information
uspunit/slot/port of the out going interface
mpls_labelFor MPLS-tagged routes this is the MPLS label stack.
Return values
OPEN_E_NONEGet successful.
OPEN_E_FAILGet failed.
OPEN_E_PARAMError in parameter passed.

OpEN API Version: 1.4

Examples:
hash_example.c.
open_error_t openapiHashIntfUnitSlotPortGet ( openapiClientHandle_t client_handle,
uint32_t  intf,
open_USP_t usp 
)

Get the unit, slot and port of the interface.

Parameters
[in]client_handleclient handle from registration API
[in]intfthe network interface
[out]uspunit/slot/port of the interface
Return values
OPEN_E_NONEon success
OPEN_E_PARAMon improper input parameters
OPEN_E_FAILon other failure

OpEN API Version: 1.4

Examples:
hash_example.c.