The port other than SLAVE (LISTENING port) prints an error
"port 1: master state recommended in slave only mode
ptp4l[1205469.356]: port 1: defaultDS.priority1 probably misconfigured"
for every ANNOUNCE RECEIPT Timeout.

This log is printed when the event EV_RS_MASTER is thrown
in clientOnly mode. But single port clientOnly mode will never
hit this event instead EV_RS_GRAND_MASTER will be hit.
EV_RS_MASTER is thrown when clientOnly=1 and boundary_clock_jbod=1
which results in continuous printing. So EV_RS_MASTER check when
clientOnly=1 to print this error can be avoided.

Signed-off-by: Amar Subramanyam <asubraman...@altiostar.com>
Signed-off-by: Karthikkumar Valoor <kval...@altiostar.com>
Signed-off-by: Ramana Reddy <rre...@altiostar.com>
---
 port.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/port.c b/port.c
index 10bb9e1..650ca00 100644
--- a/port.c
+++ b/port.c
@@ -2531,7 +2531,7 @@ void port_dispatch(struct port *p, enum fsm_event event, 
int mdiff)
 static void bc_dispatch(struct port *p, enum fsm_event event, int mdiff)
 {
        if (clock_slave_only(p->clock)) {
-               if (event == EV_RS_MASTER || event == EV_RS_GRAND_MASTER) {
+               if (event == EV_RS_GRAND_MASTER) {
                        port_slave_priority_warning(p);
                }
        }
-- 
1.8.3.1



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

Reply via email to