From 3264052949a9b84f382dc23dc3be8c14c8deeb11 Mon Sep 17 00:00:00 2001 From: ETWen Date: Thu, 22 Oct 2026 14:26:14 +0800 Subject: [PATCH] fix(fdr): Limit blanton_fdr.sh to the cabled ports The default '1-259,270-565' also covered the uncabled ports (cd15..19, cd47..51, cd111..115, ...). Use the TL_PS_PORTS list of blanton_traffic_linespeed.sh instead, the same one blanton_ber_debug.sh uses. Port 268 (ce0) stays out; FDR_PORTS can add it. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_0131orciRKrejchsuDk6UpXk --- .../Blanton_Script/blanton_fdr.sh | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/Script_ABC_Blanton/Blanton_Script/blanton_fdr.sh b/src/Script_ABC_Blanton/Blanton_Script/blanton_fdr.sh index 6da04b9..c35aa45 100644 --- a/src/Script_ABC_Blanton/Blanton_Script/blanton_fdr.sh +++ b/src/Script_ABC_Blanton/Blanton_Script/blanton_fdr.sh @@ -7,6 +7,11 @@ # 'phydiag fdrstat ...' through bcmcmd, the same # way blanton_ber_debug.sh drives prbsstat. Every bcmcmd # output is printed as is -- no parsing, no PASS/FAIL. +# V1.0.1 2026-10-22 Change: default FDR_PORTS is now the cabled-port list of +# blanton_traffic_linespeed.sh (TL_PS_PORTS), not +# '1-259,270-565' -- the old range also printed the +# uncabled ports (cd15..19, cd47..51, ...). Port 268 (ce0) +# is still left out; add ',268' through FDR_PORTS. # # Sub-commands (each one runs on unit 0, then unit 1): # start phydiag '' fdrstat STArt bin_group=both Interval=30 @@ -27,13 +32,16 @@ # -n dry run: print the bcmcmd lines, do not run them # # Env overrides: -# BCMCMD_CMD=bcmcmd FDR_PORTS=1-259,270-565 FDR_INTERVAL=30 -# FDR_BIN_GROUP=both +# BCMCMD_CMD=bcmcmd FDR_INTERVAL=30 FDR_BIN_GROUP=both +# FDR_PORTS="1-24,40-96,..." (default: the cabled ports, same list as +# TL_PS_PORTS in blanton_traffic_linespeed.sh +# and BER_PORTS in blanton_ber_debug.sh; no 268) # ============================================================================= BCMCMD_CMD="${BCMCMD_CMD:-bcmcmd}" FDR_UNITS="0 1" -FDR_PORTS="${FDR_PORTS:-1-259,270-565}" +# Cabled ports only -- keep in sync with TL_PS_PORTS in blanton_traffic_linespeed.sh +FDR_PORTS="${FDR_PORTS:-1-24,40-96,112-168,184-240,256-259,270-308,310-327,342-380,382-399,414-452,454-471,486-524,526-543,558-565}" FDR_INTERVAL="${FDR_INTERVAL:-30}" FDR_BIN_GROUP="${FDR_BIN_GROUP:-both}" FDR_DRY_RUN=0