Mellanox SwitchX SDK API Guide  4.3.2104
sx_lib_host_ifc.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 
19 #ifndef SX_LIB_HOST_IFC_H_
20 #define SX_LIB_HOST_IFC_H_
21 
22 #include <sx/sdk/sx_api.h>
23 
47 sx_status_t sx_lib_host_ifc_unicast_ctrl_send(const sx_fd_t * fd_p,
48  const void * packet_p,
49  const uint32_t packet_size,
50  const sx_swid_t swid,
51  const sx_port_log_id_t egress_log_port,
52  const sx_cos_priority_t prio);
53 
74 sx_status_t sx_lib_host_ifc_data_send(const sx_fd_t *fd,
75  const void *packet,
76  const uint32_t packet_size,
77  const sx_swid_t swid,
78  const sx_cos_priority_t prio);
79 
104 sx_status_t sx_lib_host_ifc_loopback_ctrl_send(const sx_fd_t *fd,
105  const void *packet,
106  const uint32_t packet_size,
107  const sx_swid_t swid,
108  const sx_trap_id_t trap_id,
109  const sx_port_log_id_t ingress_log_port,
110  const boolean_t is_lag,
111  const sx_port_log_id_t ingress_lag_port);
112 
138 sx_status_t sx_lib_host_ifc_recv(const sx_fd_t *fd,
139  void *packet,
140  uint32_t *packet_size,
141  sx_receive_info_t *receive_info);
142 
178 sx_status_t sx_lib_host_ifc_recv_list(const sx_fd_t *fd,
179  sx_packet_info_t *packet_info_list_p,
180  uint32_t *packet_info_list_size_p);
181 
182 
183 #endif /* SX_LIB_HOST_IFC_H_ */
sx_lib_host_ifc_recv
sx_status_t sx_lib_host_ifc_recv(const sx_fd_t *fd, void *packet, uint32_t *packet_size, sx_receive_info_t *receive_info)
sx_lib_host_ifc_recv_list
sx_status_t sx_lib_host_ifc_recv_list(const sx_fd_t *fd, sx_packet_info_t *packet_info_list_p, uint32_t *packet_info_list_size_p)
sx_lib_host_ifc_data_send
sx_status_t sx_lib_host_ifc_data_send(const sx_fd_t *fd, const void *packet, const uint32_t packet_size, const sx_swid_t swid, const sx_cos_priority_t prio)
sx_lib_host_ifc_loopback_ctrl_send
sx_status_t sx_lib_host_ifc_loopback_ctrl_send(const sx_fd_t *fd, const void *packet, const uint32_t packet_size, const sx_swid_t swid, const sx_trap_id_t trap_id, const sx_port_log_id_t ingress_log_port, const boolean_t is_lag, const sx_port_log_id_t ingress_lag_port)
sx_lib_host_ifc_unicast_ctrl_send
sx_status_t sx_lib_host_ifc_unicast_ctrl_send(const sx_fd_t *fd_p, const void *packet_p, const uint32_t packet_size, const sx_swid_t swid, const sx_port_log_id_t egress_log_port, const sx_cos_priority_t prio)