SAI Metadata
Loading...
Searching...
No Matches
saisystemport.h
Go to the documentation of this file.
1
25#if !defined (__SAISYSTEMPORT_H_)
26#define __SAISYSTEMPORT_H_
27
28#include <saitypes.h>
29
40{
43
46
48
54{
59
60 /* READ-ONLY */
61
69
77
86
97
98 /* READ-WRITE */
99
108
116
130
135
138
141
143
154typedef sai_status_t (*sai_create_system_port_fn)(
155 _Out_ sai_object_id_t *system_port_id,
156 _In_ sai_object_id_t switch_id,
157 _In_ uint32_t attr_count,
158 _In_ const sai_attribute_t *attr_list);
159
167typedef sai_status_t (*sai_remove_system_port_fn)(
168 _In_ sai_object_id_t system_port_id);
169
178typedef sai_status_t (*sai_set_system_port_attribute_fn)(
179 _In_ sai_object_id_t system_port_id,
180 _In_ const sai_attribute_t *attr);
181
191typedef sai_status_t (*sai_get_system_port_attribute_fn)(
192 _In_ sai_object_id_t system_port_id,
193 _In_ uint32_t attr_count,
194 _Inout_ sai_attribute_t *attr_list);
195
200{
201 sai_create_system_port_fn create_system_port;
202 sai_remove_system_port_fn remove_system_port;
203 sai_set_system_port_attribute_fn set_system_port_attribute;
204 sai_get_system_port_attribute_fn get_system_port_attribute;
205
207
211#endif
enum _sai_system_port_type_t sai_system_port_type_t
Attribute data for SAI_SYSTEM_PORT_ATTR_TYPE.
struct _sai_system_port_api_t sai_system_port_api_t
Port methods table retrieved with sai_api_query()
sai_status_t(* sai_set_system_port_attribute_fn)(_In_ sai_object_id_t system_port_id, _In_ const sai_attribute_t *attr)
Set system port attribute value.
enum _sai_system_port_attr_t sai_system_port_attr_t
Attribute Id in sai_set_system_port_attribute() and sai_get_system_port_attribute() calls.
sai_status_t(* sai_create_system_port_fn)(_Out_ sai_object_id_t *system_port_id, _In_ sai_object_id_t switch_id, _In_ uint32_t attr_count, _In_ const sai_attribute_t *attr_list)
Create system port.
_sai_system_port_attr_t
Attribute Id in sai_set_system_port_attribute() and sai_get_system_port_attribute() calls.
_sai_system_port_type_t
Attribute data for SAI_SYSTEM_PORT_ATTR_TYPE.
sai_status_t(* sai_get_system_port_attribute_fn)(_In_ sai_object_id_t system_port_id, _In_ uint32_t attr_count, _Inout_ sai_attribute_t *attr_list)
Get system port attribute value.
sai_status_t(* sai_remove_system_port_fn)(_In_ sai_object_id_t system_port_id)
Remove system port.
@ SAI_SYSTEM_PORT_ATTR_QOS_NUMBER_OF_VOQS
Number of Virtual output queues on port.
@ SAI_SYSTEM_PORT_ATTR_END
End of attributes.
@ SAI_SYSTEM_PORT_ATTR_CUSTOM_RANGE_START
@ SAI_SYSTEM_PORT_ATTR_QOS_VOQ_LIST
List of Virtual output Queues for the port.
@ SAI_SYSTEM_PORT_ATTR_QOS_TC_TO_QUEUE_MAP
Enable TC -> VOQ MAP on system port.
@ SAI_SYSTEM_PORT_ATTR_PORT
Local port for the system port.
@ SAI_SYSTEM_PORT_ATTR_CUSTOM_RANGE_END
@ SAI_SYSTEM_PORT_ATTR_TYPE
System Port Type.
@ SAI_SYSTEM_PORT_ATTR_ADMIN_STATE
Admin Mode.
@ SAI_SYSTEM_PORT_ATTR_CONFIG_INFO
System Port Configuration Information.
@ SAI_SYSTEM_PORT_ATTR_START
Start of attributes.
@ SAI_SYSTEM_PORT_TYPE_REMOTE
@ SAI_SYSTEM_PORT_TYPE_LOCAL
This module defines SAI portable types.
Port methods table retrieved with sai_api_query()