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
Set media input loopback mode on logical port Ethernet84, the expected value of page 0x13, byte 0xB5= 0xF0
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
Set media input loopback mode on logical port Ethernet84, the expected value of page 0x13, byte 0xB5= 0xF0