Kurt Kanzenbach 036c508ba9 ptp: Add generic ptp message type function
The message type is located at different offsets within the ptp header depending
on the ptp version (v1 or v2). Therefore, drivers which also deal with ptp v1
have some code for it.

Extract this into a helper function for drivers to be used.

Signed-off-by: Kurt Kanzenbach <kurt@linutronix.de>
Reviewed-by: Richard Cochran <richardcochran@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-08-19 16:07:49 -07:00
..
2020-08-03 20:37:22 -07:00
2020-08-11 11:58:31 +10:00
2020-08-07 13:00:53 -07:00
2020-08-06 16:43:36 -07:00
2020-08-15 08:26:55 -07:00
2020-08-14 13:34:37 -07:00