aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/export-to-postgresql-report
diff options
context:
space:
mode:
authorGrygorii Strashko <[email protected]>2020-12-24 18:24:05 +0200
committerJakub Kicinski <[email protected]>2020-12-28 13:32:34 -0800
commit4614792eebcbf81c60ad3604c1aeeb2b0899cea4 (patch)
tree021179a47711a66b7afaec858b327b343c5fed28 /tools/perf/scripts/python/bin/export-to-postgresql-report
parent5ff3fda971ae6c5a0d884dc9ff8780e89536fb72 (diff)
net: ethernet: ti: cpts: fix ethtool output when no ptp_clock registered
The CPTS driver registers PTP PHC clock when first netif is going up and unregister it when all netif are down. Now ethtool will show: - PTP PHC clock index 0 after boot until first netif is up; - the last assigned PTP PHC clock index even if PTP PHC clock is not registered any more after all netifs are down. This patch ensures that -1 is returned by ethtool when PTP PHC clock is not registered any more. Fixes: 8a2c9a5ab4b9 ("net: ethernet: ti: cpts: rework initialization/deinitialization") Signed-off-by: Grygorii Strashko <[email protected]> Acked-by: Richard Cochran <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-postgresql-report')
0 files changed, 0 insertions, 0 deletions