diff options
author | Lucas Christian <lucas@lucasec.com> | 2024-08-08 23:36:09 -0700 |
---|---|---|
committer | Christian Breunig <christian@breunig.cc> | 2024-09-21 08:51:28 +0200 |
commit | bf5805c52b7133ec76edeebac33f3c30b56b169f (patch) | |
tree | 23a9aebfa768dd604762c8e5ba16f8e72755190b /data/templates | |
parent | e504e0cac55725e93f21322877bb7d0c4f97c992 (diff) | |
download | vyos-1x-bf5805c52b7133ec76edeebac33f3c30b56b169f.tar.gz vyos-1x-bf5805c52b7133ec76edeebac33f3c30b56b169f.zip |
T6630: ntp: add hardware timestamp offload
Diffstat (limited to 'data/templates')
-rw-r--r-- | data/templates/chrony/chrony.conf.j2 | 11 |
1 files changed, 11 insertions, 0 deletions
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 %} |