summaryrefslogtreecommitdiffstats
path: root/include/uapi
diff options
context:
space:
mode:
authorMiroslav Lichvar <mlichvar@redhat.com>2017-05-19 17:52:35 +0200
committerDavid S. Miller <davem@davemloft.net>2017-05-21 13:37:32 -0400
commitb8210a9e4bea6354eccc5d8a50ecc21ea7486dc9 (patch)
treeac8e1a9e76ec59e2dee0e7185e1373aef24bc14d /include/uapi
parent2061ec3f1370d5491e801a693618af2b933781fe (diff)
downloadop-kernel-dev-b8210a9e4bea6354eccc5d8a50ecc21ea7486dc9.zip
op-kernel-dev-b8210a9e4bea6354eccc5d8a50ecc21ea7486dc9.tar.gz
net: define receive timestamp filter for NTP
Add HWTSTAMP_FILTER_NTP_ALL to the hwtstamp_rx_filters enum for timestamping of NTP packets. There is currently only one driver (phyter) that could support it directly. CC: Richard Cochran <richardcochran@gmail.com> CC: Willem de Bruijn <willemb@google.com> Signed-off-by: Miroslav Lichvar <mlichvar@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi')
-rw-r--r--include/uapi/linux/net_tstamp.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/uapi/linux/net_tstamp.h b/include/uapi/linux/net_tstamp.h
index 464dcca..0749fb1 100644
--- a/include/uapi/linux/net_tstamp.h
+++ b/include/uapi/linux/net_tstamp.h
@@ -125,6 +125,9 @@ enum hwtstamp_rx_filters {
HWTSTAMP_FILTER_PTP_V2_SYNC,
/* PTP v2/802.AS1, any layer, Delay_req packet */
HWTSTAMP_FILTER_PTP_V2_DELAY_REQ,
+
+ /* NTP, UDP, all versions and packet modes */
+ HWTSTAMP_FILTER_NTP_ALL,
};
#endif /* _NET_TIMESTAMPING_H */
OpenPOWER on IntegriCloud