OpenNSL API Guide and Reference Manual
Welcome
OpenNSL Documentation
API Reference
Files
File List
Globals
include
opennsl
statX.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_STATX_H__
17
#define __OPENNSL_STATX_H__
18
19
#include <
opennsl/types.h
>
20
22
typedef
enum
opennsl_stat_group_mode_attr_e
{
23
opennslStatGroupModeAttrColor
= 1,
26
opennslStatGroupModeAttrFieldIngressColor
= 2,
31
opennslStatGroupModeAttrIntPri
= 3,
35
opennslStatGroupModeAttrVlan
= 4,
37
opennslStatGroupModeAttrOuterPri
= 5,
41
opennslStatGroupModeAttrInnerPri
= 6,
45
opennslStatGroupModeAttrPort
= 7,
49
opennslStatGroupModeAttrTosDscp
= 8,
54
opennslStatGroupModeAttrPktType
= 10,
56
opennslStatGroupModeAttrIngNetworkGroup
= 11,
60
opennslStatGroupModeAttrDrop
= 13,
62
opennslStatGroupModeAttrPacketTypeIp
= 14,
64
}
opennsl_stat_group_mode_attr_t
;
65
/* __doxy_func_body_end__ */
66
68
typedef
struct
opennsl_stat_group_mode_attr_selector_s
{
69
uint32
counter_offset
;
70
opennsl_stat_group_mode_attr_t
attr
;
71
uint32
attr_value
;
72
uint32
udf_bitmap
;
74
}
opennsl_stat_group_mode_attr_selector_t
;
75
/* __doxy_func_body_end__ */
76
77
/***************************************************************************/
88
extern
void
opennsl_stat_group_mode_attr_selector_t_init
(
89
opennsl_stat_group_mode_attr_selector_t
*attr_selector)
LIB_DLL_EXPORTED
;
90
91
/***************************************************************************/
120
extern
int
opennsl_stat_group_mode_id_create
(
121
int
unit,
122
uint32
flags,
123
uint32
total_counters,
124
uint32
num_selectors,
125
opennsl_stat_group_mode_attr_selector_t
*attr_selectors,
126
uint32
*mode_id)
LIB_DLL_EXPORTED
;
127
128
/***************************************************************************/
142
extern
int
opennsl_stat_custom_group_create
(
143
int
unit,
144
uint32
mode_id,
145
opennsl_stat_object_t
object
,
146
uint32
*stat_counter_id,
147
uint32
*num_entries)
LIB_DLL_EXPORTED
;
148
149
#endif
/* __OPENNSL_STATX_H__ */
150
© 2016-17 by Broadcom Limited. All rights reserved.