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
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions src/lldpd/patch/0003-update-tx-interval-immediately.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
diff --git a/src/daemon/client.c b/src/daemon/client.c
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?

if (CHANGED(c_tx_interval) && config->c_tx_interval != 0) {
if (config->c_tx_interval < 0) {
log_debug("rpc", "client asked for immediate retransmission");
- levent_send_now(cfg);
} else {
log_debug("rpc", "client change transmit interval to %d",
config->c_tx_interval);
@@ -79,6 +78,7 @@ client_handle_set_configuration(struct lldpd *cfg, enum hmsg_type *type,
LOCAL_CHASSIS(cfg)->c_ttl = cfg->g_config.c_tx_interval *
cfg->g_config.c_tx_hold;
}
+ levent_send_now(cfg);
}
if (CHANGED(c_tx_hold) && config->c_tx_hold > 0) {
log_debug("rpc", "client change transmit hold to %d",
1 change: 1 addition & 0 deletions src/lldpd/patch/series
Original file line number Diff line number Diff line change
@@ -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