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 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0131orciRKrejchsuDk6UpXk
This commit is contained in:
2026-10-22 14:26:14 +08:00
co-authored by Claude Opus 5.5
parent f02ba22924
commit 3264052949
@@ -7,6 +7,11 @@
# 'phydiag <ports> 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 '<ports>' 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