Skip to content

[LLDP] Enhance lldmgrd Redis events handling#10593

Merged
abdosi merged 1 commit intosonic-net:masterfrom
liorghub:fix_lldp_select_5
May 4, 2022
Merged

[LLDP] Enhance lldmgrd Redis events handling#10593
abdosi merged 1 commit intosonic-net:masterfrom
liorghub:fix_lldp_select_5

Conversation

@liorghub
Copy link
Copy Markdown
Contributor

Why I did it

When lldpmgrd handled events of other tables besides PORT_TABLE, error message was printed to log.

How I did it

Handle event according to its file descriptor instead of looping all registered selectables for each coming event.

How to verify it

I verified same events are being handled by printing events key and operation, before and after the change.
Also, before the change, in init flow after config reload, when lldpmgrd handled events of other tables besides PORT_TABLE, error messages were printed to log, this issue is solved now.

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111

Description for the changelog

Link to config_db schema for YANG module changes

A picture of a cute animal (not mandatory but encouraged)

@liorghub liorghub requested a review from lguohan as a code owner April 17, 2022 07:30
@liorghub
Copy link
Copy Markdown
Contributor Author

/azpw run Azure.sonic-buildimage

@mssonicbld
Copy link
Copy Markdown
Collaborator

/AzurePipelines run Azure.sonic-buildimage

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@liat-grozovik
Copy link
Copy Markdown
Collaborator

@qiluo-msft could you please help to review or suggest one that can?

@dprital dprital added the Request for 202111 Branch For PRs being requested for 202111 branch label Apr 19, 2022
@liat-grozovik
Copy link
Copy Markdown
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@dprital
Copy link
Copy Markdown
Collaborator

dprital commented Apr 20, 2022

@qiluo-msft - who can review this PR ?

@qiluo-msft qiluo-msft requested a review from abdosi April 20, 2022 22:02
@dprital
Copy link
Copy Markdown
Collaborator

dprital commented Apr 26, 2022

@abdosi - Can you please review ?

@dprital
Copy link
Copy Markdown
Collaborator

dprital commented May 3, 2022

@abdosi - Can you please review this PR ?

Copy link
Copy Markdown
Contributor

@abdosi abdosi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@abdosi abdosi merged commit 6284d13 into sonic-net:master May 4, 2022
judyjoseph pushed a commit that referenced this pull request May 8, 2022
Why I did it
When lldpmgrd handled events of other tables besides PORT_TABLE, error message was printed to log.

How I did it
Handle event according to its file descriptor instead of looping all registered selectables for each coming event.

How to verify it
I verified same events are being handled by printing events key and operation, before and after the change.
Also, before the change, in init flow after config reload, when lldpmgrd handled events of other tables besides PORT_TABLE, error messages were printed to log, this issue is solved now.
liushilongbuaa pushed a commit to liushilongbuaa/sonic-buildimage that referenced this pull request Jun 20, 2022
Why I did it
When lldpmgrd handled events of other tables besides PORT_TABLE, error message was printed to log.

How I did it
Handle event according to its file descriptor instead of looping all registered selectables for each coming event.

How to verify it
I verified same events are being handled by printing events key and operation, before and after the change.
Also, before the change, in init flow after config reload, when lldpmgrd handled events of other tables besides PORT_TABLE, error messages were printed to log, this issue is solved now.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Included in 202111 Branch Request for 202111 Branch For PRs being requested for 202111 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants