On Thu, Jan 06, 2022 at 06:18:59PM +0800, Hangbin Liu wrote:
> Latest Linux kernel has supported getting PHC from bond directly. This would
> help topology like VLAN over bond to get PHC natively. To achieve this,
> the new hwtstamp flag is needed when passing hwtstamp_config to kernel.
> 
> We use ifdef to check if the build kernel support this new flag. And
> fall back without flag if user run new build on old kernel for hwts_init().

Ah, sorry for the typo. The feature is for VLAN over bond.

Thanks
Hangbin
> 
> Hangbin Liu (2):
>   ptp4l: init iface->ts_label when interface created
>   ptp4l: get bond phc directly if kernel support the new hwtstamp flag
> 
>  clock.c        | 20 +++++++++----
>  e2e_tc.c       | 14 +++++++--
>  interface.c    |  8 +-----
>  interface.h    |  6 ----
>  nsm.c          |  5 ++--
>  p2p_tc.c       | 14 +++++++--
>  pmc_common.c   |  1 -
>  port.c         | 77 +++++++++++++++++++++++++++++++-------------------
>  port_private.h |  2 ++
>  sk.c           |  7 +++++
>  10 files changed, 99 insertions(+), 55 deletions(-)
> 
> -- 
> 2.31.1
> 


_______________________________________________
Linuxptp-devel mailing list
Linuxptp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel

Reply via email to