Skip to content
Commit 877a31ab authored by Yusuke Omae's avatar Yusuke Omae Committed by Henrik Brix Andersen
Browse files

net: gptp: fix comparsion of stepsRemoved



The original implementation select the port
as best_port when stepsRemoved is equal to
the one of best_vector.
When challenger is from announce message
set in GPTP_PA_INFO_SUPERIOR_MASTER_PORT,
its stepsRemoved is the same as in the message.
When challenger is from master_priority
copied in GPTP_PA_INFO_UPDATE,
its stepsRemoved is [stepsRemoved of bestVector]+1.
Thus, we should add one to the challenger's
stepsRemoved in comparsion to avoid useless
update of bestVector.

Signed-off-by: default avatarYusuke Omae <s1413091@gmail.com>
parent 4a072384
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment