Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions inc/saiport.h
Original file line number Diff line number Diff line change
Expand Up @@ -3481,6 +3481,14 @@ typedef enum _sai_port_attr_t
*/
SAI_PORT_ATTR_APSU_ISL_READY,

/**
  * @brief Query list of supported port loopback modes for the port
  *
  * @type sai_s32_list_t sai_port_loopback_mode_t
  * @flags READ_ONLY
  */
  SAI_PORT_ATTR_SUPPORTED_LOOPBACK_MODE,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How would the local port know the remote end behavior?
/** Port loopback at PHY remote end */
SAI_PORT_LOOPBACK_MODE_PHY_REMOTE,

/** Port loopback at MAC remote end */
SAI_PORT_LOOPBACK_MODE_MAC_REMOTE

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JaiOCP
The remote loopback mode is configured on the local port, not on the remote device. When enabled, the local port loops back traffic received from the remote link partner back toward that same link partner, effectively emulating loopback behavior at the remote end.
For additional context, this behavior was introduced as part of the original remote loopback mode contribution: #1234


/**
* @brief End of attributes
*/
Expand Down
Loading