On Thu, 6 Dec 2018 at 15:40, Hangbin Liu <liuhang...@gmail.com> wrote: > > This patch add team interface activebackup mode support. As linux team use > genl netlink message, when we get a rtnl link change notify, we have to setup > a new genl socket and request the current active port. >
Here are the linuxptp-testsuite and team failover test results ]# linuxptp-testsuite/run 01-defaults (1/29) [...] SUMMARY: TOTAL 29 PASSED 29 FAILED 0 () ]# ./ptp4l -2 -i team0 -m -s ptp4l[82039.622]: selected /dev/ptp1 as PTP clock ptp4l[82039.714]: driver rejected most general HWTSTAMP filter ptp4l[82039.715]: port 1: INITIALIZING to LISTENING on INIT_COMPLETE ptp4l[82039.716]: port 0: INITIALIZING to LISTENING on INIT_COMPLETE ptp4l[82039.859]: port 1: new foreign master f8bc12.fffe.13b6e0-1 ptp4l[82043.859]: selected best master clock f8bc12.fffe.13b6e0 ptp4l[82043.859]: port 1: LISTENING to UNCALIBRATED on RS_SLAVE ptp4l[82045.859]: master offset -1189023672 s0 freq +0 path delay 1420 ptp4l[82046.859]: master offset -1189024546 s1 freq -874 path delay 1509 ptp4l[82047.859]: master offset -896 s2 freq -1770 path delay 1509 ptp4l[82047.859]: port 1: UNCALIBRATED to SLAVE on MASTER_CLOCK_SELECTED ptp4l[82048.859]: master offset 192 s2 freq -951 path delay 1396 ptp4l[82049.859]: master offset 345 s2 freq -740 path delay 1396 ptp4l[82050.859]: master offset 388 s2 freq -594 path delay 1283 ptp4l[82051.859]: master offset 276 s2 freq -589 path delay 1240 [...] ptp4l[82071.860]: master offset -19 s2 freq -795 path delay 1191 ptp4l[82072.860]: master offset 38 s2 freq -744 path delay 1191 ptp4l[82073.860]: master offset -19 s2 freq -790 path delay 1195 ptp4l[82074.273]: recvmsg failed: Network is down ptp4l[82074.273]: port 1: recv message failed ptp4l[82074.273]: port 1: SLAVE to FAULTY on FAULT_DETECTED (FT_UNSPECIFIED) ptp4l[82074.376]: port 1: ts label changed to em2 ptp4l[82090.449]: driver rejected most general HWTSTAMP filter ptp4l[82090.449]: port 1: FAULTY to LISTENING on INIT_COMPLETE ptp4l[82091.860]: port 1: new foreign master f8bc12.fffe.13b6e0-1 ptp4l[82095.860]: selected best master clock f8bc12.fffe.13b6e0 ptp4l[82095.860]: port 1: LISTENING to UNCALIBRATED on RS_SLAVE ptp4l[82095.860]: master offset -1168357452 s0 freq +0 path delay 1195 ptp4l[82096.860]: master offset -1168358204 s1 freq -752 path delay 1195 ptp4l[82097.860]: master offset -1125 s2 freq -1877 path delay 1195 ptp4l[82097.860]: port 1: UNCALIBRATED to SLAVE on MASTER_CLOCK_SELECTED ptp4l[82098.860]: master offset -27 s2 freq -1116 path delay 1195 ptp4l[82099.860]: master offset 342 s2 freq -756 path delay 1178 ptp4l[82100.860]: master offset 345 s2 freq -650 path delay 1178 ptp4l[82101.860]: master offset 197 s2 freq -694 path delay 1178 ptp4l[82102.860]: master offset 89 s2 freq -743 path delay 1183 ptp4l[82103.860]: master offset 42 s2 freq -764 path delay 1183 ptp4l[82104.860]: master offset 14 s2 freq -779 path delay 1199 ptp4l[82105.860]: master offset -20 s2 freq -809 path delay 1203 ptp4l[82106.860]: master offset -46 s2 freq -841 path delay 1204 ptp4l[82107.860]: master offset 36 s2 freq -773 path delay 1185 ptp4l[82108.860]: master offset 34 s2 freq -764 path delay 1197 ptp4l[82109.860]: master offset -22 s2 freq -810 path delay 1197 ptp4l[82110.860]: master offset 16 s2 freq -778 path delay 1181 ptp4l[82111.860]: master offset 3 s2 freq -786 path delay 1175 ptp4l[82112.860]: master offset 2 s2 freq -787 path delay 1174 ptp4l[82113.860]: master offset 46 s2 freq -742 path delay 1174 ptp4l[82114.860]: master offset -19 s2 freq -793 path delay 1177 ptp4l[82115.860]: master offset -49 s2 freq -829 path delay 1181 ptp4l[82116.153]: port 1: ts label changed to em1 ptp4l[82116.153]: port 1: SLAVE to FAULTY on FAULT_DETECTED (FT_UNSPECIFIED) ptp4l[82132.325]: driver rejected most general HWTSTAMP filter ptp4l[82132.325]: port 1: FAULTY to LISTENING on INIT_COMPLETE ptp4l[82133.860]: port 1: new foreign master f8bc12.fffe.13b6e0-1 ptp4l[82137.860]: selected best master clock f8bc12.fffe.13b6e0 ptp4l[82137.861]: port 1: LISTENING to UNCALIBRATED on RS_SLAVE ptp4l[82137.861]: master offset 338 s0 freq -789 path delay 1181 ptp4l[82138.861]: master offset 352 s2 freq -775 path delay 1181 ptp4l[82138.861]: port 1: UNCALIBRATED to SLAVE on MASTER_CLOCK_SELECTED ptp4l[82139.861]: master offset 335 s2 freq -440 path delay 1177 ptp4l[82140.861]: master offset 13 s2 freq -662 path delay 1177 ptp4l[82141.861]: master offset -62 s2 freq -733 path delay 1177 ptp4l[82142.861]: master offset -150 s2 freq -839 path delay 1185 ptp4l[82143.861]: master offset -105 s2 freq -839 path delay 1185 ptp4l[82144.861]: master offset -21 s2 freq -787 path delay 1181 ptp4l[82145.861]: master offset -28 s2 freq -800 path delay 1181 ptp4l[82146.861]: master offset 4 s2 freq -776 path delay 1177 ptp4l[82147.861]: master offset -20 s2 freq -799 path delay 1177 ptp4l[82148.861]: master offset -2 s2 freq -787 path delay 1177 Thanks Hangbin _______________________________________________ Linuxptp-devel mailing list Linuxptp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-devel