From bf5805c52b7133ec76edeebac33f3c30b56b169f Mon Sep 17 00:00:00 2001 From: Lucas Christian Date: Thu, 8 Aug 2024 23:36:09 -0700 Subject: T6630: ntp: add hardware timestamp offload --- data/templates/chrony/chrony.conf.j2 | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'data/templates') diff --git a/data/templates/chrony/chrony.conf.j2 b/data/templates/chrony/chrony.conf.j2 index 86c20a4d8..838813866 100644 --- a/data/templates/chrony/chrony.conf.j2 +++ b/data/templates/chrony/chrony.conf.j2 @@ -66,3 +66,14 @@ bindaddress {{ address }} binddevice {{ interface }} {% endif %} {% endif %} + +{% if offload.timestamp.interface is vyos_defined %} +# Enable hardware timestamping on the specified interfaces +{% for interface, config in offload.timestamp.interface.items() %} +hwtimestamp {{ interface }} {{- ' rxfilter ' ~ config.receive_filter if config.receive_filter is vyos_defined }} +{% endfor %} +{% endif %} +{% if offload.timestamp.default_enable is vyos_defined %} +# Enable hardware timestamping on all supported interfaces not otherwise configured +hwtimestamp * +{% endif %} -- cgit v1.2.3