Hello,

I have a system with onboard and offboard ethernet adapters (all of them
are Intel, being the offboard one an Intel xxv710-da2t). All interfaces
have support for PTP with hardware timestamping. I'm running Ubuntu
20.04.3, using the current kernel version (i.e:
linux-headers-5.4.0-88-generic). Both master and slave devices have the
same hardware and OS configuration. The offboard NIC driver is up-to-date,
and working.

The situation is the following:

When I run  the linuxptp package available in the Ubuntu APT repository,
version 1.92, I can use all interfaces (onboard and offboard) to run the
PTP with hardware timestamping.

When I run the most recent linuxptp package (version 3.1.1), available in
the git repository, only the onboard interfaces work with hardware
timestamping. If I  run it on the offboard NIC, I get the following
message in the slave:

ptp4l[1680.877]: selected /dev/ptp3 as PTP clock
ptp4l[1680.877]: port 1: INITIALIZING to LISTENING on INIT_COMPLETE
ptp4l[1680.877]: port 0: INITIALIZING to LISTENING on INIT_COMPLETE
ptp4l[1681.264]: port 1: received DELAY_REQ without timestamp
ptp4l[1681.779]: port 1: received DELAY_REQ without timestamp
ptp4l[1683.671]: port 1: received DELAY_REQ without timestamp
ptp4l[1684.184]: port 1: new foreign master b49691.fffe.a71b10-1
ptp4l[1685.183]: port 1: received SYNC without timestamp
ptp4l[1686.183]: port 1: received SYNC without timestamp
ptp4l[1687.183]: port 1: received SYNC without timestamp
ptp4l[1687.216]: port 1: LISTENING to MASTER on
ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES
ptp4l[1687.216]: selected local clock b49691.fffe.a62da1 as best master
ptp4l[1687.216]: assuming the grand master role
ptp4l[1688.183]: port 1: received SYNC without timestamp
ptp4l[1688.184]: selected best master clock b49691.fffe.a71b10
ptp4l[1688.184]: assuming the grand master role
ptp4l[1689.183]: port 1: received SYNC without timestamp
ptp4l[1691.198]: port 1: received DELAY_REQ without timestamp
ptp4l[1692.500]: port 1: received DELAY_REQ without timestamp
[...]


And the following in the master:

ptp4l[944.408]: selected /dev/ptp1 as PTP clock
ptp4l[944.409]: port 1 (ens1f0): INITIALIZING to LISTENING on INIT_COMPLETE
ptp4l[944.409]: port 0 (/var/run/ptp4l): INITIALIZING to LISTENING on
INIT_COMPLETE
ptp4l[944.409]: port 0 (/var/run/ptp4lro): INITIALIZING to LISTENING on
INIT_COMPLETE
ptp4l[945.913]: port 1 (ens1f0): new foreign master b49691.fffe.a62da1-1
ptp4l[949.913]: selected best master clock b49691.fffe.a62da1
ptp4l[949.913]: port 1 (ens1f0): LISTENING to UNCALIBRATED on RS_SLAVE
ptp4l[994.205]: port 1 (ens1f0): UNCALIBRATED to MASTER on
ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES
ptp4l[994.205]: selected local clock b49691.fffe.a71b10 as best master
ptp4l[994.205]: port 1 (ens1f0): assuming the grand master role
ptp4l[999.239]: selected best master clock b49691.fffe.a62da1
ptp4l[999.239]: port 1 (ens1f0): MASTER to UNCALIBRATED on RS_SLAVE
ptp4l[1027.618]: port 1 (ens1f0): UNCALIBRATED to MASTER on
ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES
ptp4l[1027.618]: selected local clock b49691.fffe.a71b10 as best master
ptp4l[1027.619]: port 1 (ens1f0): assuming the grand master role


I need the version 3.1.1 to use the UNICAST mode,which is not available in
the 1.92 version. Do you have any idea how I can make it work? Is there any
special flag to build the code? Currently I'm just running the make
command, with no flags.

Below you can find more information about the NICs.

Offboard NIC (ethtool -T)

Time stamping parameters for ens1f0:
Capabilities:
hardware-transmit     (SOF_TIMESTAMPING_TX_HARDWARE)
software-transmit     (SOF_TIMESTAMPING_TX_SOFTWARE)
hardware-receive      (SOF_TIMESTAMPING_RX_HARDWARE)
software-receive      (SOF_TIMESTAMPING_RX_SOFTWARE)
software-system-clock (SOF_TIMESTAMPING_SOFTWARE)
hardware-raw-clock    (SOF_TIMESTAMPING_RAW_HARDWARE)
PTP Hardware Clock: 1
Hardware Transmit Timestamp Modes:
off                   (HWTSTAMP_TX_OFF)
on                    (HWTSTAMP_TX_ON)
Hardware Receive Filter Modes:
none                  (HWTSTAMP_FILTER_NONE)
ptpv1-l4-sync         (HWTSTAMP_FILTER_PTP_V1_L4_SYNC)
ptpv1-l4-delay-req    (HWTSTAMP_FILTER_PTP_V1_L4_DELAY_REQ)
ptpv2-l4-event        (HWTSTAMP_FILTER_PTP_V2_L4_EVENT)
ptpv2-l4-sync         (HWTSTAMP_FILTER_PTP_V2_L4_SYNC)
ptpv2-l4-delay-req    (HWTSTAMP_FILTER_PTP_V2_L4_DELAY_REQ)
ptpv2-l2-event        (HWTSTAMP_FILTER_PTP_V2_L2_EVENT)
ptpv2-l2-sync         (HWTSTAMP_FILTER_PTP_V2_L2_SYNC)
ptpv2-l2-delay-req    (HWTSTAMP_FILTER_PTP_V2_L2_DELAY_REQ)
ptpv2-event           (HWTSTAMP_FILTER_PTP_V2_EVENT)
ptpv2-sync            (HWTSTAMP_FILTER_PTP_V2_SYNC)
ptpv2-delay-req       (HWTSTAMP_FILTER_PTP_V2_DELAY_REQ)


