netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/3] ptp: Add generic is_sync() function
@ 2022-03-05 11:21 Kurt Kanzenbach
  2022-03-05 11:21 ` [PATCH net-next 1/3] ptp: Add generic PTP " Kurt Kanzenbach
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Kurt Kanzenbach @ 2022-03-05 11:21 UTC (permalink / raw)
  To: Richard Cochran, David S. Miller, Jakub Kicinski
  Cc: Andrew Lunn, Heiner Kallweit, Russell King, Yonghong Song,
	Daniel Borkmann, Andrii Nakryiko, Divya Koppera, Horatiu Vultur,
	netdev, Kurt Kanzenbach

Hi,

as multiple PHY drivers such as micrel or TI dp83640 need to inspect whether a
given skb represents a PTP Sync message, provide a generic function for it. This
avoids code duplication and can be reused by future PHY IEEE 1588 implementations.

Thanks,
Kurt

Kurt Kanzenbach (3):
  ptp: Add generic PTP is_sync() function
  dp83640: Use generic ptp_msg_is_sync() function
  micrel: Use generic ptp_msg_is_sync() function

 drivers/net/phy/dp83640.c    | 13 +------------
 drivers/net/phy/micrel.c     | 13 +------------
 include/linux/ptp_classify.h | 15 +++++++++++++++
 net/core/ptp_classifier.c    | 12 ++++++++++++
 4 files changed, 29 insertions(+), 24 deletions(-)

-- 
2.30.2


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-03-07 11:40 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-05 11:21 [PATCH net-next 0/3] ptp: Add generic is_sync() function Kurt Kanzenbach
2022-03-05 11:21 ` [PATCH net-next 1/3] ptp: Add generic PTP " Kurt Kanzenbach
2022-03-05 11:21 ` [PATCH net-next 2/3] dp83640: Use generic ptp_msg_is_sync() function Kurt Kanzenbach
2022-03-05 11:21 ` [PATCH net-next 3/3] micrel: " Kurt Kanzenbach
2022-03-07  7:38   ` Divya.Koppera
2022-03-06  0:07 ` [PATCH net-next 0/3] ptp: Add generic is_sync() function Richard Cochran
2022-03-07 11:40 ` patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).