diff options
author | Yangbo Lu <yangbo.lu@nxp.com> | 2021-06-30 11:11:54 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-07-01 23:08:18 +0300 |
commit | 44c494c8e30e35713c7d11ca3c5ab332cbfabacf (patch) | |
tree | 493c2951ee203f92d80b568cccc28da4e24635bd /drivers/ptp/ptp_private.h | |
parent | 73f37068d540eba5f93ba3a0019bf479d35ebd76 (diff) | |
download | linux-44c494c8e30e35713c7d11ca3c5ab332cbfabacf.tar.xz |
ptp: track available ptp vclocks information
Track available ptp vclocks information. Record index values
of available ptp vclocks during registering and unregistering.
This is preparation for supporting ptp vclocks info query
through ethtool.
Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/ptp/ptp_private.h')
-rw-r--r-- | drivers/ptp/ptp_private.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/ptp/ptp_private.h b/drivers/ptp/ptp_private.h index 87cb55953b69..f75fadd9b244 100644 --- a/drivers/ptp/ptp_private.h +++ b/drivers/ptp/ptp_private.h @@ -49,6 +49,7 @@ struct ptp_clock { struct kthread_delayed_work aux_work; unsigned int max_vclocks; unsigned int n_vclocks; + int *vclock_index; struct mutex n_vclocks_mux; /* protect concurrent n_vclocks access */ bool is_virtual_clock; }; |