Onboard NIC (ethtool -T)

Time stamping parameters for eno1:
Capabilities:
hardware-transmit     (SOF_TIMESTAMPING_TX_HARDWARE)
software-transmit     (SOF_TIMESTAMPING_TX_SOFTWARE)
hardware-receive      (SOF_TIMESTAMPING_RX_HARDWARE)
software-receive      (SOF_TIMESTAMPING_RX_SOFTWARE)
software-system-clock (SOF_TIMESTAMPING_SOFTWARE)
hardware-raw-clock    (SOF_TIMESTAMPING_RAW_HARDWARE)
PTP Hardware Clock: 0
Hardware Transmit Timestamp Modes:
off                   (HWTSTAMP_TX_OFF)
on                    (HWTSTAMP_TX_ON)
Hardware Receive Filter Modes:
none                  (HWTSTAMP_FILTER_NONE)
ptpv1-l4-event        (HWTSTAMP_FILTER_PTP_V1_L4_EVENT)
ptpv2-l4-event        (HWTSTAMP_FILTER_PTP_V2_L4_EVENT)
ptpv2-l2-event        (HWTSTAMP_FILTER_PTP_V2_L2_EVENT)


Offboard NIC (modinfo i40e)

filename:
/lib/modules/5.4.0-88-generic/updates/drivers/net/ethernet/intel/i40e/i40e.ko
version:        2.16.11
license:        GPL
description:    Intel(R) 40-10 Gigabit Ethernet Connection Network Driver
author:         Intel Corporation, <e1000-de...@lists.sourceforge.net>
srcversion:     A478D718E644C30E2434DE7
alias:          pci:v00008086d0000158Bsv*sd*bc*sc*i*
alias:          pci:v00008086d0000158Asv*sd*bc*sc*i*
alias:          pci:v00008086d000037D3sv*sd*bc*sc*i*
alias:          pci:v00008086d000037D2sv*sd*bc*sc*i*
alias:          pci:v00008086d000037D1sv*sd*bc*sc*i*
alias:          pci:v00008086d000037D0sv*sd*bc*sc*i*
alias:          pci:v00008086d000037CFsv*sd*bc*sc*i*
alias:          pci:v00008086d000037CEsv*sd*bc*sc*i*
alias:          pci:v00008086d00000D58sv*sd*bc*sc*i*
alias:          pci:v00008086d00000CF8sv*sd*bc*sc*i*
alias:          pci:v00008086d00001588sv*sd*bc*sc*i*
alias:          pci:v00008086d00001587sv*sd*bc*sc*i*
alias:          pci:v00008086d0000104Fsv*sd*bc*sc*i*
alias:          pci:v00008086d0000104Esv*sd*bc*sc*i*
alias:          pci:v00008086d000015FFsv*sd*bc*sc*i*
alias:          pci:v00008086d00001589sv*sd*bc*sc*i*
alias:          pci:v00008086d00001586sv*sd*bc*sc*i*
alias:          pci:v00008086d0000101Fsv*sd*bc*sc*i*
alias:          pci:v00008086d00001585sv*sd*bc*sc*i*
alias:          pci:v00008086d00001584sv*sd*bc*sc*i*
alias:          pci:v00008086d00001583sv*sd*bc*sc*i*
alias:          pci:v00008086d00001581sv*sd*bc*sc*i*
alias:          pci:v00008086d00001580sv*sd*bc*sc*i*
alias:          pci:v00008086d00001574sv*sd*bc*sc*i*
alias:          pci:v00008086d00001572sv*sd*bc*sc*i*
depends:
retpoline:      Y
name:           i40e
vermagic:       5.4.0-84-generic SMP mod_unload modversions
parm:           debug:Debug level (0=none,...,16=all) (int)
parm:           l4mode:L4 cloud filter mode:
0=UDP,1=TCP,2=Both,-1=Disabled(default) (int)


-- 
Lucas Martins
CTO

lu...@kryptus.com
+55 (19) 3112-5000

www.kryptus.com

<http://www.kryptus.com/>



*Este e-mail e quaisquer anexos podem conter informação confidencial,
proprietária, privilegiada, classificada ou protegida por Lei. A informação
aqui contida é destinada exclusivamente para os destinatários nominados (ou
para a pessoa responsável por entregar a informação para o destinatário).
Se você não é o destinatário pretendido desta mensagem então você não está
autorizado a ler, imprimir, reter, copiar ou disseminar esta mensagem na
íntegra ou mesmo parcialmente. Se você recebeu este e-mail erroneamente,
por favor notifique o remetente e remova a mesma de sua caixa postal e
dispositivos.This e-mail and any attachments may contain information that
is confidential, proprietary, privileged or otherwise protected by law. The
information contained herein is solely intended for the named addressee (or
a person responsible for delivering it to the addressee).If you are not the
intended recipient of this message, you are not authorized to read, print,
retain, copy or disseminate this message or any part of it. If you have
received this e-mail in error, please notify the sender immediately by
return e-mail and delete it from your computer.*
_______________________________________________
Linuxptp-users mailing list
Linuxptp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-users

Reply via email to