OpenNSL API Guide and Reference Manual
policerX.h
Go to the documentation of this file.
1 
4 /*****************************************************************************
5  *
6  * This software is governed by the Broadcom Advanced Switch APIs license.
7  * This license is set out in the
8  * https://github.com/Broadcom-Switch/OpenNSL/Legal/LICENSE-Adv file.
9  *
10  * Copyright 2015-2016 Broadcom Corporation. All rights reserved.
11  *
12  ***************************************************************************/
16 #ifndef __OPENNSL_POLICERX_H__
17 #define __OPENNSL_POLICERX_H__
18 
19 #include <opennsl/types.h>
20 
22 typedef enum opennsl_policer_mode_e {
29 /* __doxy_func_body_end__ */
30 
31 #define OPENNSL_POLICER_COLOR_BLIND 0x00000004
32 #define OPENNSL_POLICER_MODE_BYTES 0x00000040
33 #define OPENNSL_POLICER_MODE_PACKETS 0x00000080
34 typedef struct opennsl_policer_config_s {
44 /* __doxy_func_body_end__ */
45 
46 /***************************************************************************/
58 
59 /***************************************************************************/
70 extern int opennsl_policer_create(
71  int unit,
72  opennsl_policer_config_t *pol_cfg,
74 
75 /***************************************************************************/
90 extern int opennsl_policer_destroy(
91  int unit,
93 
94 /***************************************************************************/
105 extern int opennsl_policer_set(
106  int unit,
109 
110 /***************************************************************************/
121 extern int opennsl_policer_get(
122  int unit,
125 
126 #endif /* __OPENNSL_POLICERX_H__ */
127