You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/SAI-Proposal-HW-Resource.md
+13-1Lines changed: 13 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,11 +29,23 @@ New data type sai_object_stage_t is introduced. This data type specifies if a re
29
29
30
30
## Capability Query
31
31
----------------
32
-
Capability query API is enhanced with a query for attribute stage.NOS can query the attribute for a given HW support
32
+
New query API is introduced for an attribute's stage. NOS can query the stage of an object's attribute for a given HW support. One of the following stage is returned as part the API
33
+
- SAI_ATTR_STAGE_NA: Stage is not applicable
33
34
- SAI_ATTR_STAGE_BOTH: Attribute is common to ingress and egress stage
34
35
- SAI_ATTR_STAGE_INGRESS: Attribute is applicable only to ingress stage
35
36
- SAI_ATTR_STAGE_EGRESS: Attribute is applicabe only to egress stage
36
37
38
+
Length of the returned array "stage" is attr_count. Caller must provide the buffer for array "stage".
39
+
40
+
```
41
+
sai_status_t sai_query_object_stage(
42
+
_In_ sai_object_id_t switch_id,
43
+
_In_ sai_object_type_t object_type,
44
+
_In_ uint32_t attr_count,
45
+
_In_ const sai_attribute_t *attr_list,
46
+
_Out_ sai_object_stage_t *stage);
47
+
```
48
+
37
49
## HOSTIF Trap Group
38
50
-----------------
39
51
A new CREATE_ONLY trap group attribute is introduced. NOS can set this attribute to specify the stage of the trap group.
0 commit comments