-
Notifications
You must be signed in to change notification settings - Fork 477
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
Changes for supporting some PHY Diagnostics #1527
Conversation
Signed-off-by: harshitgulati18 <hgulati@fb.com>
inc/saitypes.h
Outdated
|
||
/** Indicates that the status changed at least once since the last read */ | ||
bool changed; | ||
} sai_bool_current_and_changed_status_t; |
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.
should this struct have more meaningful name rather than names and types of fields?
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.
I changed the name of the struct. Please check the new revision
inc/saitypes.h
Outdated
{ | ||
uint32_t lane; | ||
sai_bool_current_and_changed_status_t value; | ||
} sai_port_lane_bool_current_and_changed_status_t; |
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.
should this struct have more meaningful name rather than names and types of fields?
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.
I changed the name of the struct. Please check the new revision
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.
please address comments
Signed-off-by: harshitgulati18 <hgulati@fb.com>
This change includes support for reading the following PHY layer diagnostics in SAI - Per PMD Lane Rx Signal Detect Per PMD Lane Rx Lock Status (aka CDR status) PCS Rx Link Status Per FEC Lane Alignment Marker Lock Signed-off-by: Chris Sommers <chrispsommers@gmail.com>
This change includes support for reading the following PHY layer diagnostics in SAI -
These are some useful diagnostics for debugging a link down or a link flap issue.
All of these diagnostics support a 'current' status and a 'changed' flag and therefore common helper types have been added that are shared by these 4 diagnostics. The current status indicates the status at the time of the read by NOS. The 'changed' flag indicates if the status changed at least once since the last read by NOS.
Following is an example sequence that demonstrates what a NOS will receive when it tries to read the rx signal detect with hardware state changes happening in the background. 'read_rx_signal_detect' is used to depict a read by the NOS.
Following is an example code for how a NOS can read these diagnostics