Function Return Values
PA LLD Constants (enum's and define's)

PALLD Function Return Codes

Error codes returned by PALLD API functions.

#define pa_OK   0
#define pa_ERR_CONFIG   -10
#define pa_INSUFFICIENT_CMD_BUFFER_SIZE   -11
#define pa_INVALID_CMD_REPLY_DEST   -12
#define pa_DUP_ENTRY   -13
#define pa_INVALID_DUP_ENTRY   -14
#define pa_INVALID_TABLE_MORE_SPECIFIC_ENTRY_PRESENT   -15
#define pa_INVALID_MPLS_LABEL   -16
#define pa_HANDLE_TABLE_FULL   -17
#define pa_INVALID_INPUT_HANDLE   -18
#define pa_HANDLE_INACTIVE   -19
#define pa_INVALID_IP_FLOW   -20
#define pa_WARN_ACTIVE_HANDLE_ACKED   -21
#define pa_LUT_ENTRY_FAILED   -22
#define pa_RESUBMIT_COMMAND   -23
#define pa_SYSTEM_STATE_INVALID   -24
#define pa_INVALID_LUT1_INDEX   -25
#define pa_WARN_LNK_CNT_UNSYNC   -26
#define pa_CMDSET_TOO_BIG   -27
#define pa_INVALID_LUT_INST   -28
#define pa_RESOURCE_INIT_DENIED   -29
#define pa_RESOURCE_USE_DENIED   -30
#define pa_RESOURCE_FREE_DENIED   -31
#define pa_FIRMWARE_REVISION_DIFFERENCE   -32
#define pa_VIRTUAL_LINK_TABLE_FULL   -33
#define pa_INVALID_DUP_ACL_ENTRY   -34
#define pa_INVALID_ACL_ACTION   -35
#define pa_INVALID_EF_REC_INDEX   -36
#define pa_EF_REC_CONFIG_ERR   -37
#define pa_PENDING_FC_ENTRY   -38
#define pa_API_UNSUPPORTED   -39

Define Documentation

#define pa_API_UNSUPPORTED   -39

The API is not supported by this generation of PASS

#define pa_CMDSET_TOO_BIG   -27

The total length of commads in the command set exceeds the limit

#define pa_DUP_ENTRY   -13

A duplicate active entry was found in the handle table. If the module user intends to replace the associate routing information for the same entry, command packet should be delivered to the PASS via the PKTDMA sub-system Otherwise, module user may decide to drop the command packet and free the buffer.

#define pa_EF_REC_CONFIG_ERR   -37

Egress Flow record update is rejected by PASS

#define pa_ERR_CONFIG   -10

Invalid configuration provided to PA

The firmware revision difference

#define pa_HANDLE_INACTIVE   -19

Operation requested on an inactive handle

#define pa_HANDLE_TABLE_FULL   -17

No room for an entry in the L2 table

The provided buffer was too small to hold the command

#define pa_INVALID_ACL_ACTION   -35

The specified ACL action is not supported

#define pa_INVALID_CMD_REPLY_DEST   -12

An invalid destination was provided for command replies

#define pa_INVALID_DUP_ACL_ENTRY   -34

A duplicate ACL entry is found in the ACL table The ACL entry should be deleted before the same entry with updated action can be added.

#define pa_INVALID_DUP_ENTRY   -14

A duplicate pending entry was found in the handle table This entry can not be handled until the pending entry becomes active

#define pa_INVALID_EF_REC_INDEX   -36

The index of Egress Flow record is out of range

#define pa_INVALID_INPUT_HANDLE   -18

Invalid handle provided

#define pa_INVALID_IP_FLOW   -20

A flow label exceeded 20 bits

#define pa_INVALID_LUT1_INDEX   -25

LUT1 index exceeds the LUT1 table range

#define pa_INVALID_LUT_INST   -28

The specified LUT1 or LUT2 instance does not exist

#define pa_INVALID_MPLS_LABEL   -16

An MPLS label exceeded 20 bits

A more specific entry was found in the handle table

Note:
: This error is depreciated at the next generation keystone device
#define pa_LUT_ENTRY_FAILED   -22

Sub-system could not make an entry to the LUT1 table

#define pa_OK   0

PA return code -- Function executed successfully

#define pa_PENDING_FC_ENTRY   -38

A pending Flow Cache entry is intended to be replaced with another entry by invoking API Pa_addFc() while it is still pending to be added into PASS LUT1 table. This entry can not be replaced until it becomes active

#define pa_RESOURCE_FREE_DENIED   -31

The resource free permission denied

#define pa_RESOURCE_INIT_DENIED   -29

The resource initialization permission denied

#define pa_RESOURCE_USE_DENIED   -30

The resource usage permission denied

#define pa_RESUBMIT_COMMAND   -23

Sub-system could not handle the command due to memory. Command must be resubmitted

#define pa_SYSTEM_STATE_INVALID   -24

Tried to download an image to a running PDSP

#define pa_VIRTUAL_LINK_TABLE_FULL   -33

Virtual link table is full

#define pa_WARN_ACTIVE_HANDLE_ACKED   -21

Sub-system reported activation of a handle already marked active

#define pa_WARN_LNK_CNT_UNSYNC   -26

Warning: Link counter out of sync


Copyright 2014, Texas Instruments Incorporated