]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0ae3cb1134ae69583c1ffb5d977c0cf73b3700d1
tree166ec405ae0b4532c9c4559fc4ecd98d82c5e303
parenta1a64115ef1e2591610c5ffa4fc1c96f7e3bd735
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