OpenNSL API Guide and Reference Manual
Data Structures | Macros | Typedefs | Enumerations | Functions
policerX.h File Reference
#include <opennsl/types.h>

Go to the source code of this file.

Data Structures

struct  opennsl_policer_config_s
 

Macros

#define OPENNSL_POLICER_COLOR_BLIND   0x00000004
 
#define OPENNSL_POLICER_MODE_BYTES   0x00000040
 
#define OPENNSL_POLICER_MODE_PACKETS   0x00000080
 

Typedefs

typedef struct
opennsl_policer_config_s 
opennsl_policer_config_t
 
typedef enum opennsl_policer_mode_e opennsl_policer_mode_t
 Policer Modes.
 

Enumerations

enum  opennsl_policer_mode_e {
  opennslPolicerModeSrTcm = 0,
  opennslPolicerModeCommitted = 1,
  opennslPolicerModePeak = 2,
  opennslPolicerModeTrTcm = 3,
  opennslPolicerModeTrTcmDs = 4
}
 Policer Modes. More...
 

Functions

void opennsl_policer_config_t_init (opennsl_policer_config_t *pol_cfg) LIB_DLL_EXPORTED
 Initialize a policer configuration structure.
 
int opennsl_policer_create (int unit, opennsl_policer_config_t *pol_cfg, opennsl_policer_t *policer_id) LIB_DLL_EXPORTED
 Create a policer entry.
 
int opennsl_policer_destroy (int unit, opennsl_policer_t policer_id) LIB_DLL_EXPORTED
 Destroy a policer entry.
 
int opennsl_policer_get (int unit, opennsl_policer_t policer_id, opennsl_policer_config_t *pol_cfg) LIB_DLL_EXPORTED
 Get the config settings for a policer entry.
 
int opennsl_policer_set (int unit, opennsl_policer_t policer_id, opennsl_policer_config_t *pol_cfg) LIB_DLL_EXPORTED
 Set the config settings for a policer entry.