I have test PCIE endpoint mode between two jetson devices, it is ok.
I want to use ptp to synchronize time between two devices.
reference:http://linuxptp.sourceforge.net/
use the Virtual Ethernet using PCIe interface,like this:
Bringing Up an Ethernet Interface Over PCIE
Use the following procedure to bring up an Ethernet interface over PCIE.
To bring up an Ethernet interface over PCIE
1.Connect the systems using the appropriate PCIe cable.
2.Boot the endpoint Jetson system.
3.Enter the following commands to configure and enable PCIe endpoint mode:
cd /sys/kernel/config/pci_ep/
mkdir functions/pci_epf_tvnet/func1
echo 16 > functions/pci_epf_tvnet/func1/msi_interrupts
ln -s functions/pci_epf_tvnet/func1 controllers/141a0000.pcie_ep/
echo 1 > controllers/141a0000.pcie_ep/start
4.Boot the root port system.
5.Verify that the PCIe link is up by entering the lspci command in root port system. The console output should include “PCIe device with vendor id: 0x10de and device id: 0x2296.”
6.Bring up both interfaces to establish an Ethernet link between the systems. Then assign them dynamic or static IP addresses.
For example, enter the following commands, in the order shown, to bring up the Ethernet interfaces and assign static IP addresses:
On the endpoint system: ifconfig eth1 up
On the root port system: ifconfig eth1 up
On the endpoint system: ifconfig eth1 192.168.2.1
On the root port system: ifconfig eth1 192.168.2.2
Ethernet interface eth1 is created in both systems.