Mellanox SwitchX SDK API Guide  4.3.2104
sx_api_topo.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_TOPO_H__
19 #define __SX_API_TOPO_H__
20 
21 #include <sx/sdk/sx_api.h>
22 #include <sx/sdk/sx_api_init.h>
23 #include <sx/sdk/sx_strings.h>
24 
25 
26 /************************************************
27  * API functions
28  ***********************************************/
29 
43 sx_status_t sx_api_topo_log_verbosity_level_set(const sx_api_handle_t handle,
44  const sx_log_verbosity_target_t verbosity_target,
45  const sx_verbosity_level_t module_verbosity_level,
46  const sx_verbosity_level_t api_verbosity_level);
47 
61 sx_status_t sx_api_topo_log_verbosity_level_get(const sx_api_handle_t handle,
62  const sx_log_verbosity_target_t verbosity_target,
63  sx_verbosity_level_t *module_verbosity_level_p,
64  sx_verbosity_level_t *api_verbosity_level_p);
65 
90 sx_status_t sx_api_topo_device_set(IN sx_api_handle_t handle,
91  IN sx_access_cmd_t cmd,
92  IN sx_topolib_dev_info_t * dev_info);
93 
108 sx_status_t sx_api_topo_device_dump(sx_api_handle_t handle,
109  sx_access_cmd_t cmd,
110  sx_topo_lib_dump_db_info_t * dump_info);
111 
125 sx_status_t sx_api_topo_tree_dump(sx_api_handle_t handle,
126  sx_access_cmd_t cmd,
127  sx_topo_lib_dump_db_info_t* dump_info);
128 
148 sx_status_t sx_api_topo_tree_set(IN sx_api_handle_t handle,
149  IN sx_access_cmd_t cmd,
150  INOUT sx_topo_lib_tree_t * tree);
151 
170 sx_status_t sx_api_topo_unicast_reload_balance(IN sx_api_handle_t handle,
171  IN sx_tree_hndl_t tree,
172  IN sx_port_log_id_t log_port);
173 
174 
196 sx_status_t sx_api_topo_mc_tree_group_set(IN sx_api_handle_t handle,
197  IN sx_access_cmd_t cmd,
198  INOUT sx_mc_tree_group_id_t * mc_tree_group_id);
199 
200 
220 sx_status_t sx_api_topo_mc_tree_group_dev_set(IN sx_api_handle_t handle,
221  IN sx_access_cmd_t cmd,
222  IN sx_mc_tree_group_hndl_t old_tree_group,
223  IN sx_mc_tree_group_hndl_t new_tree_group,
224  IN sx_dev_id_t dev_id);
225 
226 
241 sx_status_t sx_api_topo_mc_tree_group_tree_set(IN sx_api_handle_t handle,
242  IN sx_access_cmd_t cmd,
243  IN sx_mc_tree_group_hndl_t tree_group,
244  IN sx_tree_hndl_t tree);
245 
246 
261 sx_status_t sx_api_topo_mc_reload_balance(IN sx_api_handle_t handle,
262  IN sx_mc_tree_group_hndl_t mc_tree_group_id);
263 
264 
265 #endif /* __SX_API_TOPO_H__ */
sx_api_topo_tree_dump
sx_status_t sx_api_topo_tree_dump(sx_api_handle_t handle, sx_access_cmd_t cmd, sx_topo_lib_dump_db_info_t *dump_info)
sx_api_topo_device_dump
sx_status_t sx_api_topo_device_dump(sx_api_handle_t handle, sx_access_cmd_t cmd, sx_topo_lib_dump_db_info_t *dump_info)
sx_api_topo_device_set
sx_status_t sx_api_topo_device_set(IN sx_api_handle_t handle, IN sx_access_cmd_t cmd, IN sx_topolib_dev_info_t *dev_info)
sx_api_topo_log_verbosity_level_set
sx_status_t sx_api_topo_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_topo_mc_tree_group_dev_set
sx_status_t sx_api_topo_mc_tree_group_dev_set(IN sx_api_handle_t handle, IN sx_access_cmd_t cmd, IN sx_mc_tree_group_hndl_t old_tree_group, IN sx_mc_tree_group_hndl_t new_tree_group, IN sx_dev_id_t dev_id)
sx_api_topo_mc_tree_group_tree_set
sx_status_t sx_api_topo_mc_tree_group_tree_set(IN sx_api_handle_t handle, IN sx_access_cmd_t cmd, IN sx_mc_tree_group_hndl_t tree_group, IN sx_tree_hndl_t tree)
sx_api_topo_unicast_reload_balance
sx_status_t sx_api_topo_unicast_reload_balance(IN sx_api_handle_t handle, IN sx_tree_hndl_t tree, IN sx_port_log_id_t log_port)
sx_api_topo_log_verbosity_level_get
sx_status_t sx_api_topo_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_topo_mc_tree_group_set
sx_status_t sx_api_topo_mc_tree_group_set(IN sx_api_handle_t handle, IN sx_access_cmd_t cmd, INOUT sx_mc_tree_group_id_t *mc_tree_group_id)
sx_api_topo_tree_set
sx_status_t sx_api_topo_tree_set(IN sx_api_handle_t handle, IN sx_access_cmd_t cmd, INOUT sx_topo_lib_tree_t *tree)
sx_api_topo_mc_reload_balance
sx_status_t sx_api_topo_mc_reload_balance(IN sx_api_handle_t handle, IN sx_mc_tree_group_hndl_t mc_tree_group_id)