Skip to content

Commit

Permalink
saiport: add support for link training ability query (#1434)
Browse files Browse the repository at this point in the history
Description
Add support for link-training ability query to suppress redundant link-training requests those are doomed to fail

Motivation and Context
link-training could either be unavailable on certain ports of a switch silicon or totally unsupported on an entire switch silicon
In order to prevent swss and syncd error out from redundant link-training requests, it's better to introduce this port attribute

Signed-off-by: Dante Su <dante.su@broadcom.com>
  • Loading branch information
ds952811 authored Apr 5, 2022
1 parent fc7e8a5 commit 66ab9dc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions inc/saiport.h
Original file line number Diff line number Diff line change
Expand Up @@ -2096,6 +2096,14 @@ typedef enum _sai_port_attr_t
*/
SAI_PORT_ATTR_PFC_TC_DLR_INTERVAL,

/**
* @brief Query link-training support
*
* @type bool
* @flags READ_ONLY
*/
SAI_PORT_ATTR_SUPPORTED_LINK_TRAINING_MODE,

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

0 comments on commit 66ab9dc

Please sign in to comment.