ptp: add kernel API ptp_get_vclocks_index()
authorYangbo Lu <yangbo.lu@nxp.com>
Wed, 30 Jun 2021 08:11:55 +0000 (16:11 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 1 Jul 2021 20:08:18 +0000 (13:08 -0700)
commitacb288e8047b7569fbc9af6fa6e9405315345103
tree166ec405ae0b4532c9c4559fc4ecd98d82c5e303
parent44c494c8e30e35713c7d11ca3c5ab332cbfabacf
ptp: add kernel API ptp_get_vclocks_index()

Add kernel API ptp_get_vclocks_index() to get all ptp
vclocks index on pclock.

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_vclock.c
include/linux/ptp_clock_kernel.h