-
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
Port Error Event Callback #2048
Conversation
inc/saiport.h
Outdated
/** Link Training set failed */ | ||
SAI_PORT_ERROR_EVENT_LINK_TRAINING_FAILED, | ||
|
||
/** Port PCS Errors */ |
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.
@JaiOC PCS errors means? Is it a counter value or some error indication? if later, what specific eror? PCS lane alignment error?
inc/saiport.h
Outdated
* @brief Enable/Disable Port UNRELIABLE loss of signal | ||
* | ||
* @type bool | ||
* @flags CREATE_AND_SET | ||
* @default false | ||
*/ | ||
SAI_PORT_ATTR_UNRELIABLE_LOS_ENABLE, | ||
|
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 This Attribute does not seem to aligned with the PR description for error events. This is more of capability of the PHY which can support unreliable LOS enable. So, can we take this in a separate PR?
It is a simple change. Can I update the title of the PR and comments to
reflect that this is also included in this?
…On Wed, Jul 10, 2024 at 3:15 PM Prince George ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In inc/saiport.h
<#2048 (comment)>
:
> + * @brief Enable/Disable Port UNRELIABLE loss of signal
+ *
+ * @type bool
+ * @flags CREATE_AND_SET
+ * @default false
+ */
+ SAI_PORT_ATTR_UNRELIABLE_LOS_ENABLE,
+
@JaiOCP <https://github.com/JaiOCP> This Attribute does not seem to
aligned with the PR description for error events. This is more of
capability of the PHY which can support unreliable LOS enable. So, can we
take this in a separate PR?
—
Reply to this email directly, view it on GitHub
<#2048 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKCSHLIWTVWWHG4QZHHUX7LZLWXADAVCNFSM6AAAAABKVYAJWOVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDCNZQGQ3DOMJYGI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
This electronic communication and the information and any files transmitted
with it, or attached to it, are confidential and are intended solely for
the use of the individual or entity to whom it is addressed and may contain
information that is confidential, legally privileged, protected by privacy
laws, or otherwise restricted from disclosure to anyone else. If you are
not the intended recipient or the person responsible for delivering the
e-mail to the intended recipient, you are hereby notified that any use,
copying, distributing, dissemination, forwarding, printing, or copying of
this e-mail is strictly prohibited. If you received this e-mail in error,
please return the e-mail to the sender, delete it from your computer, and
destroy any printed copy of it.
|
inc/saiport.h
Outdated
SAI_PORT_ERROR_EVENT_LOCAL_FAULT, | ||
|
||
/** Pre-emphasis failed */ | ||
SAI_PORT_ERROR_EVENT_PREEMPHASIS_FAILED, |
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.
Why should this event be sent via notification ? Or we want after falure on set to send it asynchroneously via notification from SAI to SWSS ?
@JaiOCP Will this error event be notified to OA via port_change_event just like link up/down notification? |
inc/saiport.h
Outdated
SAI_PORT_ERROR_EVENT_REMOTE_FAULT, | ||
|
||
/** Local-fault */ | ||
SAI_PORT_ERROR_EVENT_LOCAL_FAULT, |
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 need a way to know if LF/RF is ASSERTED or DE-ASSERTED
inc/saiport.h
Outdated
SAI_PORT_ERROR_EVENT_FEC_FAILED, | ||
|
||
/** Speed set failed */ | ||
SAI_PORT_ERROR_EVENT_SPEED_FAILED, | ||
|
||
/** Interface type set failed */ | ||
SAI_PORT_ERROR_EVENT_IF_TYPE_FAILED, | ||
|
||
/** Media type set failed */ | ||
SAI_PORT_ERROR_EVENT_MEDIA_TYPE_FAILED, | ||
|
||
/** Link Training set failed */ | ||
SAI_PORT_ERROR_EVENT_LINK_TRAINING_FAILED, |
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 can event notification provide the data to know if these error are currently asserted or not
inc/saiport.h
Outdated
SAI_PORT_ERROR_EVENT_FEC_FAILED, | ||
|
||
/** Speed set failed */ | ||
SAI_PORT_ERROR_EVENT_SPEED_FAILED, | ||
|
||
/** Interface type set failed */ | ||
SAI_PORT_ERROR_EVENT_IF_TYPE_FAILED, | ||
|
||
/** Media type set failed */ | ||
SAI_PORT_ERROR_EVENT_MEDIA_TYPE_FAILED, | ||
|
||
/** Link Training set failed */ | ||
SAI_PORT_ERROR_EVENT_LINK_TRAINING_FAILED, |
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 can event notification provide the data to know if these error are currently asserted or not
inc/saiport.h
Outdated
/** FEC set failed */ | ||
SAI_PORT_ERROR_EVENT_FEC_FAILED, | ||
|
||
/** Speed set failed */ | ||
SAI_PORT_ERROR_EVENT_SPEED_FAILED, | ||
|
||
/** Interface type set failed */ | ||
SAI_PORT_ERROR_EVENT_IF_TYPE_FAILED, | ||
|
||
/** Media type set failed */ | ||
SAI_PORT_ERROR_EVENT_MEDIA_TYPE_FAILED, | ||
|
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 can you please elaborate more on these failures. Are these failures during AN ?
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 Should we take these error notification as part of link up and link down. Also see during port init there will be notification for port that was down to begin with.
1bc1a0c
to
469dc91
Compare
Closing this PR. |
Callback for various errors observed by port.