On Tue, Nov 03, 2020 at 09:35:30PM +0200, Vladimir Oltean wrote:
> As we know from the IEEE 802.1Q-2018 standard, frames tagged with VLAN
> ID 0 (i.e. 802.1p) should be treated as untagged on ingress (i.e. not
> dropped due to their VLAN ID) and tagged on egress (i.e. the PCP should
> be preserved when forwarding).

Unfortunately the power industry misunderstood or misused 802.1 when
they penned IEC 61850.  They made the fields of the VLAN tags have
meaning at the application level.

> Since there is no strong justification to have VLAN awareness in the
> linuxptp stack, let's just remove the code to make way for some
> performance improvements.

The power industry was one of the early adopters of 1588.  In fact,
that is how I got into this in the first place.  We simply cannot
change the default behavior of ptp4l as that would be very unfriendly
to end users.  It might mean that your city's lights go out after a
linuxptp upgrade!

I would like to have the improved performance for the non-power case.
There are at least two ways to achieve this.

1. Add a new configuration option like "raw.vlan_handling" with a
   default value of true.  It can be false in the gPTP example config
   file.

2. Keep the on-line switching logic in place, but switch over to the
   more efficient implementation when VLAN tags are absent.

Thanks,
Richard


_______________________________________________
Linuxptp-devel mailing list
Linuxptp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel

Reply via email to