From 5d7e2e47789c807948505afe6d457895314a7201 Mon Sep 17 00:00:00 2001 From: JaiOCP Date: Thu, 10 Jul 2025 11:56:42 -0700 Subject: [PATCH 1/2] KV for managing the Hierarchical NHG Signed-off-by: JaiOCP --- inc/saiswitch.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/inc/saiswitch.h b/inc/saiswitch.h index 35ad7ff90..f9318c913 100644 --- a/inc/saiswitch.h +++ b/inc/saiswitch.h @@ -3626,7 +3626,7 @@ typedef enum _sai_switch_stat_t * @note This value needs to be incremented whenever a new switch attribute key * is added. */ -#define SAI_SWITCH_ATTR_MAX_KEY_COUNT 16 +#define SAI_SWITCH_ATTR_MAX_KEY_COUNT 17 /* * List of switch attributes keys that can be set using key=value @@ -3692,6 +3692,11 @@ typedef enum _sai_switch_stat_t */ #define SAI_KEY_INIT_CONFIG_FILE "SAI_INIT_CONFIG_FILE" +/** + * @def SAI_KEY_NHG_HIERARCHICAL_NEXTHOP + */ +#define SAI_KEY_NHG_HIERARCHICAL_NEXTHOP "SAI_NHG_HIERARCHICAL_NEXTHOP" + /** * @def SAI_KEY_BOOT_TYPE * From 4557ba517e1ffecef07d91e824ec3ea7faebd8c7 Mon Sep 17 00:00:00 2001 From: JaiOCP Date: Thu, 17 Jul 2025 16:12:53 -0700 Subject: [PATCH 2/2] KV for hierarchical NHG Signed-off-by: JaiOCP --- inc/saiswitch.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/inc/saiswitch.h b/inc/saiswitch.h index f9318c913..3bbd8a459 100644 --- a/inc/saiswitch.h +++ b/inc/saiswitch.h @@ -3694,6 +3694,8 @@ typedef enum _sai_switch_stat_t /** * @def SAI_KEY_NHG_HIERARCHICAL_NEXTHOP + * true: Nexthop groups consists of tunnel and IP nexthop + * false: Nexthop groups consists of IP nexthop only */ #define SAI_KEY_NHG_HIERARCHICAL_NEXTHOP "SAI_NHG_HIERARCHICAL_NEXTHOP"