Skip to content

RDKB-65989: Move MAP-T ratio calculation to WanManager from DHCPManager - #225

Open
sivaraj-comcast wants to merge 15 commits into
rdkcentral:mainfrom
sivaraj-comcast:main
Open

RDKB-65989: Move MAP-T ratio calculation to WanManager from DHCPManager#225
sivaraj-comcast wants to merge 15 commits into
rdkcentral:mainfrom
sivaraj-comcast:main

Conversation

@sivaraj-comcast

Copy link
Copy Markdown
Contributor

Reason for change: DHCPManager now sends ratio=0 in the rbus event, since ratio computation is removed from DHCPManager; WanManager derives ratio from psidLen as the single authoritative owner.

Test Procedure: Verify "sysevent get mapt_ratio" and Device.MAP.Domain.1.Rule.1.X_RDKCENTRAL-COM_Ratio / Device.DHCPv6.Client.1.X_RDKCENTRAL-COM_RcvOption.MapRatio is correctly set by WanManager after MAPT is configured.
Risks: Low
Priority: P1
Signed-off-by: Sivaraj_Sivalingam@comcast.com

sivaraj-comcast and others added 15 commits April 17, 2026 16:28
RDKB-64484: Allow psid offset value 0 for MAPT configuration

Reason for change: Remove setting defalut value for PSID Offset to allow using psid offset 0 from the backend
Test Procedure: Verify the psid offset 0 is configured for MAPT when CE receives it from DHCPV6 Option95 (suboption 93) response
Risks: Low
Priority:P1
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
RDKB-64484: Allow psid offset value 0 for MAPT configuration

Reason for change: Remove setting defalut value for PSID Offset to allow using psid offset 0 from the backend
Test Procedure: Verify the psid offset 0 is configured for MAPT when CE receives it from DHCPV6 Option95 (suboption 93) response
Risks: Low
Priority:P1
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Added psid len validation.
Updated log type / log message
Reason for change: DHCPManager now sends ratio=0 in the rbus event, since ratio computation is removed from DHCPManager; WanManager derives ratio from psidLen as the single authoritative owner.

Test Procedure: Verify "sysevent get mapt_ratio" and Device.MAP.Domain.1.Rule.1.X_RDKCENTRAL-COM_Ratio / Device.DHCPv6.Client.1.X_RDKCENTRAL-COM_RcvOption.MapRatio is correctly set by WanManager after MAPT is configured.
Risks: Low
Priority: P1
Signed-off-by: Sivaraj_Sivalingam@comcast.com
Copilot AI review requested due to automatic review settings August 4, 2026 19:40
@sivaraj-comcast
sivaraj-comcast requested a review from a team as a code owner August 4, 2026 19:40

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Moves MAP-T sharing ratio computation out of DHCPManager and into WanManager so WanManager becomes the single authoritative owner of ratio, deriving it from the resolved psidLen (including the computed-PSID path).

Changes:

  • Removes the legacy “ratio==0 means 1” normalization in WanManager_VerifyMAPTConfiguration.
  • Computes dhcp6cMAPTMsgBody->ratio in WanManager after psidLen is determined (from DHCPv6 option or computed PSID path).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread source/WanManager/wanmgr_net_utils.c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants