mbox series

[net-next,0/3] ptp: Add generic is_sync() function

Message ID 20220305112127.68529-1-kurt@linutronix.de (mailing list archive)
Headers show
Series ptp: Add generic is_sync() function | expand

Message

Kurt Kanzenbach March 5, 2022, 11:21 a.m. UTC
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(-)

Comments

Richard Cochran March 6, 2022, 12:07 a.m. UTC | #1
On Sat, Mar 05, 2022 at 12:21:24PM +0100, Kurt Kanzenbach wrote:
> 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

For the series:

Acked-by: Richard Cochran <richardcochran@gmail.com>
patchwork-bot+netdevbpf@kernel.org March 7, 2022, 11:40 a.m. UTC | #2
Hello:

This series was applied to netdev/net-next.git (master)
by David S. Miller <davem@davemloft.net>:

On Sat,  5 Mar 2022 12:21:24 +0100 you wrote:
> 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
> 
> [...]

Here is the summary with links:
  - [net-next,1/3] ptp: Add generic PTP is_sync() function
    https://git.kernel.org/netdev/net-next/c/f72de02ebece
  - [net-next,2/3] dp83640: Use generic ptp_msg_is_sync() function
    https://git.kernel.org/netdev/net-next/c/1246b229c6e8
  - [net-next,3/3] micrel: Use generic ptp_msg_is_sync() function
    https://git.kernel.org/netdev/net-next/c/3914a9c07e8c

You are awesome, thank you!