From: Kory Maincent <kory.maincent@xxxxxxxxxxx>
Time stamping on network packets may happen either in the MAC or in
the PHY, but not both. In preparation for making the choice
selectable, expose both the current and available layers via ethtool.
In accordance with the kernel implementation as it stands, the current
layer will always read as "phy" when a PHY time stamping device is
present. Future patches will allow changing the current layer
administratively.
Signed-off-by: Kory Maincent <kory.maincent@xxxxxxxxxxx>
---
+/*
+ * Hardware layer of the TIMESTAMPING provider
+ * New description layer should have the NETDEV_TIMESTAMPING or
+ * PHYLIB_TIMESTAMPING bit set to know which API to use for timestamping.
+ */
+enum {
+ NO_TIMESTAMPING = 0,
+ NETDEV_TIMESTAMPING = (1 << 0),
+ PHYLIB_TIMESTAMPING = (1 << 1),
+ SOFTWARE_TIMESTAMPING = (1 << 2) | (1 << 0),
Attachment:
smime.p7s
Description: S/MIME Cryptographic Signature