Skip to content
Commit 64aa577c authored by Jean-Nicolas Graux's avatar Jean-Nicolas Graux Committed by Anas Nashif
Browse files

net: gptp: fix rate_ratio in gptp_mi_set_ps_sync_cmss()



Setting a ration of 0 breaks the computation of scaled_rate_offset
in gptp_md_follow_up_prepare().

According to IEEE802.1AS 10.2.2.3.9, when sent by clock master
entity, rate_ratio shall be equal to gmRateRatio. But since
in gptp_md_follow_up_prepare(), in case we are the grand master
clock, we take the assumption that clock source is the local clock,
we may set this ratio to 1.0.

Signed-off-by: default avatarJean-Nicolas Graux <jean-nicolas.graux@st.com>
parent cec4818f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment