]> git.baikalelectronics.ru Git - kernel.git/commit
ptp: Add generic PTP is_sync() function
authorKurt Kanzenbach <kurt@linutronix.de>
Sat, 5 Mar 2022 11:21:25 +0000 (12:21 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Mar 2022 11:31:34 +0000 (11:31 +0000)
commit316742cddc5e6736162187cb5b87cba8ca486c29
tree5a7102eaf367b9301bf49c8d9d6ca328a016fad5
parentc2806d504fd88bf8f12100d372d36c355036f761
ptp: Add generic PTP is_sync() function

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>
include/linux/ptp_classify.h
net/core/ptp_classifier.c