Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions inc/saiacl.h
Original file line number Diff line number Diff line change
Expand Up @@ -272,10 +272,10 @@ typedef enum _sai_acl_action_type_t
SAI_ACL_ACTION_TYPE_SET_ECMP_HASH_ID = 0x00000030,

/** Associate with virtual router */
SAI_ACL_ACTION_TYPE_SET_VRF,
SAI_ACL_ACTION_TYPE_SET_VRF = 0x00000031,

/** Set Forwarding class */
SAI_ACL_ACTION_TYPE_SET_FORWARDING_CLASS,
SAI_ACL_ACTION_TYPE_SET_FORWARDING_CLASS = 0x00000034,

} sai_acl_action_type_t;

Expand Down Expand Up @@ -2932,7 +2932,7 @@ typedef enum _sai_acl_entry_attr_t
* @flags CREATE_AND_SET
* @default disabled
*/
SAI_ACL_ENTRY_ATTR_ACTION_SET_FORWARDING_CLASS,
SAI_ACL_ENTRY_ATTR_ACTION_SET_FORWARDING_CLASS = SAI_ACL_ENTRY_ATTR_ACTION_START + 0x34,

/**
* @brief End of Rule Actions
Expand Down
41 changes: 41 additions & 0 deletions inc/saiswitch.h
Original file line number Diff line number Diff line change
Expand Up @@ -2575,6 +2575,47 @@ typedef enum _sai_switch_attr_t
*/
SAI_SWITCH_ATTR_SLAVE_MDIO_ADDR_LIST,

/**
* @brief Minimum priority for My MAC
*
* @type sai_uint32_t
* @flags READ_ONLY
*/
SAI_SWITCH_ATTR_MY_MAC_TABLE_MINIMUM_PRIORITY,

/**
* @brief Maximum priority for My MAC
*
* @type sai_uint32_t
* @flags READ_ONLY
*/
SAI_SWITCH_ATTR_MY_MAC_TABLE_MAXIMUM_PRIORITY,

/**
* @brief My MAC entries installed on the switch
*
* @type sai_object_list_t
* @flags READ_ONLY
* @objects SAI_OBJECT_TYPE_MY_MAC
*/
SAI_SWITCH_ATTR_MY_MAC_LIST,

/**
* @brief Number of My MAC entries installed on the switch
*
* @type sai_uint32_t
* @flags READ_ONLY
*/
SAI_SWITCH_ATTR_INSTALLED_MY_MAC_ENTRIES,

/**
* @brief Number of available My MAC entries
*
* @type sai_uint32_t
* @flags READ_ONLY
*/
SAI_SWITCH_ATTR_AVAILABLE_MY_MAC_ENTRIES,

/**
* @brief Maximum forwarding classes limit
*
Expand Down
3 changes: 2 additions & 1 deletion inc/saitypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,8 @@ typedef enum _sai_object_type_t
SAI_OBJECT_TYPE_FINE_GRAINED_HASH_FIELD = 94,
SAI_OBJECT_TYPE_SWITCH_TUNNEL = 95,
SAI_OBJECT_TYPE_MY_SID_ENTRY = 96,
SAI_OBJECT_TYPE_NEXT_HOP_GROUP_MAP = 97,
SAI_OBJECT_TYPE_MY_MAC = 97,
SAI_OBJECT_TYPE_NEXT_HOP_GROUP_MAP = 98,
SAI_OBJECT_TYPE_MAX, /* Must remain in last position */
} sai_object_type_t;

Expand Down
4 changes: 2 additions & 2 deletions meta/saiserializetest.c
Original file line number Diff line number Diff line change
Expand Up @@ -464,9 +464,9 @@ void test_serialize_enum()

ASSERT_STR_EQ(buf, "-1", res);

res = sai_serialize_enum(buf, &sai_metadata_enum_sai_object_type_t, 200);
res = sai_serialize_enum(buf, &sai_metadata_enum_sai_object_type_t, 128);

ASSERT_STR_EQ(buf, "200", res);
ASSERT_STR_EQ(buf, "128", res);

/* test all enums */

Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.