Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[202311][CMIS] Add lane_mask parameter to set_loopback_mode() to enable setti… #499

Merged
merged 1 commit into from
Sep 12, 2024

Conversation

xinyulin
Copy link
Contributor

@xinyulin xinyulin commented Sep 11, 2024

Description

This commit introduces two additional input parameters, lane_mask and enable, to the set_loopback_mode() function. By specifying lane_mask, users can enable or disable the loopback mode on individual lanes rather than applying it to the entire physical port

Motivation and Context

Previously, the set_loopback_mode() function affected all lanes of a physical port simultaneously, limiting flexibility. By adding the lane_mask parameter, this update allows callers to target specific lanes, thereby enabling more precise testing, debugging, and configuration of network equipment.

How Has This Been Tested?

Tested on Cisco 8111 with Credo C1 cable.
Set host input loopback mode on logical port Ethernet80, the expected value of page 0x13, byte 0xB7= 0x0F
image

Set media input loopback mode on logical port Ethernet84, the expected value of page 0x13, byte 0xB5= 0xF0
image

…ng loopback mode for individual lanes rather than the entire physical port

Signed-off-by: xinyu <xinyu0123@gmail.com>
@mihirpat1
Copy link
Contributor

@yxieca Can you please help to cherry-pick this to 202311? @xinyulin has tested the changes on 202311
MSFT ADO - 28898451

@yxieca yxieca merged commit 8fb25f1 into sonic-net:202311 Sep 12, 2024
5 checks passed
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.

3 participants