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

[lldpd]: LLDP changing the tx-interval parameter is not reflected on the peer device immediately #3705

Merged
merged 1 commit into from
Nov 9, 2019

Conversation

sandeep-kulambi
Copy link
Contributor

- What I did
When LLDP parameter tx-interval value is modified, there was no immediate PDU sent to peer to update the peer with the latest values. Due to this the update on peer happened only after the next PDU is sent which can cause a delay of upto 30 secs (default value).
- How I did it
The fix is to ensure the LLDP PDU is sent immediately when the tx-interval configuration is modified.
- How to verify it
Modify LLDP tx-interval on one side and check the "show lldp neighbor" output on the peer device to see if its updated immediately
- Description for the changelog

index 8382d02..38cf3f3 100644
--- a/src/daemon/client.c
+++ b/src/daemon/client.c
@@ -71,7 +71,6 @@ client_handle_set_configuration(struct lldpd *cfg, enum hmsg_type *type,
Copy link
Collaborator

Choose a reason for hiding this comment

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

can you add description in the patch itself?

@@ -1,3 +1,4 @@
# This series applies on GIT commit 396961a038a38675d46f96eaa7b430b2a1f8701b
0001-return-error-when-port-does-not-exist.patch
0002-Let-linux-kernel-to-find-appropriate-nl_pid-automa.patch
0003-update-tx-interval-immediately.patch
Copy link
Collaborator

Choose a reason for hiding this comment

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

can you upstream this patch?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Collaborator

Choose a reason for hiding this comment

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

yes

@sandeep-kulambi sandeep-kulambi changed the title LLDP changing the tx-interval parameter is not reflected on the peer device immediately [lldpd]: LLDP changing the tx-interval parameter is not reflected on the peer device immediately Nov 5, 2019
@sandeep-kulambi
Copy link
Contributor Author

sandeep-kulambi commented Nov 6, 2019 via email

@lguohan
Copy link
Collaborator

lguohan commented Nov 7, 2019

@pavel-shirshov , what is your suggestion?

@pavel-shirshov
Copy link
Contributor

@lguohan I'd merge this patch for now.
Later I'd update lldpd for newer version.

@lguohan lguohan merged commit fd82328 into sonic-net:master Nov 9, 2019
zhenggen-xu pushed a commit to zhenggen-xu/sonic-buildimage that referenced this pull request Jan 10, 2020
…is modified. (sonic-net#3705)

When LLDP parameter tx-interval value is modified, there was no immediate PDU sent to peer to update the peer with the latest values. Due to this the update on peer happened only after the next PDU is sent which can cause a delay of upto 30 secs (default value).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants