SAI Metadata
|
This module defines SAI Metadata Types. More...
Go to the source code of this file.
Classes | |
struct | _sai_object_meta_key_t |
Defines object metadata key. More... | |
struct | _sai_attr_condition_t |
Defines attribute condition. More... | |
struct | _sai_enum_metadata_t |
Defines enum metadata information. More... | |
struct | _sai_attr_capability_metadata_t |
Defines attribute capability metadata. More... | |
struct | _sai_attr_metadata_t |
Defines attribute metadata. More... | |
struct | _sai_struct_member_info_t |
Defines struct member info for non object id object type. More... | |
struct | _sai_rev_graph_member_t |
SAI reverse graph member. More... | |
struct | _sai_object_type_info_t |
SAI object type information. More... | |
Macros | |
#define | SAI_INVALID_ATTRIBUTE_ID ((sai_attr_id_t)-1) |
#define | SAI_HAS_FLAG_MANDATORY_ON_CREATE(x) (((x) & SAI_ATTR_FLAGS_MANDATORY_ON_CREATE) == SAI_ATTR_FLAGS_MANDATORY_ON_CREATE) |
#define | SAI_HAS_FLAG_CREATE_ONLY(x) (((x) & SAI_ATTR_FLAGS_CREATE_ONLY) == SAI_ATTR_FLAGS_CREATE_ONLY) |
#define | SAI_HAS_FLAG_CREATE_AND_SET(x) (((x) & SAI_ATTR_FLAGS_CREATE_AND_SET) == SAI_ATTR_FLAGS_CREATE_AND_SET) |
#define | SAI_HAS_FLAG_READ_ONLY(x) (((x) & SAI_ATTR_FLAGS_READ_ONLY) == SAI_ATTR_FLAGS_READ_ONLY) |
#define | SAI_HAS_FLAG_KEY(x) (((x) & SAI_ATTR_FLAGS_KEY) == SAI_ATTR_FLAGS_KEY) |
#define | SAI_HAS_FLAG_DYNAMIC(x) (((x) & SAI_ATTR_FLAGS_DYNAMIC) == SAI_ATTR_FLAGS_DYNAMIC) |
#define | SAI_HAS_FLAG_SPECIAL(x) (((x) & SAI_ATTR_FLAGS_SPECIAL) == SAI_ATTR_FLAGS_SPECIAL) |
Typedefs | |
typedef struct _sai_object_meta_key_t | sai_object_meta_key_t |
Defines object metadata key. | |
typedef enum _sai_attr_value_type_t | sai_attr_value_type_t |
Defines attribute value type. Can be used when serializing attributes. | |
typedef enum _sai_attr_flags_t | sai_attr_flags_t |
Attribute flags. | |
typedef enum _sai_default_value_type_t | sai_default_value_type_t |
Defines default value type. | |
typedef enum _sai_attr_condition_type_t | sai_attr_condition_type_t |
Defines attribute condition type. | |
typedef enum _sai_condition_operator_t | sai_condition_operator_t |
Condition operator (==,!=,<,>,<=.>=). | |
typedef struct _sai_attr_condition_t | sai_attr_condition_t |
Defines attribute condition. | |
typedef enum _sai_enum_flags_type_t | sai_enum_flags_type_t |
Defines enum flags type, if enum contains flags. | |
typedef struct _sai_enum_metadata_t | sai_enum_metadata_t |
Defines enum metadata information. | |
typedef struct _sai_attr_capability_metadata_t | sai_attr_capability_metadata_t |
Defines attribute capability metadata. | |
typedef struct _sai_attr_metadata_t | sai_attr_metadata_t |
Defines attribute metadata. | |
typedef sai_object_id_t(* | sai_meta_get_struct_member_oid_fn) (_In_ const sai_object_meta_key_t *object_meta_key) |
Function definition for getting object id from non object id structure member. | |
typedef void(* | sai_meta_set_struct_member_oid_fn) (_Inout_ sai_object_meta_key_t *object_meta_key, _In_ sai_object_id_t object_id) |
Function definition for setting object id from non object id structure member. | |
typedef struct _sai_struct_member_info_t | sai_struct_member_info_t |
Defines struct member info for non object id object type. | |
typedef struct _sai_rev_graph_member_t | sai_rev_graph_member_t |
SAI reverse graph member. | |
typedef sai_status_t(* | sai_meta_generic_create_fn) (_Inout_ sai_object_meta_key_t *meta_key, _In_ sai_object_id_t switch_id, _In_ uint32_t attr_count, _In_ const sai_attribute_t *attr_list) |
typedef sai_status_t(* | sai_meta_generic_remove_fn) (_In_ const sai_object_meta_key_t *meta_key) |
typedef sai_status_t(* | sai_meta_generic_set_fn) (_In_ const sai_object_meta_key_t *meta_key, _In_ const sai_attribute_t *attr) |
typedef sai_status_t(* | sai_meta_generic_get_fn) (_In_ const sai_object_meta_key_t *meta_key, _In_ uint32_t attr_count, _Inout_ sai_attribute_t *attr_list) |
typedef sai_status_t(* | sai_meta_generic_get_stats_fn) (_In_ const sai_object_meta_key_t *meta_key, _In_ uint32_t number_of_counters, _In_ const sai_stat_id_t *counter_ids, _Out_ uint64_t *counters) |
typedef sai_status_t(* | sai_meta_generic_get_stats_ext_fn) (_In_ const sai_object_meta_key_t *meta_key, _In_ uint32_t number_of_counters, _In_ const sai_stat_id_t *counter_ids, _In_ sai_stats_mode_t mode, _Out_ uint64_t *counters) |
typedef sai_status_t(* | sai_meta_generic_clear_stats_fn) (_In_ const sai_object_meta_key_t *meta_key, _In_ uint32_t number_of_counters, _In_ const sai_stat_id_t *counter_ids) |
typedef sai_status_t(* | sai_generic_create_fn) (_Out_ sai_object_id_t *object_id, _In_ sai_object_id_t switch_id, _In_ uint32_t attr_count, _In_ const sai_attribute_t *attr_list) |
typedef sai_status_t(* | sai_generic_remove_fn) (_In_ sai_object_id_t object_id) |
typedef sai_status_t(* | sai_generic_set_fn) (_In_ sai_object_id_t object_id, _In_ const sai_attribute_t *attr) |
typedef sai_status_t(* | sai_generic_get_fn) (_In_ sai_object_id_t object_id, _In_ uint32_t attr_count, _Inout_ sai_attribute_t *attr_list) |
typedef struct _sai_object_type_info_t | sai_object_type_info_t |
SAI object type information. | |
This module defines SAI Metadata Types.
Copyright (c) 2014 Microsoft Open Technologies, Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN AS IS BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions and limitations under the License.
Microsoft would like to thank the following companies for their review and assistance with these files: Intel Corporation, Mellanox Technologies Ltd, Dell Products, L.P., Facebook, Inc., Marvell International Ltd.
Definition in file saimetadatatypes.h.