Mellanox SwitchX SDK API Guide  4.3.2104
sx_api_flow_counter.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2014-2019. Mellanox Technologies, Ltd. ALL RIGHTS RESERVED.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License"); you may
5  * not use this file except in compliance with the License. You may obtain
6  * a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
7  *
8  * THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR
9  * CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT
10  * LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS
11  * FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT.
12  *
13  * See the Apache Version 2.0 License for specific language governing
14  * permissions and limitations under the License.
15  *
16  */
17 
18 #ifndef __SX_API_FLOW_COUNTER_H__
19 #define __SX_API_FLOW_COUNTER_H__sdk
20 
21 #include <sx/sdk/sx_api.h>
22 #include <sx/sdk/sx_strings.h>
23 
37 sx_status_t sx_api_flow_counter_log_verbosity_level_set(const sx_api_handle_t handle,
38  const sx_log_verbosity_target_t verbosity_target,
39  const sx_verbosity_level_t module_verbosity_level,
40  const sx_verbosity_level_t api_verbosity_level);
41 
55 sx_status_t sx_api_flow_counter_log_verbosity_level_get(const sx_api_handle_t handle,
56  const sx_log_verbosity_target_t verbosity_target,
57  sx_verbosity_level_t *module_verbosity_level_p,
58  sx_verbosity_level_t *api_verbosity_level_p);
59 
85 sx_status_t sx_api_flow_counter_set(const sx_api_handle_t handle,
86  const sx_access_cmd_t cmd,
87  const sx_flow_counter_type_t counter_type,
88  sx_flow_counter_id_t *counter_id_p);
89 
105 sx_status_t sx_api_flow_counter_get(const sx_api_handle_t handle,
106  const sx_access_cmd_t cmd,
107  const sx_flow_counter_id_t counter_id,
108  sx_flow_counter_set_t *counter_set_p);
109 
165 sx_status_t sx_api_flow_counter_iter_get(const sx_api_handle_t handle,
166  const sx_access_cmd_t cmd,
167  const sx_flow_counter_id_t counter_id_key,
168  sx_flow_counter_filter_t *counter_filter_p,
169  sx_flow_counter_id_t *counter_id_list_p,
170  uint32_t *counter_id_cnt_p);
171 
172 
188 sx_status_t sx_api_flow_counter_clear_set(const sx_api_handle_t handle,
189  const sx_flow_counter_id_t counter_id);
190 
191 #endif
sx_api_flow_counter_log_verbosity_level_set
sx_status_t sx_api_flow_counter_log_verbosity_level_set(const sx_api_handle_t handle, const sx_log_verbosity_target_t verbosity_target, const sx_verbosity_level_t module_verbosity_level, const sx_verbosity_level_t api_verbosity_level)
sx_api_flow_counter_get
sx_status_t sx_api_flow_counter_get(const sx_api_handle_t handle, const sx_access_cmd_t cmd, const sx_flow_counter_id_t counter_id, sx_flow_counter_set_t *counter_set_p)
sx_api_flow_counter_set
sx_status_t sx_api_flow_counter_set(const sx_api_handle_t handle, const sx_access_cmd_t cmd, const sx_flow_counter_type_t counter_type, sx_flow_counter_id_t *counter_id_p)
sx_api_flow_counter_log_verbosity_level_get
sx_status_t sx_api_flow_counter_log_verbosity_level_get(const sx_api_handle_t handle, const sx_log_verbosity_target_t verbosity_target, sx_verbosity_level_t *module_verbosity_level_p, sx_verbosity_level_t *api_verbosity_level_p)
sx_api_flow_counter_iter_get
sx_status_t sx_api_flow_counter_iter_get(const sx_api_handle_t handle, const sx_access_cmd_t cmd, const sx_flow_counter_id_t counter_id_key, sx_flow_counter_filter_t *counter_filter_p, sx_flow_counter_id_t *counter_id_list_p, uint32_t *counter_id_cnt_p)
sx_api_flow_counter_clear_set
sx_status_t sx_api_flow_counter_clear_set(const sx_api_handle_t handle, const sx_flow_counter_id_t counter_id)