linux/include/linux/ptp_classify.h
Kurt Kanzenbach b4c2fb32f4 ptp: Add generic PTP is_sync() function
[ Upstream commit f72de02ebe ]

PHY drivers such as micrel or dp83640 need to analyze whether a given
skb is a PTP sync message for one step functionality.

In order to avoid code duplication introduce a generic function and
move it to ptp classify.

Signed-off-by: Kurt Kanzenbach <kurt@linutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Stable-dep-of: 9b2bfdbf43 ("phy: mscc: Stop taking ts_lock for tx_queue and use its own lock")
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-09-09 18:50:20 +02:00

169 lines
4.8 KiB