Skip to content

Commit

Permalink
add enum values to align with master's
Browse files Browse the repository at this point in the history
Signed-off-by: richardyu-ms <richard.yu@microsoft.com>
  • Loading branch information
richardyu-ms committed Apr 11, 2022
1 parent 83fb5a2 commit 5df7d3b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 12 deletions.
26 changes: 15 additions & 11 deletions inc/saiswitch.h
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,8 @@ typedef enum _sai_switch_failover_config_mode_t
* per tunnel type global configuration.
* SAI_OBJECT_TYPE_TUNNEL object configuration
* overrides the switch scoped global configuration.
*
* @flags Contains flags
*/
typedef enum _sai_switch_tunnel_attr_t
{
Expand All @@ -355,7 +357,7 @@ typedef enum _sai_switch_tunnel_attr_t
* @flags CREATE_AND_SET
* @default SAI_PACKET_ACTION_FORWARD
*/
SAI_SWITCH_TUNNEL_ATTR_LOOPBACK_PACKET_ACTION,
SAI_SWITCH_TUNNEL_ATTR_LOOPBACK_PACKET_ACTION = 1,

/**
* @brief Enable TC AND COLOR -> DSCP MAP on tunnel at encapsulation (access-to-network) node to remark the DSCP in tunnel header
Expand All @@ -366,7 +368,7 @@ typedef enum _sai_switch_tunnel_attr_t
* @allownull true
* @default SAI_NULL_OBJECT_ID
*/
SAI_SWITCH_TUNNEL_ATTR_ENCAP_QOS_TC_AND_COLOR_TO_DSCP_MAP,
SAI_SWITCH_TUNNEL_ATTR_ENCAP_QOS_TC_AND_COLOR_TO_DSCP_MAP = 9,

/**
* @brief Enable TC -> Queue MAP on tunnel encap
Expand Down Expand Up @@ -423,6 +425,8 @@ typedef enum _sai_switch_tunnel_attr_t
/**
* @brief Attribute Id in sai_set_switch_attribute() and
* sai_get_switch_attribute() calls
*
* @flags Contains flags
*/
typedef enum _sai_switch_attr_t
{
Expand Down Expand Up @@ -2352,23 +2356,23 @@ typedef enum _sai_switch_attr_t
SAI_SWITCH_ATTR_SUPPORTED_FAILOVER_MODE,

/**
* @brief Switch scoped Tunnel objects
* @brief Packet action when a packet ingress and gets routed back to same tunnel
*
* @type sai_object_list_t
* @type sai_packet_action_t
* @flags CREATE_AND_SET
* @objects SAI_OBJECT_TYPE_SWITCH_TUNNEL
* @default empty
* @default SAI_PACKET_ACTION_FORWARD
*/
SAI_SWITCH_ATTR_TUNNEL_OBJECTS_LIST,
SAI_SWITCH_ATTR_TUNNEL_LOOPBACK_PACKET_ACTION = 186,

/**
* @brief Packet action when a packet ingress and gets routed back to same tunnel
* @brief Switch scoped Tunnel objects
*
* @type sai_packet_action_t
* @type sai_object_list_t
* @flags CREATE_AND_SET
* @default SAI_PACKET_ACTION_FORWARD
* @objects SAI_OBJECT_TYPE_SWITCH_TUNNEL
* @default empty
*/
SAI_SWITCH_ATTR_TUNNEL_LOOPBACK_PACKET_ACTION,
SAI_SWITCH_ATTR_TUNNEL_OBJECTS_LIST = 190,

/**
* @brief End of attributes
Expand Down
4 changes: 3 additions & 1 deletion inc/saitunnel.h
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,8 @@ typedef enum _sai_tunnel_peer_mode_t

/**
* @brief Defines tunnel attributes
*
* @flags Contains flags
*/
typedef enum _sai_tunnel_attr_t
{
Expand Down Expand Up @@ -661,7 +663,7 @@ typedef enum _sai_tunnel_attr_t
* @allownull true
* @default SAI_NULL_OBJECT_ID
*/
SAI_TUNNEL_ATTR_ENCAP_QOS_TC_AND_COLOR_TO_DSCP_MAP,
SAI_TUNNEL_ATTR_ENCAP_QOS_TC_AND_COLOR_TO_DSCP_MAP = 25,

/**
* @brief Enable TC -> Queue MAP on tunnel encap
Expand Down

0 comments on commit 5df7d3b

Please sign in to comment.