|
OpenNSL API Guide and Reference Manual
|
Data Structures | |
| struct | opennsl_policer_config_s |
Files | |
| file | policer.h |
| file | policerX.h |
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. | |
| #define OPENNSL_POLICER_COLOR_BLIND 0x00000004 |
Definition at line 31 of file policerX.h.
Referenced by example_create_policer().
| #define OPENNSL_POLICER_MODE_BYTES 0x00000040 |
Definition at line 32 of file policerX.h.
| #define OPENNSL_POLICER_MODE_PACKETS 0x00000080 |
Definition at line 33 of file policerX.h.
| typedef struct opennsl_policer_config_s opennsl_policer_config_t |
| typedef enum opennsl_policer_mode_e opennsl_policer_mode_t |
Policer Modes.
Policer Modes.
| opennslPolicerModeSrTcm |
RFC 2697. |
| opennslPolicerModeCommitted | |
| opennslPolicerModePeak | |
| opennslPolicerModeTrTcm |
RFC 2698. |
| opennslPolicerModeTrTcmDs |
RFC 4115, TrTcmModified. |
Definition at line 22 of file policerX.h.
| void opennsl_policer_config_t_init | ( | opennsl_policer_config_t * | pol_cfg | ) |
Initialize a policer configuration structure.
| pol_cfg | [IN,OUT] Pointer to policer configuration structure to initialize. |
| None. |
Referenced by example_create_meter(), and example_create_policer().
| int opennsl_policer_create | ( | int | unit, |
| opennsl_policer_config_t * | pol_cfg, | ||
| opennsl_policer_t * | policer_id | ||
| ) |
Create a policer entry.
| unit | [IN] Unit number. |
| pol_cfg | [IN] Policer config |
| policer_id | [IN,OUT] Policer ID |
| OPENNSL_E_XXX |
Referenced by example_create_meter(), and example_create_policer().
| int opennsl_policer_destroy | ( | int | unit, |
| opennsl_policer_t | policer_id | ||
| ) |
Destroy a policer entry.
| unit | [IN] Unit number. |
| policer_id | [IN] Policer ID |
| OPENNSL_E_XXX |
| int opennsl_policer_get | ( | int | unit, |
| opennsl_policer_t | policer_id, | ||
| opennsl_policer_config_t * | pol_cfg | ||
| ) |
Get the config settings for a policer entry.
| unit | [IN] Unit number. |
| policer_id | [IN] Policer ID. |
| pol_cfg | [OUT] Policer configuration. |
| OPENNSL_E_XXX |
| int opennsl_policer_set | ( | int | unit, |
| opennsl_policer_t | policer_id, | ||
| opennsl_policer_config_t * | pol_cfg | ||
| ) |
Set the config settings for a policer entry.
| unit | [IN] Unit number. |
| policer_id | [IN] Policer ID. |
| pol_cfg | [IN] Policer configuration. |
| OPENNSL_E_XXX |