Skip to content

Commit

Permalink
[sairedis] - serialization of PFC related atttributes (sonic-net#48)
Browse files Browse the repository at this point in the history
* SAI_PORT_ATTR_QOS_PFC_PRIORITY_TO_PRIORITY_GROUP_MAP
* SAI_PORT_ATTR_QOS_PFC_PRIORITY_TO_QUEUE_MAP

signed-off-by: hrachya@mellanox.com
  • Loading branch information
hrachyam authored and lguohan committed Jul 28, 2016
1 parent b2fca1b commit 297a8fe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions common/saiserialize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ sai_serialization_map_t sai_get_serialization_map()
map[SAI_OBJECT_TYPE_PORT][SAI_PORT_ATTR_QOS_DSCP_TO_TC_MAP] = SAI_SERIALIZATION_TYPE_OBJECT_ID;
map[SAI_OBJECT_TYPE_PORT][SAI_PORT_ATTR_QOS_TC_TO_QUEUE_MAP] = SAI_SERIALIZATION_TYPE_OBJECT_ID;
map[SAI_OBJECT_TYPE_PORT][SAI_PORT_ATTR_QOS_TC_TO_PRIORITY_GROUP_MAP] = SAI_SERIALIZATION_TYPE_OBJECT_ID;
map[SAI_OBJECT_TYPE_PORT][SAI_PORT_ATTR_QOS_PFC_PRIORITY_TO_PRIORITY_GROUP_MAP] = SAI_SERIALIZATION_TYPE_OBJECT_ID;
map[SAI_OBJECT_TYPE_PORT][SAI_PORT_ATTR_QOS_PFC_PRIORITY_TO_QUEUE_MAP] = SAI_SERIALIZATION_TYPE_OBJECT_ID;
map[SAI_OBJECT_TYPE_PORT][SAI_PORT_ATTR_QOS_INGRESS_BUFFER_PROFILE_LIST] = SAI_SERIALIZATION_TYPE_OBJECT_LIST;
map[SAI_OBJECT_TYPE_PORT][SAI_PORT_ATTR_QOS_EGRESS_BUFFER_PROFILE_LIST] = SAI_SERIALIZATION_TYPE_OBJECT_LIST;
map[SAI_OBJECT_TYPE_PORT][SAI_PORT_ATTR_NUMBER_OF_PRIORITY_GROUPS] = SAI_SERIALIZATION_TYPE_UINT32;
Expand All @@ -60,6 +62,7 @@ sai_serialization_map_t sai_get_serialization_map()
map[SAI_OBJECT_TYPE_PORT][SAI_PORT_ATTR_QOS_QUEUE_LIST] = SAI_SERIALIZATION_TYPE_OBJECT_LIST;
map[SAI_OBJECT_TYPE_PORT][SAI_PORT_ATTR_QOS_NUMBER_OF_SCHEDULER_GROUPS] = SAI_SERIALIZATION_TYPE_UINT32;
map[SAI_OBJECT_TYPE_PORT][SAI_PORT_ATTR_QOS_SCHEDULER_GROUP_LIST] = SAI_SERIALIZATION_TYPE_OBJECT_LIST;
map[SAI_OBJECT_TYPE_PORT][SAI_PORT_ATTR_PRIORITY_FLOW_CONTROL] = SAI_SERIALIZATION_TYPE_UINT8;

map[SAI_OBJECT_TYPE_SCHEDULER][SAI_SCHEDULER_ATTR_SCHEDULING_ALGORITHM] = SAI_SERIALIZATION_TYPE_UINT32;
map[SAI_OBJECT_TYPE_SCHEDULER][SAI_SCHEDULER_ATTR_SCHEDULING_WEIGHT] = SAI_SERIALIZATION_TYPE_UINT8;
Expand Down

0 comments on commit 297a8fe

Please sign in to comment.