Skip to content
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

Link event damping HLD #1071

Merged
merged 2 commits into from
Apr 25, 2023
Merged

Link event damping HLD #1071

merged 2 commits into from
Apr 25, 2023

Conversation

Ashish1805
Copy link
Contributor

@Ashish1805 Ashish1805 commented Aug 24, 2022

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Aug 24, 2022

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: Ashish1805 / name: Ashish Singh (b2af2c8)

doc/link_event_damping/Link-event-damping-HLD.md Outdated Show resolved Hide resolved
doc/link_event_damping/Link-event-damping-HLD.md Outdated Show resolved Hide resolved
doc/link_event_damping/Link-event-damping-HLD.md Outdated Show resolved Hide resolved
doc/link_event_damping/Link-event-damping-HLD.md Outdated Show resolved Hide resolved
doc/link_event_damping/Link-event-damping-HLD.md Outdated Show resolved Hide resolved
@venkatmahalingam
Copy link
Collaborator

@zhangyanzhao Please add me as the reviewer.

@liat-grozovik
Copy link
Collaborator

@Ashish1805 where do we stands with this HLD?
Was there a review in the community with feedback provided? what is the SONiC release target is expected?
What about the SAI changes? on which SAI release this is expected to get it?

@zhangyanzhao
Copy link
Collaborator

@zhangyanzhao Please add me as the reviewer.

please accept the invitation.

@zhangyanzhao
Copy link
Collaborator

This HLD was reviewed in SONiC community on 10/18/2022.

@zhangyanzhao
Copy link
Collaborator

Deferred from 202211 release.

@zhangyanzhao
Copy link
Collaborator

@Ashish1805 can you please help to add the code PRs as agreed in community? Also, please sign the EasyCLA, that is required before you can submit PRs. Thanks.

@zhangyanzhao
Copy link
Collaborator

HLD was reviewed in community on 10/18/2022. Keep a record

@zhangyanzhao
Copy link
Collaborator

This PR contains the HLD for link event damping.

Co-authored-by: Mike Beresford <mberes@google.com>

Signed-off-by: Ashish Singh <ashishksingh@google.com>
@Ashish1805
Copy link
Contributor Author

Hi @venkatmahalingam, Can you please take a look at the PR when get some time? Thank you.

@Ashish1805
Copy link
Contributor Author

Ashish1805 commented Mar 29, 2023

@eddyk-nvidia As based on the comments provided I have updated the PR, can you please take a look at the PR when you get some time? Thank you.

@Ashish1805
Copy link
Contributor Author

Hi @lguohan, did we answer your question on why not using LUA script or do you have more question on that? Thank you.

@Ashish1805
Copy link
Contributor Author

Hi @prgeor, Can you please take a look at the PR when get some time? Thank you.

@prgeor
Copy link
Contributor

prgeor commented Mar 30, 2023

Hi @prgeor, Can you please take a look at the PR when get some time? Thank you.

@Ashish1805 Ack. I should have my comments by 4/5

Ashish1805 pushed a commit to Ashish1805/sonic-sairedis that referenced this pull request Nov 14, 2023
link event damping timer events.

- Handler in the class will be used to handle the timer event of link
  event dampers.

HLD: sonic-net/SONiC#1071
Ashish1805 pushed a commit to Ashish1805/sonic-sairedis that referenced this pull request Nov 16, 2023
link event damping timer events.

- Handler in the class will be used to handle the timer event of link
  event dampers.

HLD: sonic-net/SONiC#1071
Ashish1805 pushed a commit to Ashish1805/sonic-sairedis that referenced this pull request Nov 16, 2023
- Class to handle the port state change event callback from SAI and
  sending the events to syncd main thread for processing by link event
  damper.

Depends on: sonic-net#1297

HLD: sonic-net/SONiC#1071
Ashish1805 pushed a commit to Ashish1805/sonic-sairedis that referenced this pull request Nov 16, 2023
damping config attr.

