|
Mellanox SwitchX SDK API Guide
4.3.2104
|
Go to the source code of this file.
Functions | |
| sx_status_t | sx_api_fcf_log_verbosity_level (sx_api_handle_t handle, sx_access_cmd_t cmd, sx_log_verbosity_target_t verbosity_target, sx_verbosity_level_t *module_verbosity_level_p, sx_verbosity_level_t *api_verbosity_level_p) |
| sx_status_t | sx_api_fcf_init (const sx_api_handle_t handle, const sx_fcf_param_t *params) |
| sx_status_t | sx_api_fcf_deinit (const sx_api_handle_t handle) |
| sx_status_t | sx_api_fcf_set (const sx_api_handle_t handle, const sx_access_cmd_t cmd, const sx_fcf_attributes_t *fcf_attr, sx_fcf_id_t *fcf) |
| sx_status_t | sx_api_fcf_get (const sx_api_handle_t handle, const sx_access_cmd_t cmd, sx_fcf_id_t *fcf, sx_fcf_attributes_t *fcf_attr) |
| sx_status_t | sx_api_fcf_v_port_interface_set (const sx_api_handle_t handle, const sx_access_cmd_t cmd, const sx_fcf_id_t fcf, const sx_fcf_v_port_attributes_t *v_port_attr, sx_fcf_v_port_handle_t *v_port_handle) |
| sx_status_t | sx_api_fcf_ipl_set (const sx_api_handle_t handle, const sx_access_cmd_t cmd, const sx_port_log_id_t port_list[], const length_t log_port_num) |
| sx_status_t | sx_api_fcf_ipl_get (const sx_api_handle_t handle, sx_port_log_id_t port_list[], length_t *log_port_num) |
| sx_status_t | sx_api_fcf_v_port_interface_get (const sx_api_handle_t handle, const sx_access_cmd_t cmd, sx_fcf_v_port_handle_t *v_port_handle, sx_fcf_id_t *fcf, sx_fcf_v_port_attributes_t *v_port_attr) |
| sx_status_t | sx_api_fcf_forwarding_set (const sx_api_handle_t handle, const sx_access_cmd_t cmd, const sx_fcf_id_t fcf, const sx_fc_addr_t *did, const sx_fc_addr_t *did_mask, const sx_fc_addr_t *sid, const sx_fc_addr_t *sid_mask, const sx_fcf_v_port_handle_t v_port_handle) |
| sx_status_t | sx_api_fcf_forwarding_get (const sx_api_handle_t handle, sx_access_cmd_t access_cmd, const sx_fcf_id_t fcf, sx_fc_addr_t *did, sx_fc_addr_t *did_mask, sx_fc_addr_t *sid, sx_fc_addr_t *sid_mask, sx_fcf_v_port_handle_t *v_port_handle) |
| sx_status_t | sx_api_fcf_cntr_alloc_set (const sx_api_handle_t handle, const sx_access_cmd_t cmd, sx_fcf_cntr_id_t *cntr) |
| sx_status_t | sx_api_fcf_cntr_bind_set (const sx_api_handle_t handle, const sx_access_cmd_t cmd, const sx_fcf_cntr_id_t cntr, const sx_fcf_v_port_handle_t v_port_handle) |
| sx_status_t | sx_api_fcf_cntr_bind_get (const sx_api_handle_t handle, const sx_fcf_cntr_id_t cntr, sx_fcf_v_port_handle_t *v_port_handle) |
| sx_status_t | sx_api_fcf_cntr_get (const sx_api_handle_t handle, const sx_fcf_cntr_id_t cntr, sx_fcf_cntr_set_t *cntr_set) |
| sx_status_t | sx_api_fcf_cntr_clear_set (const sx_api_handle_t handle, const sx_fcf_cntr_id_t cntr, const boolean_t all) |
| sx_status_t sx_api_fcf_log_verbosity_level | ( | sx_api_handle_t | handle, |
| sx_access_cmd_t | cmd, | ||
| sx_log_verbosity_target_t | verbosity_target, | ||
| sx_verbosity_level_t * | module_verbosity_level_p, | ||
| sx_verbosity_level_t * | api_verbosity_level_p | ||
| ) |
This function sets the log verbosity level of FCF MODULE Supported devices: Not Supported
| [in] | handle | - SX-API handle |
| [in] | cmd | - SET / GET |
| [in] | verbosity_target | - set get verbosity of : API / MODULE / BOTH |
| [in,out] | module_verbosity_level_p | - FCF module verbosity level |
| [in,out] | api_verbosity_level_p | - FCF API verbosity level |
| sx_status_t sx_api_fcf_init | ( | const sx_api_handle_t | handle, |
| const sx_fcf_param_t * | params | ||
| ) |
This function Initiates the FCF module in SDK. Supported devices: Not Supported
| [in] | handle | - SX-API handle. |
| [in] | params | - FCF parameters. |
| sx_status_t sx_api_fcf_deinit | ( | const sx_api_handle_t | handle | ) |
This api deinitializes the FCF in the sdk. Supported devices: Not Supported
| [in] | handle | - SX-API handle. |
| sx_status_t sx_api_fcf_set | ( | const sx_api_handle_t | handle, |
| const sx_access_cmd_t | cmd, | ||
| const sx_fcf_attributes_t * | fcf_attr, | ||
| sx_fcf_id_t * | fcf | ||
| ) |
This function adds/modifies/deletes a FCF. The FCF ID is allocated and returned to the caller when cmd is ADD, otherwise it is given by the caller. All v_ports and forwarding rules associated with a FCF must be deleted and deallocated before the FCF can be deleted as well. Supported devices: Not Supported
| [in] | handle | - SX-API handle. |
| [in] | cmd | - ADD/EDIT/DELETE. |
| [in] | fcf_attr | - FCF attributes. |
| [in,out] | fcf | - FCF ID |
| sx_status_t sx_api_fcf_get | ( | const sx_api_handle_t | handle, |
| const sx_access_cmd_t | cmd, | ||
| sx_fcf_id_t * | fcf, | ||
| sx_fcf_attributes_t * | fcf_attr | ||
| ) |
This function gets a FCF information. Supported devices: Not Supported
| [in] | handle | - SX-API handle. |
| [in] | cmd | - get, get_next, get first |
| [in,out] | fcf | - FCF ID. |
| [out] | fcf_attr | - FCF attributes. |
| sx_status_t sx_api_fcf_v_port_interface_set | ( | const sx_api_handle_t | handle, |
| const sx_access_cmd_t | cmd, | ||
| const sx_fcf_id_t | fcf, | ||
| const sx_fcf_v_port_attributes_t * | v_port_attr, | ||
| sx_fcf_v_port_handle_t * | v_port_handle | ||
| ) |
This function adds/deletes a v_port from a FCF. If the type if VE_port a MAC should be given. If the type is VF_port, a mac should not be given as it is calculated by the fabric. Supported devices: Not Supported
| [in] | handle | - SX-API handle. |
| [in] | cmd | - ADD/DELETE/DELETE_ALL. |
| [in] | fcf | - FCF ID. |
| [in] | v_port_attr | - v port attributes, can be NULL in case of delete |
| [in,out] | v_port_handle | - A pointer to the added/deleted v_port object. |
| sx_status_t sx_api_fcf_ipl_set | ( | const sx_api_handle_t | handle, |
| const sx_access_cmd_t | cmd, | ||
| const sx_port_log_id_t | port_list[], | ||
| const length_t | log_port_num | ||
| ) |
This function defines the IPL (Ingress Port List) in the SDK. SET = Discard the previous list and use the given list DEFAULT = Return all the ports to the IPL (by default, all the ports are in the IPL). DELETE_ALL = Remove all the ports from the IPL. In addition, it can also ADD/DELETE ports to/from the IPL. Supported devices: Not Supported
| [in] | handle | - SX-API handle. |
| [in] | cmd | - DEFAULT/SET/DELETE_ALL/ADD/DELETE. |
| [in] | port_list | - List of Logical Ports to ADD/DELETE to/from an IPL. |
| [in] | port_num | - Number of Logical Ports to ADD/DELETE to/from an IPL. |
| sx_status_t sx_api_fcf_ipl_get | ( | const sx_api_handle_t | handle, |
| sx_port_log_id_t | port_list[], | ||
| length_t * | log_port_num | ||
| ) |
This function retrieves the IPL (Ingress Port List) from the SDK. Supported devices: Not Supported
| [in] | handle | - SX-API handle. |
| [out] | port_list | - List of Logical Ports in the IPL. |
| [out] | port_num | - Number of Logical Ports in the IPL. |
| sx_status_t sx_api_fcf_v_port_interface_get | ( | const sx_api_handle_t | handle, |
| const sx_access_cmd_t | cmd, | ||
| sx_fcf_v_port_handle_t * | v_port_handle, | ||
| sx_fcf_id_t * | fcf, | ||
| sx_fcf_v_port_attributes_t * | v_port_attr | ||
| ) |
This function gets a v_port of a FCF. Supported devices: Not Supported
| [in] | handle | - SX-API handle. |
| [in] | cmd | - get, get_next, get first |
| [in,out] | v_port_handle | - A pointer to the queried v_port object. |
| [out] | fcf | - FCF ID to which the v_port belongs. |
| [out] | v_port_attr | - The attributes of the queried v_port. |
| sx_status_t sx_api_fcf_forwarding_set | ( | const sx_api_handle_t | handle, |
| const sx_access_cmd_t | cmd, | ||
| const sx_fcf_id_t | fcf, | ||
| const sx_fc_addr_t * | did, | ||
| const sx_fc_addr_t * | did_mask, | ||
| const sx_fc_addr_t * | sid, | ||
| const sx_fc_addr_t * | sid_mask, | ||
| const sx_fcf_v_port_handle_t | v_port_handle | ||
| ) |
This function adds/modifies/deletes a forwarding entry into the forwarding table. The forwarding entry is composed of sid, sid mask, did, did mask mapped to a V_port Supported devices: Not Supported
| [in] | handle | - SX-API handle. |
| [in] | cmd | - ADD/EDIT/DELETE/DELETE_ALL. |
| [in] | fcf | - FCF ID. |
| [in] | did | - FC destination address |
| [in] | did_mask | - bits from the DID that are used for LPM |
| [in] | sid | - FC source address |
| [in] | sid_mask | - bits from the DID that are used for LPM |
| [in] | v_port_handle | - The v_port the forwarding rule is mapped to. |
| sx_status_t sx_api_fcf_forwarding_get | ( | const sx_api_handle_t | handle, |
| sx_access_cmd_t | access_cmd, | ||
| const sx_fcf_id_t | fcf, | ||
| sx_fc_addr_t * | did, | ||
| sx_fc_addr_t * | did_mask, | ||
| sx_fc_addr_t * | sid, | ||
| sx_fc_addr_t * | sid_mask, | ||
| sx_fcf_v_port_handle_t * | v_port_handle | ||
| ) |
This function gets a forwarding entry from the forwarding table. The forwarding entry is composed of sid, sid mask, did, did mask mapped to a V_port Supported devices: Not Supported
| [in] | handle | - SX-API handle. |
| [in] | access_cmd | - get, get_next, get first |
| [in] | fcf | - FCF ID. |
| [in] | did | - FC destination address |
| [in] | did_mask | - bits from the DID that are used for LPM |
| [in] | sid | - FC source address |
| [in] | sid_mask | - bits from the DID that are used for LPM |
| [out] | v_port_handle | - The v_port the forwarding rule is mapped to. |
| sx_status_t sx_api_fcf_cntr_alloc_set | ( | const sx_api_handle_t | handle, |
| const sx_access_cmd_t | cmd, | ||
| sx_fcf_cntr_id_t * | cntr | ||
| ) |
This function allocates/deallocates a FCF counter. A FCF counter should be bound later to a FCF v_port. Supported devices: Not Supported
| [in] | handle | - SX-API handle. |
| [in] | cmd | - ADD/DELETE. |
| [in,out] | cntr | - FCF counter ID. |
| sx_status_t sx_api_fcf_cntr_bind_set | ( | const sx_api_handle_t | handle, |
| const sx_access_cmd_t | cmd, | ||
| const sx_fcf_cntr_id_t | cntr, | ||
| const sx_fcf_v_port_handle_t | v_port_handle | ||
| ) |
This function binds/unbinds a FCF counter to a FCF v_port. Supported devices: Not Supported
| [in] | handle | - SX-API handle. |
| [in] | cmd | - ADD/DELETE. |
| [in] | cntr | - FCF counter ID. |
| [in] | v_port_handle | - The v_port the counter should be bound/unbound from. |
| sx_status_t sx_api_fcf_cntr_bind_get | ( | const sx_api_handle_t | handle, |
| const sx_fcf_cntr_id_t | cntr, | ||
| sx_fcf_v_port_handle_t * | v_port_handle | ||
| ) |
This function gets a FCF counter bind of a FCF v_port. Supported devices: Not Supported
| [in] | handle | - SX-API handle. |
| [in] | cntr | - FCF counter ID. |
| [out] | v_port_handle | - The v_port the counter is bound to. |
| sx_status_t sx_api_fcf_cntr_get | ( | const sx_api_handle_t | handle, |
| const sx_fcf_cntr_id_t | cntr, | ||
| sx_fcf_cntr_set_t * | cntr_set | ||
| ) |
This function gets FCF counter set of a FCF counter. Supported devices: Not Supported
| [in] | handle | - SX-API handle. |
| [in] | cntr | - FCF counter ID. |
| [out] | cntr_set | - FCF counter set values. |
| sx_status_t sx_api_fcf_cntr_clear_set | ( | const sx_api_handle_t | handle, |
| const sx_fcf_cntr_id_t | cntr, | ||
| const boolean_t | all | ||
| ) |
This function clears fcf counter set of a fcf counter. Supported devices: Not Supported
| [in] | handle | - SX-API handle. |
| [in] | cntr | - FCF counter ID. |
| [in] | all | - Clear all FCF counters. |
1.8.16