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)
commitf72de02ebece2e962462bc0c1e9efd29eaa029b2
tree5a7102eaf367b9301bf49c8d9d6ca328a016fad5
parent669b258a793db9f1c3bff29ce2bbd61b810503ad
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