After first timeout of Announce message ptp4l will send Announce
requests messages to all of configured non-master clock peers
without updating timeout on approval packet making huge unneeded
workload on servers. Fix it by updating announce timeout correctly.

Signed-off-by: Vadim Fedorenko <vad...@fb.com>
---
 unicast_client.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/unicast_client.c b/unicast_client.c
index 8ebe06f..ba49757 100644
--- a/unicast_client.c
+++ b/unicast_client.c
@@ -467,6 +467,7 @@ void unicast_client_grant(struct port *p, struct 
ptp_message *m,
        ucma->granted |= 1 << mtype;
 
        switch (ucma->state) {
+       case UC_HAVE_ANN:
        case UC_WAIT:
                if (mtype == ANNOUNCE) {
                        ucma->state = unicast_fsm(ucma->state, UC_EV_GRANT_ANN);
@@ -474,8 +475,6 @@ void unicast_client_grant(struct port *p, struct 
ptp_message *m,
                        unicast_client_set_renewal(p, ucma, g->durationField);
                }
                break;
-       case UC_HAVE_ANN:
-               break;
        case UC_NEED_SYDY:
                switch (mtype) {
                case DELAY_RESP:
-- 
2.30.2



_______________________________________________
Linuxptp-devel mailing list
Linuxptp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel

Reply via email to