On 9/12/2021 7:39 PM, genyanhu...@digitgate.cn wrote: > Dear: > Thank you for sharing LinuxPtp on gitbub. > The application works well on our embedded system based on > Xilinx Linux Kernal 5.x and can fully meet the time accuracy requirement > comes from G.8275.1. Depends on the product requirements, I need create > another RAW socket beside LinuxPtp fork to handle some MAC information. > But unfortunately, when another RAW socket created in the same way: > socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL)) > A timeout issue caused in LinuxPtp task, printing: > " timed out while polling for tx timestamp" > " increasing tx_timestamp_timeout may correct this > issue, but it is likely caused by a driver bug" > ... > "port 1 (eth1): SLAVE to FAULTY on > FAULT_DETECTED(FT_UNSPESCIFIED)" > I also tried to increase the poll timeout to 100ms but without > any effect. > This issue troubled me for a long time, I wonder if I can > create more than one RAW socket in the same process task. > Could you give me some comments? Looking forward your reply, > thanks a lot! >
I'm not aware of a specific issue that multiple raw sockets could cause. What device, driver, and kernel version are you using? Is your raw socket code requesting Tx timestamps? Thanks, Jake > Best Regards > Bowu,Fengchaoma,Dechenghua,Genyanhuang > > ------------------------------------------------------------------------ > genyanhu...@digitgate.cn > > > _______________________________________________ > Linuxptp-users mailing list > Linuxptp-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/linuxptp-users > _______________________________________________ Linuxptp-users mailing list Linuxptp-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-users