From 0a6925a5833a0279c4b85c336ad21eb03a0bcf39 Mon Sep 17 00:00:00 2001 From: marif-nexthop Date: Fri, 30 Oct 2026 23:58:05 +0000 Subject: [PATCH] use the 1024-port DSF block for m4340nhp in agent HW test configs --- fboss/agent/test/utils/ConfigUtils.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fboss/agent/test/utils/ConfigUtils.cpp b/fboss/agent/test/utils/ConfigUtils.cpp index 94cd04cbaf10f..a1889aeee9cfa 100644 --- a/fboss/agent/test/utils/ConfigUtils.cpp +++ b/fboss/agent/test/utils/ConfigUtils.cpp @@ -93,6 +93,7 @@ int getRdswSysPortBlockSize( case PlatformType::PLATFORM_JANGA800BIC: return 22; case PlatformType::PLATFORM_BLACKWOLF800BANW: + case PlatformType::PLATFORM_M4340NHP: return 1024; default: break; @@ -1135,7 +1136,8 @@ void populateSwitchInfo( hwAsic->getSwitchType() == cfg::SwitchType::FABRIC) { auto dsfNode = dsfNodeConfig(*firstHwAsic, switchId, platformType); dsfNode.name() = fmt::format("hwTestSwitch{}", deviceSwitchId); - if (platformType == PlatformType::PLATFORM_JANGA800BIC && + if ((platformType == PlatformType::PLATFORM_JANGA800BIC || + platformType == PlatformType::PLATFORM_M4340NHP) && hwAsic->getSwitchType() == cfg::SwitchType::VOQ) { dsfNode.systemPortRanges() = *switchInfo.systemPortRanges(); if (switchInfo.localSystemPortOffset().has_value()) {