- Adding serialization/deserialization logic for link event damping
  config so that when libsai is sending link event damping algo and
  config to syncd for set request, it uses serialization logic to
  serialize the requested data before sending the set request and when
  syncd receives the link event damping port attribute set request, it
  uses the deserialization logic to deserialize the data.

HLD: sonic-net/SONiC#1071
kcudnik pushed a commit to sonic-net/sonic-sairedis that referenced this pull request Nov 16, 2023
…1312)

Handler in the class will be used to handle the timer event of link event dampers.
HLD: sonic-net/SONiC#1071
kcudnik pushed a commit to sonic-net/sonic-sairedis that referenced this pull request Nov 16, 2023
- Class to handle the port state change event callback from SAI and
  sending the events to syncd main thread for processing by link event
  damper.

Depends on: #1297

HLD: sonic-net/SONiC#1071
Ashish1805 pushed a commit to Ashish1805/sonic-sairedis that referenced this pull request Nov 17, 2023
link event damper.

- Link event damper running on each port will have its own
  SelectableTimer. This class helps create a mapping of SelectableTimer
  and object that created the SelectableTimer so that when timer is
  fired, proper EventHandler object can be invoked.

HLD: sonic-net/SONiC#1071
Ashish1805 pushed a commit to Ashish1805/sonic-sairedis that referenced this pull request Nov 28, 2023
link event damper.

- Link event damper running on each port will have its own
  SelectableTimer. This class helps create a mapping of SelectableTimer
  and object that created the SelectableTimer so that when timer is
  fired, proper EventHandler object can be invoked.

HLD: sonic-net/SONiC#1071
Ashish1805 pushed a commit to Ashish1805/sonic-sairedis that referenced this pull request Nov 28, 2023
link event damper.

- Link event damper running on each port will have its own
  SelectableTimer. This class helps create a mapping of SelectableTimer
  and object that created the SelectableTimer so that when timer is
  fired, proper EventHandler object can be invoked.

HLD: sonic-net/SONiC#1071
Ashish1805 pushed a commit to Ashish1805/sonic-sairedis that referenced this pull request Nov 28, 2023
damping config attr.

- Adding serialization/deserialization logic for link event damping
  config so that when libsai is sending link event damping algo and
  config to syncd for set request, it uses serialization logic to
  serialize the requested data before sending the set request and when
  syncd receives the link event damping port attribute set request, it
  uses the deserialization logic to deserialize the data.

HLD: sonic-net/SONiC#1071
Ashish1805 pushed a commit to Ashish1805/sonic-sairedis that referenced this pull request Nov 29, 2023
damping config attr.

- Adding serialization/deserialization logic for link event damping
  config so that when libsai is sending link event damping algo and
  config to syncd for set request, it uses serialization logic to
  serialize the requested data before sending the set request and when
  syncd receives the link event damping port attribute set request, it
  uses the deserialization logic to deserialize the data.

HLD: sonic-net/SONiC#1071
Ashish1805 pushed a commit to Ashish1805/sonic-sairedis that referenced this pull request Nov 30, 2023
damping config attr.

- Adding serialization/deserialization logic for link event damping
  config so that when libsai is sending link event damping algo and
  config to syncd for set request, it uses serialization logic to
  serialize the requested data before sending the set request and when
  syncd receives the link event damping port attribute set request, it
  uses the deserialization logic to deserialize the data.

