Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
port: Drop received 802.1AS packets with invalid transportSpecific va…
…lues According to IEEE Std 1588-2019 Table 2 and IEEE Std 802.1AS-2020 Sections 11.2.17.1 and 13.3.1.2.16, the permitted transportSpecific (or majorSdoId) values for 802.1AS are 0x1 for a gPTP domain and 0x2 for CMLDS. Any message received with values other than these is not from an IEEE802.1AS-2020 PTP Instance and should be dropped. This fix ensures that incoming 802.1AS packets with an invalid transportSpecific value, such as 0x3, are dropped. This is particularly necessary when ignore_transport_specific=1 is set to allow Pdelay measurements between CMLDS-enabled (TS_CMLDS value=0x2) and non-CMLDS systems (TS_IEEE_8021AS value=0x1). v2: Fixed indentation. v3: Added pr_err and fixed trailing whitespace. v4: Changed pr_err to pr_debug Signed-off-by: Chwee-Lin Choong <chwee.lin.choong@intel.com> Signed-off-by: Andrew Zaborowski <andrew.zaborowski@intel.com>
- Loading branch information