History

net: ethtool: tsinfo: Enhance tsinfo to support several hwtstamp by net topology

Either the MAC or the PHY can provide hwtstamp, so we should be able to read the tsinfo for any hwtstamp provider. Enhance 'get' command to retrieve tsinfo of hwtstamp providers within a network topology. Add support for a specific dump command to retrieve all hwtstamp providers within the network topology, with added functionality for filtered dump to target a single interface.

Kory Maincent committed 1 year ago

Commit b9e3f7d1 parent 35f7cad10 files · +563 −21Browse files

Showing the changes to include/uapi (1 of 10 files). Show all

Unified · Split

include/uapi/linux/ethtool_netlink_generated.h+10−0
@@ -385,6 +385,15 @@ enum { · 384 unmodified lines
385385 ETHTOOL_A_TS_STAT_MAX = (__ETHTOOL_A_TS_STAT_CNT - 1)
386386 };
387387
388+enum {
389+ ETHTOOL_A_TS_HWTSTAMP_PROVIDER_UNSPEC,
390+ ETHTOOL_A_TS_HWTSTAMP_PROVIDER_INDEX,
391+ ETHTOOL_A_TS_HWTSTAMP_PROVIDER_QUALIFIER,
392+
393+ __ETHTOOL_A_TS_HWTSTAMP_PROVIDER_CNT,
394+ ETHTOOL_A_TS_HWTSTAMP_PROVIDER_MAX = (__ETHTOOL_A_TS_HWTSTAMP_PROVIDER_CNT - 1)
395+};
396+
388397 enum {
389398 ETHTOOL_A_TSINFO_UNSPEC,
390399 ETHTOOL_A_TSINFO_HEADER,
@@ -393,6 +402,7 @@ enum { · 2 unmodified lines
393402 ETHTOOL_A_TSINFO_RX_FILTERS,
394403 ETHTOOL_A_TSINFO_PHC_INDEX,
395404 ETHTOOL_A_TSINFO_STATS,
405+ ETHTOOL_A_TSINFO_HWTSTAMP_PROVIDER,
396406
397407 __ETHTOOL_A_TSINFO_CNT,
398408 ETHTOOL_A_TSINFO_MAX = (__ETHTOOL_A_TSINFO_CNT - 1)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t