No. I am passing in both ports to the KVM. The KVM sees three ptpt devices. One
is using the ptp_kvm module and the other two are the mellanox NICS. I am
trying to sync the mellanox clocks using ptp_kvm as source using phc2sys but
using multiple -c options results in phc2sys uaing the last ptp device in the
command as its destination deviceSent from my Samsung Galaxy smartphone.
-------- Original message --------From: Jacob Keller <jacob.e.kel...@intel.com>
Date: 7/21/20 7:28 PM (GMT-05:00) To: linuxptp-users@lists.sourceforge.net
Subject: Re: [Linuxptp-users] phc2sys with ptp_kvm and mutiport mellanox NICs
On 7/21/2020 3:24 PM, Hussamuddin Nasir via Linuxptp-users wrote:> Hello
folks,> > I am using Mellanox Connect X5 dual port 100G card whose PTP clock
> devices (/dev/ptp0, /dev/ptp1) were synced using ptp4l and phc2sys via a >
PTP Appliance. We now install a KVM on the physical host and setup the >
Mellanox NIC as pass thru to the KVM. The KVM has the module ptp_kvm >
(/dev/ptp2) installed in it and i am able to successfully run phc2sys to > sync
/dev/ptp0 from /dev/ptp2 using the command>> phc2sys -O 35 -s /dev/ptp2 -c
/dev/ptp0> > NOTE: I am not using ptp4l inside the KVM since the ptp_kvm device
gives > the accurate time from the host that is already being synced using >
ptp4l/phc2sys on the hostSo you're passing one port of the device into the VM,
but not the other?> > But i am unable to provide an additional "-c" here to
sync the other > ptp device in the KVM.Right, because the PTP device is
created in the VM, not in the host.> > I know that is possible using the
boundary clock config option in ptp4l > when we have ptp4l and phc2sys running
in automatic mode since we had > that working on the host without the KVM.>> So
any suggestions on how do i do phc2sys for multiple destinationdevices ?> The
problem, I think, is that the two PTP clocks aren't both visible inthe same
system. One is in the host, and one in the VM.I don't know if this can be
solved today. It seems like you'd be betteroff doing a virtual device into the
VM and leaving the whole MLX5 cardout in the
host.Thanks,Jake_______________________________________________Linuxptp-users
mailing
listLinuxptp-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/linuxptp-users
_______________________________________________
Linuxptp-users mailing list
Linuxptp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-users