Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 2120521

Summary: linuxptp: please backport the vlan over bond feature
Product: Red Hat Enterprise Linux 9 Reporter: Hangbin Liu <haliu>
Component: linuxptpAssignee: Miroslav Lichvar <mlichvar>
Status: CLOSED ERRATA QA Contact: Yalin.Li <yalli>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 9.1CC: jorton
Target Milestone: rcKeywords: FutureFeature, Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: linuxptp-3.1.1-6.el9 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-05-09 07:48:10 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2019670    
Bug Blocks:    
Deadline: 2023-01-16   

Description Hangbin Liu 2022-08-23 06:30:45 UTC
Description of problem:

As discussed in bug 1838052. The customer would like to use PTP with vlan over bond. Let's backport this feature for 9.2.

Comment 8 Yalin.Li 2023-01-10 05:45:58 UTC
Successfully sync to the master via VLAN over BOND port:
# ip link show | grep bond
8: ens1f0: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc mq master bond0 state UP mode DEFAULT group default qlen 1000
9: ens1f1: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc mq master bond0 state UP mode DEFAULT group default qlen 1000
12: bond0: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000
13: bond0.3@bond0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000
# 
# ethtool -T bond0.3
Time stamping parameters for bond0.3:
Capabilities:
	hardware-transmit
	software-transmit
	hardware-receive
	software-receive
	software-system-clock
	hardware-raw-clock
PTP Hardware Clock: 5
Hardware Transmit Timestamp Modes:
	off
	on
Hardware Receive Filter Modes:
	none
	all
# ptp4l -EH2mi bond0.3 --tx_timestamp_timeout=100
ptp4l[10700.756]: selected /dev/ptp5 as PTP clock
ptp4l[10700.771]: port 1: INITIALIZING to LISTENING on INIT_COMPLETE
ptp4l[10700.771]: port 0: INITIALIZING to LISTENING on INIT_COMPLETE
ptp4l[10700.771]: port 0: INITIALIZING to LISTENING on INIT_COMPLETE
ptp4l[10701.362]: port 1: new foreign master 507c6f.fffe.1fb238-1
ptp4l[10705.362]: selected best master clock 507c6f.fffe.1fb238
ptp4l[10705.362]: port 1: LISTENING to UNCALIBRATED on RS_SLAVE
ptp4l[10707.367]: master offset        875 s0 freq   -9844 path delay      1479
ptp4l[10708.366]: master offset        893 s2 freq   -9826 path delay      1479
ptp4l[10708.366]: port 1: UNCALIBRATED to SLAVE on MASTER_CLOCK_SELECTED
ptp4l[10709.366]: master offset        900 s2 freq   -8926 path delay      1479
ptp4l[10710.367]: master offset         10 s2 freq   -9546 path delay      1479
ptp4l[10711.366]: master offset       -272 s2 freq   -9825 path delay      1479
ptp4l[10712.366]: master offset       -272 s2 freq   -9907 path delay      1479
ptp4l[10713.367]: master offset       -182 s2 freq   -9898 path delay      1479
ptp4l[10714.366]: master offset       -104 s2 freq   -9875 path delay      1477
ptp4l[10715.366]: master offset        -58 s2 freq   -9860 path delay      1476
ptp4l[10716.367]: master offset        -21 s2 freq   -9840 path delay      1474
ptp4l[10717.366]: master offset         -1 s2 freq   -9827 path delay      1474
ptp4l[10718.367]: master offset          3 s2 freq   -9823 path delay      1474
ptp4l[10719.367]: master offset          7 s2 freq   -9818 path delay      1474
ptp4l[10720.366]: master offset          0 s2 freq   -9823 path delay      1478
ptp4l[10721.366]: master offset         -1 s2 freq   -9824 path delay      1478
ptp4l[10722.367]: master offset         13 s2 freq   -9810 path delay      1478
ptp4l[10723.366]: master offset        -11 s2 freq   -9830 path delay      1484
ptp4l[10724.366]: master offset         -5 s2 freq   -9828 path delay      1484

