[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20211130071956.5ad2c795@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com>
Date: Tue, 30 Nov 2021 07:19:56 -0800
From: Jakub Kicinski <kuba@...nel.org>
To: Hangbin Liu <liuhangbin@...il.com>
Cc: netdev@...r.kernel.org, Jay Vosburgh <j.vosburgh@...il.com>,
Veaceslav Falico <vfalico@...il.com>,
Andy Gospodarek <andy@...yhouse.net>, davem@...emloft.net,
Richard Cochran <richardcochran@...il.com>,
Miroslav Lichvar <mlichvar@...hat.com>
Subject: Re: [PATCH net-next] bond: pass get_ts_info and SIOC[SG]HWTSTAMP
ioctl to active device
On Tue, 30 Nov 2021 15:09:32 +0800 Hangbin Liu wrote:
> We have VLAN PTP support(via get_ts_info) on kernel, and bond support(by
> getting active interface via netlink message) on userspace tool linuxptp.
> But there are always some users who want to use PTP with VLAN over bond,
> which is not able to do with the current implementation.
>
> This patch passed get_ts_info and SIOC[SG]HWTSTAMP ioctl to active device
> with bond mode active-backup/tlb/alb. With this users could get kernel native
> bond or VLAN over bond PTP support.
>
> Test with ptp4l and it works with VLAN over bond after this patch:
> ]# ptp4l -m -i bond0.23
> ptp4l[53377.141]: selected /dev/ptp4 as PTP clock
> ptp4l[53377.142]: port 1: INITIALIZING to LISTENING on INIT_COMPLETE
> ptp4l[53377.143]: port 0: INITIALIZING to LISTENING on INIT_COMPLETE
> ptp4l[53377.143]: port 0: INITIALIZING to LISTENING on INIT_COMPLETE
> ptp4l[53384.127]: port 1: LISTENING to MASTER on ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES
> ptp4l[53384.127]: selected local clock e41d2d.fffe.123db0 as best master
> ptp4l[53384.127]: port 1: assuming the grand master role
Does the Ethernet spec say something about PTP over bond/LACP?
What happens during failover? Presumably the user space daemon will
start getting HW stamps based on a different PHC than it's disciplining?
Powered by blists - more mailing lists