Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ECMP Member Capability and Configuration (#1461)
* Ecmp Member Count wo new Switch attributes are introduced. Read Only: SAI_SWITCH_ATTR_MAX_ECMP_MEMBER_COUNT This attribute is queried during switch init to find out device specific max number of ecmp members supported. CREATE_AND_SET (read/write): SAI_SWITCH_ATTR_ECMP_MEMBER_COUNT This attribute is set based on the query for MAX_ECMP_MEMBER_COUNT and can be changed dynamically. If the SAI adapter doesn't support dynamic change of this attribute based on certain conditions like if ECMP groups are already configured then MUST return error. Expected behavior when SAI_SWITCH_ATTR_ECMP_MEMBER_COUNT is set to a value < SAI_SWITCH_ATTR_MAX_ECMP_MEMBER_COUNT? SAI adapter should allocate the ECMP member count as specified by SAI_SWITCH_ATTR_ECMP_MEMBER_COUNT. This can be changed dynamically; SAI adapter may return OK or ERROR based on if HW supports dynamic change of ECMP member count or not. Decreasing of ecmp member count MUST always return ERROR. Increasing of ecmp member can be supported by newer generation of HW and return OK if supported. Typical Workflow: Switch object create Switch get SAI_SWITCH_ATTR_MAX_ECMP_MEMBER_COUNT: say SAI adapter returns 2k Switch set SAI_SWITCH_ATTR_ECMP_MEMBER_COUNT If step 3 is invoked after the system is fully configured and forwarding traffic SAI adapter MAY return error if HW is not capable of dynamically adjusting the ECMP group size Can you please clarify what is the expected hardware behavior when SAI_SWITCH_ATTR_ECMP_MEMBER_COUNT is set to a value < SAI_SWITCH_ATTR_MAX_ECMP_MEMBER_COUNT * Max ECMP Member Capability/Configuration Signed-off-by: Jai Kumar <jai.kumar@broadcom.com>
- Loading branch information