From a373805b6d1f3c5972ff287cacef7c2c8cc2230b Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Mon, 5 Nov 2012 17:13:29 +0100 Subject: [PATCH] ptp4l: increase default tx_timestamp_retries to 100. It seems with some cards the current default of 2 is too small, increase the number to prevent users from having to investigate the EAGAIN error messages. Signed-off-by: Miroslav Lichvar --- default.cfg | 2 +- gPTP.cfg | 2 +- ptp4l.8 | 2 +- sk.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/default.cfg b/default.cfg index 189ef5a..9b4fa73 100644 --- a/default.cfg +++ b/default.cfg @@ -27,7 +27,7 @@ assume_two_step 0 logging_level 6 path_trace_enabled 0 follow_up_info 0 -tx_timestamp_retries 2 +tx_timestamp_retries 100 use_syslog 1 verbose 0 # diff --git a/gPTP.cfg b/gPTP.cfg index 84ac1c0..4295a40 100644 --- a/gPTP.cfg +++ b/gPTP.cfg @@ -26,7 +26,7 @@ assume_two_step 1 logging_level 6 path_trace_enabled 1 follow_up_info 1 -tx_timestamp_retries 2 +tx_timestamp_retries 100 use_syslog 1 verbose 0 # diff --git a/ptp4l.8 b/ptp4l.8 index 5fb0c7c..f496ede 100644 --- a/ptp4l.8 +++ b/ptp4l.8 @@ -237,7 +237,7 @@ The default is 0 (disabled). .B tx_timestamp_retries The number of retries to fetch the tx time stamp from the kernel when a message is sent. -The default is 2. +The default is 100. .TP .B clock_servo The servo which is used to synchronize the local clock. Currently only one diff --git a/sk.c b/sk.c index 2fa9ac0..b6ba8a5 100644 --- a/sk.c +++ b/sk.c @@ -32,7 +32,7 @@ /* globals */ -int sk_tx_retries = 2; +int sk_tx_retries = 100; /* private methods */