Policer enhancement to support operational visibility and MEF Metering Modes - #2323
Policer enhancement to support operational visibility and MEF Metering Modes#2323AnandhiDhanabalan wants to merge 1 commit into
Conversation
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
|
@kcudnik, I'd like to add an alias similar to the one below. However, I get a compilation error because two enum values resolve to the same value. Is there a way to support enum aliases in this case? SAI_POLICER_MODE_TR_TCM_V2 = 0x00000003,
/** MEF 10.2 with Coupling Flag = 0 (RFC 4115 compliant) */
SAI_POLICER_MODE_MEF0 = SAI_POLICER_MODE_TR_TCM_V2, |
|
why you want to add alias if you have explicit name for that alreay? add "@ignore" to this enum |
Current SAI supports only
Is supporting such enum aliases possible? |
yes |
Can I update the PR even if warning/error for same comes when |
|
yes, you can force push |
|
@tjchadaga could you please assign a reviewer for this PR |
|
/azp run |
|
Azure Pipelines: Successfully started running 1 pipeline(s). |
|
@kcudnik , can you help me rerun |
|
/azp run |
|
Azure Pipelines: Successfully started running 1 pipeline(s). |
b9fa87e to
f3a6f9b
Compare
|
@kcudnik , Squashed the commits into a single commit and force-pushed. Verified locally that |
|
i just now checked master, and master builds fine so i dont know wher you get those errors |
|
/azp run |
|
Azure Pipelines: Successfully started running 1 pipeline(s). |
|
you have conflicts, you need to resolve |
Signed-off-by: Anandhi Dhanabalan <adhanabalan@marvell.com> Added separate enum alias for TRTCM (rfc-4115) Signed-off-by: Anandhi Dhanabalan <adhanabalan@marvell.com> Fix review comment to remove SAI_POLICER_MODE_TR_TCM_V2 Signed-off-by: Anandhi Dhanabalan <adhanabalan@marvell.com>
f3a6f9b to
1a49afe
Compare
|
@kcudnik , resolved conflicts and verified locally - no issues found. |
|
@tjchadaga can you approve this PR ? |
|
/azp run |
|
Azure Pipelines: Successfully started running 1 pipeline(s). |
Overview
This proposal enhances the SAI policer specification by introducing capabilities that improve operational transparency and broaden deployment readiness for carrier and enterprise ethernet environments.
Key Enhancements
1. Addition of MEF Standard Metering Modes
Introduce support for MEF 10.2 metering algorithms (MEF0 / MEF1), widely adopted in service provider and metro Ethernet networks. This expands SAI policer capabilities to align with established carrier bandwidth profiling models.
2. Improved Hardware Configuration Visibility
Provide a standard mechanism to query the actual CIR / PIR / CBS / PBS values programmed in hardware. This gives operators clear insight into effective policer settings, helping validate SLA targets, understand hardware-applied values, and simplify troubleshooting.