ptp: track available ptp vclocks information
authorYangbo Lu <yangbo.lu@nxp.com>
Wed, 30 Jun 2021 08:11:54 +0000 (16:11 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 1 Jul 2021 20:08:18 +0000 (13:08 -0700)
commit44c494c8e30e35713c7d11ca3c5ab332cbfabacf
tree493c2951ee203f92d80b568cccc28da4e24635bd
parent73f37068d540eba5f93ba3a0019bf479d35ebd76
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>
drivers/ptp/ptp_clock.c
drivers/ptp/ptp_private.h
drivers/ptp/ptp_sysfs.c