diff options
author | Pawel Modrzejewski <Pawel.Modrzejewski@harman.com> | 2018-01-12 15:57:44 +0100 |
---|---|---|
committer | Pawel Modrzejewski <Pawel.Modrzejewski@harman.com> | 2018-01-12 16:10:16 +0100 |
commit | e52612fe6bf44b9188fb9a1dbf05637f88a58c00 (patch) | |
tree | d4e15d994a66ffba59cd6a83764782bd17576729 /daemons | |
parent | 7ad93aff68346de33c09e65fc829281f71d5e408 (diff) | |
download | Open-AVB-e52612fe6bf44b9188fb9a1dbf05637f88a58c00.tar.gz |
Start PDelay calculation as fast as possible in Automotive Profile
Trigger initial PDelay calculation without waiting full interval (def. 1 sec).
For Automotive Profile and fast initial Sync rate, we are losing that 1 sec.
due to discarded (not processed) Follow_up messages (delay = INVALID_LINKDELAY).
Diffstat (limited to 'daemons')
-rw-r--r-- | daemons/gptp/common/ether_port.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/daemons/gptp/common/ether_port.cpp b/daemons/gptp/common/ether_port.cpp index e576705c..56db3d22 100644 --- a/daemons/gptp/common/ether_port.cpp +++ b/daemons/gptp/common/ether_port.cpp @@ -174,14 +174,8 @@ void EtherPort::startPDelay() if( getPDelayInterval() != PTPMessageSignalling::sigMsgInterval_NoSend) { - long long unsigned int waitTime; - waitTime = ((long long) - (pow((double)2, - getPDelayInterval()) * - 1000000000.0)); - waitTime = waitTime > EVENT_TIMER_GRANULARITY ? waitTime : EVENT_TIMER_GRANULARITY; pdelay_started = true; - startPDelayIntervalTimer(waitTime); + startPDelayIntervalTimer(EVENT_TIMER_GRANULARITY); } } else { |