Re: [Linuxptp-users] linuxptp with vlan configuration
PTP IEEE 1588 stack for Linux
Brought to you by:
rcochran
From: Richard C. <ric...@gm...> - 2015-12-03 08:57:01
|
On Wed, Dec 02, 2015 at 03:34:57PM -0500, Don Ho wrote: > If you are interested in using ptp4l/phc2sys hardware timestamp on > vlan, the following instruction is working on my system. > Someone may ask why VLAN, why I can just have the interfaces on > different NIC cards. Sure you can. But if you want to reduce the > number of cables, NIC cards, and may be switches. VLAN is the > solution. > > Many thanks to Shawn Bohrer for helping me to make this configuration work. I am suprised that you need to change ptp4l in order to work with VLAN interfaces. I thought that I had fixed this in the kernel: commit 37dd9255b2f6201195946014600a8d857f846cf4 Author: Richard Cochran <ric...@gm...> Date: Fri Nov 21 14:16:20 2014 +0100 vlan: Pass ethtool get_ts_info queries to real device. Commit a6111d3c "vlan: Pass SIOC[SG]HWTSTAMP ioctls to real device" intended to enable hardware time stamping on VLAN interfaces, but passing SIOCSHWTSTAMP is only half of the story. This patch adds the second half, by letting user space find out the time stamping capabilities of the device backing a VLAN interface. Commit 37dd9255 is in kernel v3.19, and commit a6111d3c is in v3.17. What kernel version are you using? Thanks, Richard |