forked from torvalds/linux
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net: Expose available time stamping layers to user space.
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 sysfs. 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: Richard Cochran <richardcochran@gmail.com>
- Loading branch information
1 parent
9beda15
commit c7ffd87
Showing
4 changed files
with
89 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
What: /sys/class/net/<iface>/available_timestamping_providers | ||
Date: January 2022 | ||
Contact: Richard Cochran <richardcochran@gmail.com> | ||
Description: | ||
Enumerates the available providers for SO_TIMESTAMPING. | ||
The possible values are: | ||
- "mac" The MAC provides time stamping. | ||
- "phy" The PHY or MII device provides time stamping. | ||
|
||
What: /sys/class/net/<iface>/current_timestamping_provider | ||
Date: January 2022 | ||
Contact: Richard Cochran <richardcochran@gmail.com> | ||
Description: | ||
Show the current SO_TIMESTAMPING provider. | ||
The possible values are: | ||
- "mac" The MAC provides time stamping. | ||
- "phy" The PHY or MII device provides time stamping. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters