On Mon, Jul 03, 2017 at 12:27:42PM +0800, Hangbin Liu wrote:
> Before v3.7 we do not support create interface with given ifindex with
> RTM_NEWLINK message[1]. Since we only need to get the interface info.
> It should be safe to use ifinfomsg on kernel v3.0

Okay, then we need to take two steps.

1. Convert single rtnl FD into one per-port FD.  Also remove
   index2port hash table from clock.c.

2. Add bonding support.
 
> But with your remind. I found we start to support bond rtnetlink message
> from kernel v3.13. So before v3.13, we could not get slave info and ptp4l
> with bond interface will fail with error not support when check ts info.
> I think this should be OK with document "bond fail over support start with
> kernel v3.13".
> 
> What do you think?

I think is it okay to let bond interfaces fail on start up when
running on older kernels.  We can even call uname(2) to check the
kernel version when bonding is requested in the configuration.

Thanks,
Richard

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Linuxptp-devel mailing list
Linuxptp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel

Reply via email to