Comment 11 Yalin.Li 2023-01-29 04:56:46 UTC
(In reply to Yalin.Li from comment #8)
> Successfully sync to the master via VLAN over BOND port:
> # ip link show | grep bond
> 8: ens1f0: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc mq master
> bond0 state UP mode DEFAULT group default qlen 1000
> 9: ens1f1: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc mq master
> bond0 state UP mode DEFAULT group default qlen 1000
> 12: bond0: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1500 qdisc noqueue
> state UP mode DEFAULT group default qlen 1000
> 13: bond0.3@bond0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue
> state UP mode DEFAULT group default qlen 1000
> # 
> # ethtool -T bond0.3
> Time stamping parameters for bond0.3:
> Capabilities:
> 	hardware-transmit
> 	software-transmit
> 	hardware-receive
> 	software-receive
> 	software-system-clock
> 	hardware-raw-clock
> PTP Hardware Clock: 5
> Hardware Transmit Timestamp Modes:
> 	off
> 	on
> Hardware Receive Filter Modes:
> 	none
> 	all
> # ptp4l -EH2mi bond0.3 --tx_timestamp_timeout=100
> ptp4l[10700.756]: selected /dev/ptp5 as PTP clock
> ptp4l[10700.771]: port 1: INITIALIZING to LISTENING on INIT_COMPLETE
> ptp4l[10700.771]: port 0: INITIALIZING to LISTENING on INIT_COMPLETE
> ptp4l[10700.771]: port 0: INITIALIZING to LISTENING on INIT_COMPLETE
> ptp4l[10701.362]: port 1: new foreign master 507c6f.fffe.1fb238-1
> ptp4l[10705.362]: selected best master clock 507c6f.fffe.1fb238
> ptp4l[10705.362]: port 1: LISTENING to UNCALIBRATED on RS_SLAVE
> ptp4l[10707.367]: master offset        875 s0 freq   -9844 path delay     
> 1479
> ptp4l[10708.366]: master offset        893 s2 freq   -9826 path delay     
> 1479
> ptp4l[10708.366]: port 1: UNCALIBRATED to SLAVE on MASTER_CLOCK_SELECTED
> ptp4l[10709.366]: master offset        900 s2 freq   -8926 path delay     
> 1479
> ptp4l[10710.367]: master offset         10 s2 freq   -9546 path delay     
> 1479
> ptp4l[10711.366]: master offset       -272 s2 freq   -9825 path delay     
> 1479
> ptp4l[10712.366]: master offset       -272 s2 freq   -9907 path delay     
> 1479
> ptp4l[10713.367]: master offset       -182 s2 freq   -9898 path delay     
> 1479
> ptp4l[10714.366]: master offset       -104 s2 freq   -9875 path delay     
> 1477
> ptp4l[10715.366]: master offset        -58 s2 freq   -9860 path delay     
> 1476
> ptp4l[10716.367]: master offset        -21 s2 freq   -9840 path delay     
> 1474
> ptp4l[10717.366]: master offset         -1 s2 freq   -9827 path delay     
> 1474
> ptp4l[10718.367]: master offset          3 s2 freq   -9823 path delay     
> 1474
> ptp4l[10719.367]: master offset          7 s2 freq   -9818 path delay     
> 1474
> ptp4l[10720.366]: master offset          0 s2 freq   -9823 path delay     
> 1478
> ptp4l[10721.366]: master offset         -1 s2 freq   -9824 path delay     
> 1478
> ptp4l[10722.367]: master offset         13 s2 freq   -9810 path delay     
> 1478
> ptp4l[10723.366]: master offset        -11 s2 freq   -9830 path delay     
> 1484
> ptp4l[10724.366]: master offset         -5 s2 freq   -9828 path delay     
> 1484

PTP regression test passed on linuxptp-3.1.1-6.el9.
https://beaker.engineering.redhat.com/jobs/7475122
https://beaker.engineering.redhat.com/jobs/7475153

Comment 13 errata-xmlrpc 2023-05-09 07:48:10 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (linuxptp bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2023:2349