Skip to content

Link event damping HLD#1071

Merged
prgeor merged 2 commits into
sonic-net:masterfrom
Ashish1805:ashish_LE
Apr 25, 2023
Merged

Link event damping HLD#1071
prgeor merged 2 commits into
sonic-net:masterfrom
Ashish1805:ashish_LE

Conversation

@Ashish1805

@Ashish1805 Ashish1805 commented Aug 24, 2022

Copy link
Copy Markdown
Contributor

@linux-foundation-easycla

linux-foundation-easycla Bot commented Aug 24, 2022

Copy link
Copy Markdown

CLA Signed

The committers listed above are authorized under a signed CLA.

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

Comment thread doc/link_event_damping/Link-event-damping-HLD.md Outdated
Comment thread doc/link_event_damping/Link-event-damping-HLD.md Outdated
Comment thread doc/link_event_damping/Link-event-damping-HLD.md Outdated
Comment thread doc/link_event_damping/Link-event-damping-HLD.md Outdated
Comment thread doc/link_event_damping/Link-event-damping-HLD.md Outdated
Comment thread doc/link_event_damping/Link-event-damping-HLD.md Outdated
Comment thread doc/link_event_damping/Link-event-damping-HLD.md Outdated
@venkatmahalingam

Copy link
Copy Markdown
Collaborator

@zhangyanzhao Please add me as the reviewer.

@liat-grozovik

Copy link
Copy Markdown
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
Copy Markdown
Collaborator

@zhangyanzhao Please add me as the reviewer.

please accept the invitation.

@zhangyanzhao

Copy link
Copy Markdown
Collaborator

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

@zhangyanzhao

Copy link
Copy Markdown
Collaborator

Deferred from 202211 release.

@zhangyanzhao

Copy link
Copy Markdown
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
Copy Markdown
Collaborator

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

Comment thread doc/link_event_damping/Link-event-damping-HLD.md Outdated
Comment thread doc/link_event_damping/Link-event-damping-HLD.md Outdated
Comment thread doc/link_event_damping/Link-event-damping-HLD.md Outdated
@zhangyanzhao

Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

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

@Ashish1805

Ashish1805 commented Mar 29, 2023

Copy link
Copy Markdown
Contributor Author

@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
Copy Markdown
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
Copy Markdown
Contributor Author

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

@prgeor

prgeor commented Mar 30, 2023

Copy link
Copy Markdown
Contributor

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

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

prsunny commented May 15, 2024

Copy link
Copy Markdown
Contributor

@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

@prsunny

prsunny commented Jun 5, 2024

Copy link
Copy Markdown
Contributor

@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