Hi Erez,
I tried to update the mask and used ethtool_link_settings to get the speed.
It does not work.
I have accepted your suggestion for adding comments and will be addressing
it in the new patch.
Thanks,
Devasish Dey
SyncMonk Technologies.
On Wed, 27 Jul 2022 at 03:37, Geva, Erez wrote:
>
Get the interface speed related information using ethtool
Signed-off-by: Greg Armstrong
Signed-off-by: Leon Goldin
Signed-off-by: Devasish Dey
Signed-off-by: Vipin Sharma
---
clock.c | 2 ++
interface.c | 11 +++
interface.h | 14 ++
port.c | 5 +
4 files ch
adding interface rate TLV as defined by ITU-T G.8275.2 Annex D to
enable master to communicate PTP port interface rate to slave.
Signed-off-by: Greg Armstrong
Signed-off-by: Leon Goldin
Signed-off-by: Devasish Dey
Signed-off-by: Vipin Sharma
---
clock.c | 7 +++
clock.h | 7 +++
c
When master and slave instance interacting with each other operating
at different interface speed, delay assymetry needs to be compensated
as described in G.8271 appendix V.
In this patch we are adding changes to get the interface speed using
ethtool.
Signed-off-by: Greg Armstrong
Signed-off-by:
Delay asymmetry calculation based on the PTP port interface speed of
master obtained from TLV and the slave interface rate obtained by ethtool.
Signed-off-by: Greg Armstrong
Signed-off-by: Leon Goldin
Signed-off-by: Devasish Dey
Signed-off-by: Vipin Sharma
---
interface.c | 9 +