Skip to content

[LLR]: CLI implementation for Link Layer Retry feature#4499

Open
rminnikanti wants to merge 1 commit into
sonic-net:masterfrom
rminnikanti:llr
Open

[LLR]: CLI implementation for Link Layer Retry feature#4499
rminnikanti wants to merge 1 commit into
sonic-net:masterfrom
rminnikanti:llr

Conversation

@rminnikanti
Copy link
Copy Markdown
Contributor

@rminnikanti rminnikanti commented Apr 28, 2026

HLD: sonic-net/SONiC#2098

What I did

Show commands:

  • show llr interface [interface-name] - Displays per-port LLR mode, local/remote status, and profile binding. Reads from both APPL_DB (active) and CONFIG_DB (pending).
  • show llr profile [profile-name] - Displays LLR profile parameters from APPL_DB.
  • show llr counters [-i interface-name] - Summary counter table via llrstat script.
  • show llr counters detailed [interface-name] - Detailed per-port counter display.

Config commands:

  • config llr interface mode <interface> <static> - Set LLR mode.
  • config llr interface local <interface> {enabled|disabled} - Enable/disable LLR reception.
  • config llr interface remote <interface> {enabled|disabled} - Enable/disable LLR transmission.
  • All config commands check LLR_CAPABLE in STATE_DB before applying.

Clear commands:

  • sonic-clear llr counters - Clear all LLR counters.
  • sonic-clear llr counters interface <interface-name> - Clear per-port LLR counters.

Counterpoll:

  • counterpoll llr enable/disable - Enable/disable LLR flex counter polling.
  • counterpoll llr interval <ms> - Set polling interval.

Counter script:

  • Standalone script for LLR counter display.

How I did it

How to verify it

  • All CLI unit tests pass
  • Manual validation on VS image:

Previous command output (if the output of a command-line utility has changed)

New command output (if the output of a command-line utility has changed)

Signed-off-by: Ravi Minnikanti rminnikanti@marvell.com

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

show llr interface
show llr profile
show llr counters [-i] Ethernet0
show llr counters detailed Ethernet0

config llr interface mode/local/remote
counterpoll llr enable/disable/interval

sonic-clear llr counters
sonic-clear llr counters interface

Signed-off-by: Ravi Minnikanti <rminnikanti@marvell.com>
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

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