-
Notifications
You must be signed in to change notification settings - Fork 543
Create API for fast linkup configuration. #2203
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
base: master
Are you sure you want to change the base?
Create API for fast linkup configuration. #2203
Conversation
0693a69
to
a62e203
Compare
@prgeor Can you help review? |
c5c2e4a
to
f69d599
Compare
inc/saiswitch.h
Outdated
* @type sai_u16_range_t | ||
* @flags READ_ONLY | ||
*/ | ||
SAI_SWITCH_ATTR_FAST_LINKUP_POLLING_TIME_RANGE, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@iamjustadd What is the use case for this? How many samples will be used to derive the past link up time?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@iamjustadd What is the use case for this? How many samples will be used to derive the past link up time?
SAI_SWITCH_ATTR_FAST_LINKUP_POLLING_TIME_RANGE is used to obtain the range that can be used for configuration of SAI_SWITCH_ATTR_FAST_LINKUP_POLLING_TIME. Please clarify regarding the "samples" question
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
User should call SAI_SWITCH_ATTR_FAST_LINKUP_POLLING_TIME_RANGE before set FAST_LINKUP_POLLING_TIME. Different vendor may got different range.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
User should call SAI_SWITCH_ATTR_FAST_LINKUP_POLLING_TIME_RANGE before set FAST_LINKUP_POLLING_TIME. Different vendor may got different range.
correct. It is the purpose of SAI_SWITCH_ATTR_FAST_LINKUP_POLLING_TIME_RANGE
inc/saiswitch.h
Outdated
/** | ||
* @brief Time (in secs) during which the link must be UP and have the BER below the level configured with SAI_SWITCH_ATTR_FAST_LINKUP_GUARD_TIME_BER to have the next linkup as fast link-up | ||
* | ||
* If either link failures or high BER event happen during the configured time then full link-up flow (not fast) will be used for next link-up. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@iamjustadd Which is the "configured time" referring to here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@iamjustadd Which is the "configured time" referring to here?
SAI_SWITCH_ATTR_FAST_LINKUP_GUARD_TIME
46db2be
to
bc82fce
Compare
bc82fce
to
8f84bcf
Compare
8f84bcf
to
62b4c9b
Compare
f8f9e35
to
0694b31
Compare
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
@iamjustadd build failure. please fix |
0694b31
to
0851a8f
Compare
Please help review on this. Thanks. |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
0851a8f
to
7eb56d2
Compare
/azp run |
Commenter does not have sufficient privileges for PR 2203 in repo opencomputeproject/SAI |
7eb56d2
to
9658eeb
Compare
Signed-off-by: Martin Liao <[email protected]>
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JaiOCP any comments?
Hi team,
This PR is for creating SAI API for FR fast linkup.