HLD: sonic-net/SONiC#1071
kcudnik pushed a commit to sonic-net/sonic-sairedis that referenced this pull request Dec 4, 2023
…nt (#1322)

damping config attr.

- Adding serialization/deserialization logic for link event damping
  config so that when libsai is sending link event damping algo and
  config to syncd for set request, it uses serialization logic to
  serialize the requested data before sending the set request and when
  syncd receives the link event damping port attribute set request, it
  uses the deserialization logic to deserialize the data.

HLD: sonic-net/SONiC#1071
Ashish1805 pushed a commit to Ashish1805/sonic-sairedis that referenced this pull request Dec 6, 2023
- This supports the link event damping config and algorithm set API.
- Sends the link event damping config from libsai to syncd main thread.

HLD: sonic-net/SONiC#1071
Ashish1805 pushed a commit to Ashish1805/sonic-sairedis that referenced this pull request Dec 12, 2023
- This supports the link event damping config and algorithm set API.
- Sends the link event damping config from libsai to syncd main thread.

HLD: sonic-net/SONiC#1071
Ashish1805 pushed a commit to Ashish1805/sonic-sairedis that referenced this pull request Dec 15, 2023
- Adding per port link event damper class that manages the internal
  behavior and workings of link event damping logic on a port where link
  event damping config is enabled.
- This class keeps track of damping timer, current port state, post
  damping advertised port state and relevant debug counters per port.

HLD: sonic-net/SONiC#1071
Ashish1805 pushed a commit to Ashish1805/sonic-sairedis that referenced this pull request Dec 15, 2023
- Adding per port link event damper class that manages the internal
  behavior and workings of link event damping logic on a port where link
  event damping config is enabled.
- This class keeps track of damping timer, current port state, post
  damping advertised port state and relevant debug counters per port.

HLD: sonic-net/SONiC#1071
Ashish1805 pushed a commit to Ashish1805/sonic-sairedis that referenced this pull request Jan 12, 2024
- This supports the link event damping config and algorithm set API.
- Sends the link event damping config from libsai to syncd main thread.

HLD: sonic-net/SONiC#1071
Ashish1805 pushed a commit to Ashish1805/sonic-sairedis that referenced this pull request May 10, 2024
- This supports the link event damping config and algorithm set API.
- Sends the link event damping config from libsai to syncd main thread.

HLD: sonic-net/SONiC#1071

Signed-off-by: Ashish Singh <ashishksingh@google.com>
Ashish1805 pushed a commit to Ashish1805/sonic-sairedis that referenced this pull request May 10, 2024
- This supports the link event damping config and algorithm set API.
- Sends the link event damping config from libsai to syncd main thread.

HLD: sonic-net/SONiC#1071

Signed-off-by: Ashish Singh <ashishksingh@google.com>
@prsunny
Copy link
Contributor

prsunny commented May 15, 2024

@Ashish1805 , @royyi8, @mint570 , could you please add the following to complete the feature?

  1. sonic-mgmt tests
  2. yang-model support for the config_db changes

Ashish1805 pushed a commit to Ashish1805/sonic-sairedis that referenced this pull request May 20, 2024
- This supports the link event damping config and algorithm set API.
- Sends the link event damping config from libsai to syncd main thread.

HLD: sonic-net/SONiC#1071

Signed-off-by: Ashish Singh <ashishksingh@google.com>
Ashish1805 pushed a commit to Ashish1805/sonic-sairedis that referenced this pull request May 20, 2024
- This supports the link event damping config and algorithm set API.
- Sends the link event damping config from libsai to syncd main thread.

HLD: sonic-net/SONiC#1071

Signed-off-by: Ashish Singh <ashishksingh@google.com>
Ashish1805 pushed a commit to Ashish1805/sonic-sairedis that referenced this pull request May 28, 2024
- This supports the link event damping config and algorithm set API.
- Sends the link event damping config from libsai to syncd main thread.

HLD: sonic-net/SONiC#1071

Signed-off-by: Ashish Singh <ashishksingh@google.com>
@prsunny
Copy link
Contributor

prsunny commented Jun 5, 2024

@Ashish1805 , @royyi8, @mint570 , could you please add the following to complete the feature?

  1. sonic-mgmt tests
  2. yang-model support for the config_db changes

@royyi8, gentle reminder. Can you please provide a plan for the above? We need sonic-mgmt tests to validate the feature

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🆕 Backlog (not in plan yet)
Development

Successfully merging this pull request may close these issues.

9 participants