Hi all,
I am trying to get Linux PTP to work over an Infiniband link on PCs running
Ubuntu 16.04. I am using Mellanox ConnectX4 adapter cards for the
connection between two PCs. I see in the documentation that mlx4 drivers
are supported and am able to ping the machines from each other with the
command
ping -I ib0 192.168.168.x
On the master machine I run
sudo ptp4l -m -i ib0
And get results
selected /dev/ptp0 as PTP clock
driver changed our HWTSTAMP options
tx_type 1 not 1
rx_filter 1 not 12
port 1: INITIALIZING to LISTENING on INITIALIZE
port 0: INITIALIZING to LISTENING on INITIALIZE
port 1: link up
port 1: LISTENING to MASTER on ANNOUNCE_RECIPT_TIMEOUT_EXPIRES
selected best master clock 000000.fffe.86fe80
assuming the grand master role
When I run the a tcpdump command on my master machine
sudo tcpdump -I ib0
I see the following
IP 192.168.168.4.320 > 224.0.1.129.320: UDP length 64
IP 192.168.168.4.319 > 224.0.1.129.319: UDP length 44
IP 192.168.168.4.320 > 224.0.1.129.320: UDP length 44
IP 192.168.168.4.319 > 224.0.1.129.319: UDP length 44
.
.
.
On the slave machine I do almost the same thing but run ptp4l in slave only
mode.
sudo ptp4l -m -s -i ib0
and get output
selected /dev/ptp1 as PTP clock
driver changed our HWTSTAMP options
tx_type 1 not 1
rx_filter 1 not 12
port 1: INITIALIZING to LISTENING on INITIALIZE
port 0: INITIALIZING to LISTENING on INITIALIZE
port 1: link up
driver changed our HWTSTAMP options
tx_type 1 not 1
rx_filter 1 not 12
selected best master clock 000000.fffe.86fe80
driver changed our HWTSTAMP options
tx_type 1 not 1
rx_filter 1 not 12
selected best master clock 000000.fffe.86fe80
.
.
.
The last 4 lines just repeat.
When I run the a tcpdump command on my slave machine
sudo tcpdump -I ib0
I see the following (and I only see these after I start the slave.
Otherwise nothing shows up related to my master machine.
IP 192.168.168.4.320 > 224.0.1.129.320: UDP length 64
IP 192.168.168.4.319 > 224.0.1.129.319: UDP length 44
IP 192.168.168.4.320 > 224.0.1.129.320: UDP length 44
IP 192.168.168.4.319 > 224.0.1.129.319: UDP length 44
.
.
.
When I run the clock synchronization tool, phc2sys
sudo phc2sys -s ib0 -c CLOCK_REALTIME -w -m
I see the following
Waiting for ptp4l...
Waiting for ptp4l...
Waiting for ptp4l...
.
.
.
So my conclusion is, the master messages are being sent to the slave
machine and the slave machine sees them. I just don't understand why I
don't see the master offset messages and why the slave seems to not even be
aware of the master PC.
Any ideas on what might be going wrong here?
- Joey D.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Linuxptp-users mailing list
Linuxptp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-users