SAI Metadata
Loading...
Searching...
No Matches
saigenericprogrammable.h
Go to the documentation of this file.
1
25#if !defined (__SAIGENERICPROGRAMMABLE_H_)
26#define __SAIGENERICPROGRAMMABLE_H_
27
28#include <saitypes.h>
29
40{
45
53
62
75
80
83
86
88
99typedef sai_status_t (*sai_create_generic_programmable_fn)(
100 _Out_ sai_object_id_t *generic_programmable_id,
101 _In_ sai_object_id_t switch_id,
102 _In_ uint32_t attr_count,
103 _In_ const sai_attribute_t *attr_list);
104
113 _In_ sai_object_id_t generic_programmable_id);
114
124 _In_ sai_object_id_t generic_programmable_id,
125 _In_ const sai_attribute_t *attr);
126
137 _In_ sai_object_id_t generic_programmable_id,
138 _In_ uint32_t attr_count,
139 _Inout_ sai_attribute_t *attr_list);
140
145{
146 sai_create_generic_programmable_fn create_generic_programmable;
147 sai_remove_generic_programmable_fn remove_generic_programmable;
148 sai_set_generic_programmable_attribute_fn set_generic_programmable_attribute;
149 sai_get_generic_programmable_attribute_fn get_generic_programmable_attribute;
151
155#endif
sai_status_t(* sai_get_generic_programmable_attribute_fn)(_In_ sai_object_id_t generic_programmable_id, _In_ uint32_t attr_count, _Inout_ sai_attribute_t *attr_list)
Get Generic programmable entry attribute.
enum _sai_generic_programmable_attr_t sai_generic_programmable_attr_t
Attribute Id for Generic Programmable extension.
_sai_generic_programmable_attr_t
Attribute Id for Generic Programmable extension.
sai_status_t(* sai_set_generic_programmable_attribute_fn)(_In_ sai_object_id_t generic_programmable_id, _In_ const sai_attribute_t *attr)
Set Generic programmable Table entry attribute.
sai_status_t(* sai_remove_generic_programmable_fn)(_In_ sai_object_id_t generic_programmable_id)
Delete a Generic programmable entry.
sai_status_t(* sai_create_generic_programmable_fn)(_Out_ sai_object_id_t *generic_programmable_id, _In_ sai_object_id_t switch_id, _In_ uint32_t attr_count, _In_ const sai_attribute_t *attr_list)
Create a Generic programmable entry.
struct _sai_generic_programmable_api_t sai_generic_programmable_api_t
Generic extensions methods table retrieved with sai_api_query()
@ SAI_GENERIC_PROGRAMMABLE_ATTR_OBJECT_NAME
HW block name to program the entry.
@ SAI_GENERIC_PROGRAMMABLE_ATTR_CUSTOM_RANGE_START
@ SAI_GENERIC_PROGRAMMABLE_ATTR_COUNTER_ID
Attach a counter.
@ SAI_GENERIC_PROGRAMMABLE_ATTR_START
Start of attributes.
@ SAI_GENERIC_PROGRAMMABLE_ATTR_END
End of attributes.
@ SAI_GENERIC_PROGRAMMABLE_ATTR_ENTRY
JSON string carrying HW block entry information.
@ SAI_GENERIC_PROGRAMMABLE_ATTR_CUSTOM_RANGE_END
This module defines SAI portable types.
Generic extensions methods table retrieved with sai_api_query()