Hi Experts,
I am able to see that ptp4l is working for bond interface in Linux in
active-standby mode only.
Kindly let me know if there is a way to make it to work in active-active mode.
Logs:
———
root@ptp-slave:~# rmmod bonding
root@ptp-slave:~# modprobe bonding mode=0 miimon=100 max_bonds=3 lacp_rate=fast
root@ptp-slave:~# ifenslave bond0 enp1s0f0 enp1s0f1
root@ptp-slave:~# ip -4 address flush dev bond0
root@ptp-slave:~# ifconfig bond0 40.9.0.4/24 up
root@ptp-slave:~# ptp4l -A -i bond0 -m -s
ptp4l[2324931.192]: interface 'bond0' does not support requested timestamping
mode
failed to create a clock
root@ptp-slave:~# rmmod bonding
root@ptp-slave:~# modprobe bonding mode=3 miimon=100 max_bonds=3 lacp_rate=fast
root@ptp-slave:~# ifenslave bond0 enp1s0f0 enp1s0f1
root@ptp-slave:~# ip -4 address flush dev bond0
root@ptp-slave:~# ifconfig bond0 40.9.0.4/24 up
root@ptp-slave:~# ptp4l -A -i bond0 -m -s
ptp4l[2324980.026]: interface 'bond0' does not support requested timestamping
mode
failed to create a clock
root@ptp-slave:~# rmmod bonding
root@ptp-slave:~# modprobe bonding mode=4 miimon=100 max_bonds=3 lacp_rate=fast
root@ptp-slave:~# ifenslave bond0 enp1s0f0 enp1s0f1
root@ptp-slave:~# ip -4 address flush dev bond0
root@ptp-slave:~# ifconfig bond0 40.9.0.4/24 up
root@ptp-slave:~# ptp4l -A -i bond0 -m -s
ptp4l[2325000.843]: interface 'bond0' does not support requested timestamping
mode
failed to create a clock
root@ptp-slave:~#
root@ptp-slave:~# rmmod bonding
root@ptp-slave:~# modprobe bonding mode=2 miimon=100 max_bonds=3 lacp_rate=fast
root@ptp-slave:~# ifenslave bond0 enp1s0f0 enp1s0f1
root@ptp-slave:~# ip -4 address flush dev bond0
root@ptp-slave:~# ifconfig bond0 40.9.0.4/24 up
root@ptp-slave:~# ptp4l -A -i bond0 -m -s
ptp4l[2325013.598]: interface 'bond0' does not support requested timestamping
mode
failed to create a clock
root@ptp-slave:~#
root@ptp-slave:~#
root@ptp-slave:~# rmmod bonding
root@ptp-slave:~# modprobe bonding mode=5 miimon=100 max_bonds=3 lacp_rate=fast
root@ptp-slave:~# ifenslave bond0 enp1s0f0 enp1s0f1
root@ptp-slave:~# ip -4 address flush dev bond0
root@ptp-slave:~# ifconfig bond0 40.9.0.4/24 up
root@ptp-slave:~# ptp4l -A -i bond0 -m -s
ptp4l[2325024.173]: selected /dev/ptp2 as PTP clock
ptp4l[2325024.173]: port 1 (bond0): INITIALIZING to LISTENING on INIT_COMPLETE
ptp4l[2325024.173]: port 0 (/var/run/ptp4l): INITIALIZING to LISTENING on
INIT_COMPLETE
ptp4l[2325024.173]: port 0 (/var/run/ptp4lro): INITIALIZING to LISTENING on
INIT_COMPLETE
ptp4l[2325032.124]: selected local clock 3cfdfe.fffe.c467b0 as best master
root@ptp-slave:~# rmmod bonding
root@ptp-slave:~# modprobe bonding mode=6 miimon=100 max_bonds=3 lacp_rate=fast
root@ptp-slave:~# ifenslave bond0 enp1s0f0 enp1s0f1
root@ptp-slave:~# ip -4 address flush dev bond0
root@ptp-slave:~# ifconfig bond0 40.9.0.4/24 up
root@ptp-slave:~# ptp4l -A -i bond0 -m -s
ptp4l[2325066.099]: selected /dev/ptp2 as PTP clock
ptp4l[2325066.100]: port 1 (bond0): INITIALIZING to LISTENING on INIT_COMPLETE
ptp4l[2325066.100]: port 0 (/var/run/ptp4l): INITIALIZING to LISTENING on
INIT_COMPLETE
ptp4l[2325066.100]: port 0 (/var/run/ptp4lro): INITIALIZING to LISTENING on
INIT_COMPLETE
ptp4l[2325073.486]: selected local clock 3cfdfe.fffe.c467b0 as best master
root@ptp-slave:~# rmmod bonding
root@ptp-slave:~# modprobe bonding mode=1 miimon=100 max_bonds=3 lacp_rate=fast
root@ptp-slave:~# ifenslave bond0 enp1s0f0 enp1s0f1
root@ptp-slave:~# ip -4 address flush dev bond0
root@ptp-slave:~# ifconfig bond0 40.9.0.4/24 up
root@ptp-slave:~# ptp4l -A -i bond0 -m -s
ptp4l[2325103.943]: selected /dev/ptp2 as PTP clock
ptp4l[2325103.943]: port 1 (bond0): INITIALIZING to LISTENING on INIT_COMPLETE
ptp4l[2325103.943]: port 0 (/var/run/ptp4l): INITIALIZING to LISTENING on
INIT_COMPLETE
ptp4l[2325103.943]: port 0 (/var/run/ptp4lro): INITIALIZING to LISTENING on
INIT_COMPLETE
root@ptp-slave:~# ethtool -T enp1s0f0
Time stamping parameters for enp1s0f0:
Capabilities:
hardware-transmit (SOF_TIMESTAMPING_TX_HARDWARE)
software-transmit (SOF_TIMESTAMPING_TX_SOFTWARE)
hardware-receive (SOF_TIMESTAMPING_RX_HARDWARE)
software-receive (SOF_TIMESTAMPING_RX_SOFTWARE)
software-system-clock (SOF_TIMESTAMPING_SOFTWARE)
hardware-raw-clock (SOF_TIMESTAMPING_RAW_HARDWARE)
PTP Hardware Clock: 2
Hardware Transmit Timestamp Modes:
off (HWTSTAMP_TX_OFF)
on (HWTSTAMP_TX_ON)
Hardware Receive Filter Modes:
none (HWTSTAMP_FILTER_NONE)
ptpv1-l4-sync (HWTSTAMP_FILTER_PTP_V1_L4_SYNC)
ptpv1-l4-delay-req (HWTSTAMP_FILTER_PTP_V1_L4_DELAY_REQ)
ptpv2-l4-event (HWTSTAMP_FILTER_PTP_V2_L4_EVENT)
ptpv2-l4-sync (HWTSTAMP_FILTER_PTP_V2_L4_SYNC)
ptpv2-l4-delay-req (HWTSTAMP_FILTER_PTP_V2_L4_DELAY_REQ)
ptpv2-l2-event (HWTSTAMP_FILTER_PTP_V2_L2_EVENT)
ptpv2-l2-sync (HWTSTAMP_FILTER_PTP_V2_L2_SYNC)
ptpv2-l2-delay-req (HWTSTAMP_FILTER_PTP_V2_L2_DELAY_REQ)
ptpv2-event (HWTSTAMP_FILTER_PTP_V2_EVENT)
ptpv2-sync (HWTSTAMP_FILTER_PTP_V2_SYNC)
ptpv2-delay-req (HWTSTAMP_FILTER_PTP_V2_DELAY_REQ)
root@ptp-slave:~# ethtool -T enp1s0f1
Time stamping parameters for enp1s0f1:
Capabilities:
hardware-transmit (SOF_TIMESTAMPING_TX_HARDWARE)
software-transmit (SOF_TIMESTAMPING_TX_SOFTWARE)
hardware-receive (SOF_TIMESTAMPING_RX_HARDWARE)
software-receive (SOF_TIMESTAMPING_RX_SOFTWARE)
software-system-clock (SOF_TIMESTAMPING_SOFTWARE)
hardware-raw-clock (SOF_TIMESTAMPING_RAW_HARDWARE)
PTP Hardware Clock: 3
Hardware Transmit Timestamp Modes:
off (HWTSTAMP_TX_OFF)
on (HWTSTAMP_TX_ON)
Hardware Receive Filter Modes:
none (HWTSTAMP_FILTER_NONE)
ptpv1-l4-sync (HWTSTAMP_FILTER_PTP_V1_L4_SYNC)
ptpv1-l4-delay-req (HWTSTAMP_FILTER_PTP_V1_L4_DELAY_REQ)
ptpv2-l4-event (HWTSTAMP_FILTER_PTP_V2_L4_EVENT)
ptpv2-l4-sync (HWTSTAMP_FILTER_PTP_V2_L4_SYNC)
ptpv2-l4-delay-req (HWTSTAMP_FILTER_PTP_V2_L4_DELAY_REQ)
ptpv2-l2-event (HWTSTAMP_FILTER_PTP_V2_L2_EVENT)
ptpv2-l2-sync (HWTSTAMP_FILTER_PTP_V2_L2_SYNC)
ptpv2-l2-delay-req (HWTSTAMP_FILTER_PTP_V2_L2_DELAY_REQ)
ptpv2-event (HWTSTAMP_FILTER_PTP_V2_EVENT)
ptpv2-sync (HWTSTAMP_FILTER_PTP_V2_SYNC)
ptpv2-delay-req (HWTSTAMP_FILTER_PTP_V2_DELAY_REQ)
root@ptp-slave:~# ethtool -T bond0
Time stamping parameters for bond0:
Capabilities:
software-receive (SOF_TIMESTAMPING_RX_SOFTWARE)
software-system-clock (SOF_TIMESTAMPING_SOFTWARE)
PTP Hardware Clock: none
Hardware Transmit Timestamp Modes: none
Hardware Receive Filter Modes: none
root@ptp-slave:~# ethtool -i bond0
driver: bonding
version: 3.7.1
firmware-version: 2
expansion-rom-version:
bus-info:
supports-statistics: no
supports-test: no
supports-eeprom-access: no
supports-register-dump: no
supports-priv-flags: no
root@ptp-slave:~# ethtool -i enp1s0f1
driver: i40e
version: 2.15.9
firmware-version: 8.30 0x8000a4db 1.2926.0
expansion-rom-version:
bus-info: 0000:01:00.1
supports-statistics: yes
supports-test: yes
supports-eeprom-access: yes
supports-register-dump: yes
supports-priv-flags: yes
root@ptp-slave:~# ethtool -i enp1s0f0
driver: i40e
version: 2.15.9
firmware-version: 8.30 0x8000a4db 1.2926.0
expansion-rom-version:
bus-info: 0000:01:00.0
supports-statistics: yes
supports-test: yes
supports-eeprom-access: yes
supports-register-dump: yes
supports-priv-flags: yes
root@ptp-slave:~#
Regards,
Karthick
_______________________________________________
Linuxptp-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linuxptp-users