From 5ded7905d5e84bb9339124e2eb799b015d368bf1 Mon Sep 17 00:00:00 2001 From: Kishore Gummadidala Date: Wed, 23 Apr 2025 15:34:05 -0700 Subject: [PATCH] Add new next hop group attribute to specify if a next hop group is programmed by repeating the next hop members in proportion to their weight or by using the intrinsic next hop group weight support in the hardware. Signed-off-by: Kishore Gummadidala --- inc/sainexthopgroup.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/inc/sainexthopgroup.h b/inc/sainexthopgroup.h index a1b10d4ef..0c0f90d0a 100644 --- a/inc/sainexthopgroup.h +++ b/inc/sainexthopgroup.h @@ -299,6 +299,17 @@ typedef enum _sai_next_hop_group_attr_t */ SAI_NEXT_HOP_GROUP_ATTR_LABEL, + /** + * @brief Weighted multi path configuration mode. + * false: Nexthop group is programmed with repeated member entries proportional to their weight + * true: Nexthop group is programmed with switch native configuration + * + * @type bool + * @flags CREATE_AND_SET + * @default false + */ + SAI_NEXT_HOP_GROUP_ATTR_NATIVE_WCMP, + /** * @brief End of attributes */