From 3816ec5307fb36e74dad4e1eb5d6262d51641845 Mon Sep 17 00:00:00 2001 From: Naveen Gamini Date: Thu, 15 Feb 2024 17:23:28 -0800 Subject: [PATCH] Add DF Mode, nexthopgroup id and splithorizon list assignment --- inc/saifdb.h | 12 ++++++++++++ inc/saivlan.h | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+) diff --git a/inc/saifdb.h b/inc/saifdb.h index ba554d363..48fc23224 100644 --- a/inc/saifdb.h +++ b/inc/saifdb.h @@ -165,6 +165,18 @@ typedef enum _sai_fdb_entry_attr_t */ SAI_FDB_ENTRY_ATTR_ENDPOINT_IP, + /** + * @brief NextHop Group with members as Nexthops as Tunnel Nexthops + * + * Valid only for Ethernet Segment Ports - EVPN Multihoming feature + * + * @type sai_object_id_t + * @flags CREATE_AND_SET + * @default SAI_NULL_OBJECT_ID + * @objects SAI_OBJECT_TYPE_NEXT_HOP_GROUP + */ + SAI_FDB_ENTRY_ATTR_NEXT_HOP_GROUP_ID, + /** * @brief Attach a counter * diff --git a/inc/saivlan.h b/inc/saivlan.h index 971af17df..bb73ec265 100644 --- a/inc/saivlan.h +++ b/inc/saivlan.h @@ -51,6 +51,20 @@ typedef enum _sai_vlan_tagging_mode_t } sai_vlan_tagging_mode_t; +/** + * @brief Attribute data for df_mode parameter + */ +typedef enum _sai_vlan_df_mode_t +{ + SAI_VLAN_DF_MODE_IGNORE, + + SAI_VLAN_DF_MODE_BLOCKED, + + SAI_VLAN_DF_MODE_UNBLOCKED + +} sai_vlan_df_mode_t; + + /** * @brief Attribute data for multicast_lookup_key_type parameter */ @@ -452,6 +466,28 @@ typedef enum _sai_vlan_member_attr_t */ SAI_VLAN_MEMBER_ATTR_VLAN_TAGGING_MODE, + /** + * @brief Designator Forwarding Mode + * + * Valid only for Ethernet Segment Ports - EVPN Multihoming feature + * + * @type sai_vlan_df_mode_t + * @flags CREATE_AND_SET + * @default SAI_VLAN_DF_MODE_IGNORE + */ + SAI_VLAN_MEMBER_ATTR_DF_MODE, + + /** + * @brief Split Horizon List ID + * + * Valid only for Ethernet Segment Ports - EVPN Multihoming feature + * + * @type sai_object_id_t + * @flags CREATE_AND_SET + * @objects SAI_OBJECT_TYPE_SPLIT_HORIZON_LIST + */ + SAI_VLAN_MEMBER_ATTR_SPLIT_HORIZON_LIST_ID, + /** * @brief End of attributes */